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