Esempio n. 1
0
 /// <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);
     }
 }
Esempio n. 2
0
 public ITabItems SetIdQ(string ns, string name)
 {
     id = new ElementId().SetNamespaceId(ns, name);
     return(this);
 }
Esempio n. 3
0
 public ITabItems SetIdMso(string name)
 {
     id = new ElementId().SetMicrosoftId(name);
     return(this);
 }
Esempio n. 4
0
 public Tab()
 {
     ElementName = "tab";
     items       = new Groups();
     id          = new ElementId();
 }
Esempio n. 5
0
 public IGroupItems SetId(string name)
 {
     id = new ElementId().SetId(name);
     return(this);
 }
Esempio n. 6
0
 public Group()
 {
     ElementName = "group";
     id          = new ElementId();
     controls    = new Controls();
 }
Esempio n. 7
0
 public TabSet()
 {
     ElementName = "tabSet";
     id          = new ElementId();
     tabs        = new TabSetTabs();
 }
Esempio n. 8
0
 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);
 }
Esempio n. 10
0
 protected Control(string elementName) : base(elementName)
 {
     ControlId = new ElementId();
 }
Esempio n. 11
0
 public IGroupItems SetIdQ(string ns, string name)
 {
     id = new ElementId().SetNamespaceId(ns, name);
     return this;
 }
Esempio n. 12
0
 public IGroupItems SetIdMso(string name)
 {
     id = new ElementId().SetMicrosoftId(name);
     return this;
 }
Esempio n. 13
0
 public Group()
 {
     ElementName = "group";
     id = new ElementId();
     controls = new Controls();
 }
Esempio n. 14
0
 public ITabItems SetId(string name)
 {
     id = new ElementId().SetId(name);
     return this;
 }
Esempio n. 15
0
 public Tab()
 {
     ElementName = "tab";
     items = new Groups();
     id = new ElementId();
 }