private void diagram_ConnectionDeserialized_1(object sender, ConnectionSerializationRoutedEventArgs e)
        {
            // load the saved property
            XmlSerializer serializer = new XmlSerializer(typeof(ConnectionXML));
            //RadDiagramConnection con = ;
            string       XML = e.SerializationInfo["Content"].ToString();
            StringReader sr  = new StringReader(XML);

            (e.OriginalSource as RadDiagramConnection).Content = (ConnectionXML)serializer.Deserialize(sr);

            this.diagram.AllowDelete = true;

            //(e.Shape as RadDiagramShape).Tag = (e.Shape as RadDiagramShape).Content;
            //(e.Source as RadDiagramConnection).Content = ((ConnectionXML)(e.Source as RadDiagramConnection).Tag).Type;
        }
        private void diagram_ConnectionDeserialized_1(object sender, ConnectionSerializationRoutedEventArgs e)
        {
            // load the saved property
            XmlSerializer serializer = new XmlSerializer(typeof(ConnectionXML));
            //RadDiagramConnection con = ;
            string XML = e.SerializationInfo["Content"].ToString();
            StringReader sr = new StringReader(XML);
            (e.OriginalSource as RadDiagramConnection).Content = (ConnectionXML)serializer.Deserialize(sr);

            this.diagram.AllowDelete = true;

            //(e.Shape as RadDiagramShape).Tag = (e.Shape as RadDiagramShape).Content;
            //(e.Source as RadDiagramConnection).Content = ((ConnectionXML)(e.Source as RadDiagramConnection).Tag).Type;
        }