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