Beispiel #1
0
 public TabEditorForm(TabControl oTabStrip)
 {
     this.InitializeComponent();
     this._tabStrip = oTabStrip;
     this.Tabs      = oTabStrip.Items;
     foreach (TabPage tabPage in this.Tabs)
     {
         TreeNode treeNode = new TreeNode(tabPage.Caption);
         this.LoadNodes(tabPage, treeNode);
         this.treeView1.Nodes.Add(treeNode);
     }
     this.treeView1.HideSelection = false;
 }
Beispiel #2
0
 public TabControl()
 {
     this.SelectedTab       = new HtmlInputHidden();
     this._SelectedIndex    = -1;
     this.SelectedTab.Value = string.Empty;
     this._Width            = Unit.Pixel(350);
     this._Height           = Unit.Pixel(150);
     this._Items            = new TabPageCollection(this);
     this._SelectionMode    = TabControl.SelectionModeEnum.Client;
     this.Height            = Unit.Pixel(100);
     this.Width             = Unit.Pixel(100);
     this._HeightUnitMode   = TabControl.HeightUnitEnum.percent;
     this._WidthUnitMode    = TabControl.WidthUnitEnum.percent;
     this.LeftOffSetX       = 0;
 }