/// <summary> /// 注册命令 /// </summary> /// <param name="elementId"></param> /// <param name="command"></param> public void Add(IElementId elementId, ICommand command) { Debug.WriteLine("Add Command {0} {1}", elementId, command.GetType()); if (_commands.ContainsKey(elementId.Value)) { _commands[elementId.Value] = command; } else { _commands.Add(elementId.Value, command); } }
public ITabItems SetIdQ(string ns, string name) { id = new ElementId().SetNamespaceId(ns, name); return(this); }
public ITabItems SetIdMso(string name) { id = new ElementId().SetMicrosoftId(name); return(this); }
public Tab() { ElementName = "tab"; items = new Groups(); id = new ElementId(); }
public IGroupItems SetId(string name) { id = new ElementId().SetId(name); return(this); }
public Group() { ElementName = "group"; id = new ElementId(); controls = new Controls(); }
public TabSet() { ElementName = "tabSet"; id = new ElementId(); tabs = new TabSetTabs(); }
public TabSet() : base("tabSet") { _id = new ElementId(); _tabs = new TabSetTabs(); }
/// <summary> /// 注册命令 /// </summary> /// <param name="elementId"></param> /// <param name="command"></param> public void Add(IElementId elementId, ICommand command) { Add(elementId.Value, command); }
protected Control(string elementName) : base(elementName) { ControlId = new ElementId(); }
public IGroupItems SetIdQ(string ns, string name) { id = new ElementId().SetNamespaceId(ns, name); return this; }
public IGroupItems SetIdMso(string name) { id = new ElementId().SetMicrosoftId(name); return this; }
public ITabItems SetId(string name) { id = new ElementId().SetId(name); return this; }