public ProxyDrawer(ModuleManager manager, Guid id, ModuleDrawerAttribute attribute, Action <IEditor, ModuleDrawerEventArgs> handler) : base(manager, id, (attribute == null ? null : (ModuleDrawerAttribute)attribute.Clone())) { _Handler = handler; Init(); }
public ProxyDrawer(ModuleManager manager, Guid id, ModuleDrawerAttribute attribute, EventHandler<ModuleDrawerEventArgs> handler) : base(manager, id, (attribute == null ? null : (ModuleDrawerAttribute)attribute.Clone())) { _Handler = handler; Init(); }
public override IModuleDrawer RegisterModuleDrawer(Guid id, ModuleDrawerAttribute attribute, Action <IEditor, ModuleDrawerEventArgs> handler) { if (handler == null) { throw new ArgumentNullException("handler"); } if (attribute == null) { throw new ArgumentNullException("attribute"); } if (string.IsNullOrEmpty(attribute.Name)) { throw new ArgumentException("'attribute.Name' must not be empty."); } ProxyDrawer it = new ProxyDrawer(this, id, attribute, handler); it.LoadData((Hashtable)ReadSettings()[it.Id]); Host.Instance.RegisterProxyDrawer(it); return(it); }
public override IModuleDrawer RegisterModuleDrawer(Guid id, ModuleDrawerAttribute attribute, EventHandler<ModuleDrawerEventArgs> handler) { if (handler == null) throw new ArgumentNullException("handler"); if (attribute == null) throw new ArgumentNullException("attribute"); if (string.IsNullOrEmpty(attribute.Name)) throw new ArgumentException("'attribute.Name' must not be empty."); ProxyDrawer it = new ProxyDrawer(this, id, attribute, handler); it.LoadData((Hashtable)ReadSettings()[it.Id]); Host.Instance.RegisterProxyDrawer(it); return it; }