public AbstractToolTypeDescriptor(IDrawObjectProperty property) { Property = property; }
public AbstractDrawBox(IDrawObjectProperty property) { Property = property; }
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; } } }
public DrawLabel(IDrawObjectProperty property) : base(property) { }
public DrawRectangle(IDrawObjectProperty property) : base(property) { }
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(); }
public DrawTree(IDrawObjectProperty property) : base(property) { }
public ToolBoxTypeDescriptor(IDrawObjectProperty property) : base(property) { }
public PolygonDescriptor(IDrawObjectProperty property) : base(property) { }
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); } }