示例#1
0
 public void InitiateSettings(EIBFormDesigner.Designer.FormDesigner form)
 {
     this.Name = EIBControlCollection.CheckControlForUniqueness <EIBTreeNode>(this.Name);
     if (string.IsNullOrEmpty(this.ControlName))
     {
         this.ControlName = this.Name;
     }
     if (string.IsNullOrEmpty(this.Text))
     {
         this.Text = this.Name;
     }
     EIBControlCollection.TreeNodelist.Add(this.Name, this.Name);
     counter = 0;
 }
示例#2
0
 public void InitiateSettings(EIBFormDesigner.Designer.FormDesigner form)
 {
     this.Name = EIBControlCollection.CheckControlForUniqueness <EIBVMenuBar>(this.Name);
     if (string.IsNullOrEmpty(this.ControlName))
     {
         this.ControlName = this.Name;
     }
     if (string.IsNullOrEmpty(this.UniqueId))
     {
         this.UniqueId = this.Name;
     }
     EIBControlCollection.HMenuBarlist.Add(this.Name, this.Name);
     counter = 0;
 }
示例#3
0
        public void InitiateSettings(EIBFormDesigner.Designer.FormDesigner form)
        {
            this.Name = EIBControlCollection.CheckControlForUniqueness <EIBMenuItem>(this.Name);

            this.ControlName = this.Name;
            if (string.IsNullOrEmpty(this.UniqueId))
            {
                this.UniqueId = this.Name;
            }
            if (this.Text == null)
            {
                this.Text = this.Name;
            }
            EIBControlCollection.MenuItemlist.Add(this.Name, this.Name);
            //counter++;
        }
示例#4
0
 public void InitiateSettings(EIBFormDesigner.Designer.FormDesigner form)
 {
     this.Name = EIBControlCollection.CheckControlForUniqueness <EIBTime>(this.Name);
     if (string.IsNullOrEmpty(this.ControlName))
     {
         this.ControlName = this.Name;
     }
     if (string.IsNullOrEmpty(this.UniqueId))
     {
         this.UniqueId = this.Name;
     }
     EIBControlCollection.Timelist.Add(this.Name, this.Name);
     this.currentForm = form;
     counter          = 0;
     //ShowTimeSplit();
 }
示例#5
0
 public void InitiateSettings(EIBFormDesigner.Designer.FormDesigner form)
 {
     this.Name = EIBControlCollection.CheckControlForUniqueness <EIBTabPage>(this.Name);
     if (string.IsNullOrEmpty(this.ControlName))
     {
         this.ControlName = this.Name;
     }
     if (string.IsNullOrEmpty(this.UniqueId))
     {
         this.UniqueId = this.Name;
     }
     if (this.Text == null)
     {
         this.Text = this.Name;
     }
     EIBControlCollection.TabPagelist.Add(this.Name, this.Name);
 }
示例#6
0
 public void InitiateSettings(EIBFormDesigner.Designer.FormDesigner form)
 {
     if (form != null)
     {
         EIBTreeNode treeNode = new EIBTreeNode();
         treeNode.InitiateSettings(null);
         //treeNode.ControlName = "treeNode0";
         //treeNode.Text = "treeNode0";
         this.Nodes.Add(treeNode);
     }
     this.Name = EIBControlCollection.CheckControlForUniqueness <EIBTreeView>(this.Name);
     if (string.IsNullOrEmpty(this.ControlName))
     {
         this.ControlName = this.Name;
     }
     EIBControlCollection.TreeViewlist.Add(this.Name, this.Name);
     counter = 0;
     //counter++;
 }
示例#7
0
        public void InitiateSettings(EIBFormDesigner.Designer.FormDesigner form)
        {
            EIBTabPage tabPage1 = new EIBTabPage();

            tabPage1.InitiateSettings(null);
            EIBTabPage tabPage2 = new EIBTabPage();

            tabPage2.InitiateSettings(null);
            tabPage1.Text = tabPage1.Name;
            tabPage2.Text = tabPage2.Name;
            this.Controls.Add(tabPage1);
            this.Controls.Add(tabPage2);
            this.Size = new Size(width, height);
            this.Name = EIBControlCollection.CheckControlForUniqueness <EIBTabControl>(this.Name);
            if (string.IsNullOrEmpty(this.ControlName))
            {
                this.ControlName = this.Name;
            }
            if (string.IsNullOrEmpty(this.UniqueId))
            {
                this.UniqueId = this.Name;
            }
            if (this.Text == null)
            {
                this.Text = this.Name;
            }
            EIBControlCollection.TabControllist.Add(this.Name, this.Name);

            //EIBTabPage tabPage1 = new EIBTabPage();
            //EIBTabPage tabPage2 = new EIBTabPage();
            //tabPage1.InitiateSettings(null);
            //tabPage2.InitiateSettings(null);
            //tabPage1.Text = "tabPage1";
            //tabPage2.Text = "tabPage2";
            //this.Controls.Add(tabPage1);
            //this.Controls.Add(tabPage2);
            //this.Size = new Size(width, height);
            //this.Name = "tabControl" + counter;
            //this.ControlName = this.Name;
            //this.Margin = new Padding(0, 0, 0, 0);
            //this.Text = "tabControl" + counter.ToString();
            //counter++;
        }
示例#8
0
 public void InitiateSettingsWithNoChild()
 {
     this.Size = new Size(width, height);
     if (string.IsNullOrEmpty(this.Name))
     {
         this.Name = "tabControl" + counter;
     }
     if (string.IsNullOrEmpty(this.ControlName))
     {
         this.ControlName = this.Name;
     }
     this.Margin = new Padding(0, 0, 0, 0);
     this.Text   = "tabControl" + counter.ToString();
     this.Name   = EIBControlCollection.CheckControlForUniqueness <EIBTabControl>(this.Name);
     if (string.IsNullOrEmpty(this.ControlName))
     {
         this.ControlName = this.Name;
     }
     EIBControlCollection.TabControllist.Add(this.Name, this.Name);
 }
示例#9
0
 public void InitiateSettings(EIBFormDesigner.Designer.FormDesigner form)
 {
     this.Name = "placeholder" + counter;
     this.Name = EIBControlCollection.CheckControlForUniqueness <EIBPlaceHolder>(this.Name);
     if (this.ControlName == null)
     {
         this.ControlName = this.Name;
     }
     EIBControlCollection.PlaceHolderlist.Add(this.Name, this.Name);
     if (string.IsNullOrEmpty(this.Name))
     {
         this.Name = "placeholder" + counter;
     }
     if (string.IsNullOrEmpty(this.ControlName))
     {
         this.ControlName = this.Name;
     }
     this.Font           = new Font(this.Font.FontFamily, 8f);
     this.AccessibleName = "placeholder" + counter;
     this.Margin         = new Padding(0, 0, 0, 0);
     this.AllowDrop      = true;
     counter             = 0;
 }