using System.Runtime.InteropServices;\r
using System.Xml.Serialization;\r
using System.ComponentModel;\r
+using System.Diagnostics;\r
\r
namespace go\r
{\r
string _svgSub;\r
\r
[XmlAttributeAttribute("Path")] \r
- public string ImagePath {\r
+ public string Path {\r
get { return _pic == null ? null : _pic.Path; }\r
- set { \r
- LoadImage (value);\r
- _pic.KeepProportions = true;\r
+ set { \r
+ try {\r
+ LoadImage (value);\r
+ _pic.KeepProportions = true;\r
+ } catch (Exception ex) {\r
+ Debug.WriteLine (ex.Message);\r
+ _pic = null;\r
+ }\r
}\r
}\r
\r