public AbstractToolTypeDescriptor(IDrawObjectProperty property)
 {
     Property = property;
 }
Example #2
0
 public AbstractDrawBox(IDrawObjectProperty property)
 {
     Property = property;
 }
Example #3
0
 public virtual void InitDrawObjectFromPageControl(PageControl control, IDrawObjectProperty property)
 {
     property.InitProperty();
     foreach (var childProperty in property.Properties)
     {
         var tempProperty = control.FindProperty(childProperty.Name);
         if (tempProperty != null)
         {
             childProperty.Value = tempProperty.Value;
         }
     }
     foreach (var childEvent in property.Events)
     {
         var tempEvent = control.FindEvent(childEvent.Name);
         if (tempEvent != null)
         {
             childEvent.Value = tempEvent.Value;
         }
     }
 }
Example #4
0
 public DrawLabel(IDrawObjectProperty property)
     : base(property)
 {
 }
Example #5
0
 public DrawRectangle(IDrawObjectProperty property)
     : base(property)
 {
 }
Example #6
0
 private void AfterSelect(TreeNode node)
 {
     if (node == null)
         return;
     var source = node.Tag as IDrawObject;
     var clone = source.Property.Clone() as IDrawObjectProperty;
     clone.Events.Clear();
     if (!UpdateProperties.ContainsKey(clone.Id))
         UpdateProperties.Add(clone.Id, new Dictionary<string, string>());
     foreach (var item in clone.Properties)
     {
         if (UpdateProperties[clone.Id].ContainsKey(item.Name))
         {
             item.Value = UpdateProperties[clone.Id][item.Name];
         }
     }
     SelectedObject = clone;
     RefreshUpdates();
 }
Example #7
0
 public DrawTree(IDrawObjectProperty property)
     : base(property)
 {
 }
 public ToolBoxTypeDescriptor(IDrawObjectProperty property)
     : base(property)
 {
 }
Example #9
0
 public PolygonDescriptor(IDrawObjectProperty property)
     : base(property)
 {
 }
Example #10
0
 public LineDescriptor(IDrawObjectProperty property)
     : base(property)
 {
 }
 protected void Copy(IDrawObjectProperty copy)
 {
     copy.Id = Id;
     copy.ZIndex = ZIndex;
     copy.Size = Size;
     copy.Location = Location;
     copy.Properties = new List<IToolBoxProperty>();
     foreach (var property in Properties)
     {
         copy.Properties.Add(property.Clone() as IToolBoxProperty);
     }
     copy.Events = new List<IToolBoxEvent>();
     foreach (var events in Events)
     {
         copy.Events.Add(events.Clone() as IToolBoxEvent);
     }
 }