Example #1
0
        public void AddFromXml(XElement element)
        {
            var deserializer = new DrawingDeserializer();

            deserializer.ReadDrawing(this, element);
            if (!deserializer.IsSuccess)
            {
                RaiseStatusNotification(deserializer.GetErrorReport());
            }
        }
Example #2
0
        public static Drawing OpenDrawing(Canvas canvas, XElement element)
        {
            Drawing drawing = new Drawing(canvas);
            DrawingDeserializer deserializer = new DrawingDeserializer();
            deserializer.ReadDrawing(drawing, element);

            if (!deserializer.IsSuccess)
            {
                throw new Exception(deserializer.GetErrorReport());
            }

            return drawing;
        }
        public static Drawing OpenDrawing(Canvas canvas, XElement element)
        {
            Drawing             drawing      = new Drawing(canvas);
            DrawingDeserializer deserializer = new DrawingDeserializer();

            deserializer.ReadDrawing(drawing, element);

            if (!deserializer.IsSuccess)
            {
                throw new Exception(deserializer.GetErrorReport());
            }

            return(drawing);
        }
Example #4
0
 public void AddFromXml(XElement element)
 {
     var deserializer = new DrawingDeserializer();
     deserializer.ReadDrawing(this, element);
     if (!deserializer.IsSuccess)
     {
         RaiseStatusNotification(deserializer.GetErrorReport());
     }
 }