public AbstractToolTypeDescriptor(IDrawObjectProperty property)
 {
     Property = property;
 }
Пример #2
0
 public AbstractDrawBox(IDrawObjectProperty property)
 {
     Property = property;
 }
Пример #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;
         }
     }
 }
Пример #4
0
 public DrawLabel(IDrawObjectProperty property)
     : base(property)
 {
 }
Пример #5
0
 public DrawRectangle(IDrawObjectProperty property)
     : base(property)
 {
 }
Пример #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();
 }
Пример #7
0
 public DrawTree(IDrawObjectProperty property)
     : base(property)
 {
 }
Пример #8
0
 public ToolBoxTypeDescriptor(IDrawObjectProperty property)
     : base(property)
 {
 }
Пример #9
0
 public PolygonDescriptor(IDrawObjectProperty property)
     : base(property)
 {
 }
Пример #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);
     }
 }