Ejemplo n.º 1
0
        public void AddPage(Guid guid, UITabControl page)
        {
            TabPage tabPage = CreateTabIfNotExists(guid);

            tabPage.Controls.Add(page);
            page.Dock = DockStyle.Fill;
            page.Show();
        }
Ejemplo n.º 2
0
        public void AddPage(int index, UITabControl page)
        {
            TabPage tabPage = CreateTabIfNotExists(index);

            tabPage.Controls.Add(page);
            page.Dock = DockStyle.Fill;
            page.Show();
        }
Ejemplo n.º 3
0
 public void AddPage(Guid guid, UITabControl page)
 {
     Helper.AddPage(guid, page);
 }
Ejemplo n.º 4
0
 public void AddPage(int pageIndex, UITabControl page)
 {
     Helper.AddPage(pageIndex, page);
 }
Ejemplo n.º 5
0
 public UITabControlHelper(UITabControl ctrl)
 {
     tabControl = ctrl;
 }
Ejemplo n.º 6
0
 private void InitializeComponent()
 {
     this.TopPanel   = new Sunny.UI.UIPanel();
     this.b4         = new Sunny.UI.UISymbolButton();
     this.b3         = new Sunny.UI.UISymbolButton();
     this.b2         = new Sunny.UI.UISymbolButton();
     this.b1         = new Sunny.UI.UISymbolButton();
     this.TabControl = new Sunny.UI.UITabControl();
     this.tabPage1   = new System.Windows.Forms.TabPage();
     this.p1         = new Sunny.UI.UIPanel();
     this.tabPage2   = new System.Windows.Forms.TabPage();
     this.p2         = new Sunny.UI.UIPanel();
     this.tabPage3   = new System.Windows.Forms.TabPage();
     this.p3         = new Sunny.UI.UIPanel();
     this.TopPanel.SuspendLayout();
     this.TabControl.SuspendLayout();
     this.tabPage1.SuspendLayout();
     this.tabPage2.SuspendLayout();
     this.tabPage3.SuspendLayout();
     this.SuspendLayout();
     //
     // TopPanel
     //
     this.TopPanel.Controls.Add(this.b4);
     this.TopPanel.Controls.Add(this.b3);
     this.TopPanel.Controls.Add(this.b2);
     this.TopPanel.Controls.Add(this.b1);
     this.TopPanel.Dock        = System.Windows.Forms.DockStyle.Top;
     this.TopPanel.FillColor   = System.Drawing.Color.White;
     this.TopPanel.Font        = new System.Drawing.Font("微软雅黑", 12F);
     this.TopPanel.Location    = new System.Drawing.Point(0, 0);
     this.TopPanel.Margin      = new System.Windows.Forms.Padding(4, 5, 4, 5);
     this.TopPanel.MinimumSize = new System.Drawing.Size(1, 1);
     this.TopPanel.Name        = "TopPanel";
     this.TopPanel.RadiusSides = Sunny.UI.UICornerRadiusSides.None;
     this.TopPanel.RectSides   = ((System.Windows.Forms.ToolStripStatusLabelBorderSides)(((System.Windows.Forms.ToolStripStatusLabelBorderSides.Left | System.Windows.Forms.ToolStripStatusLabelBorderSides.Top)
                                                                                          | System.Windows.Forms.ToolStripStatusLabelBorderSides.Right)));
     this.TopPanel.Size            = new System.Drawing.Size(461, 31);
     this.TopPanel.Style           = Sunny.UI.UIStyle.Custom;
     this.TopPanel.StyleCustomMode = true;
     this.TopPanel.TabIndex        = 0;
     this.TopPanel.Text            = "2020-05-05";
     this.TopPanel.Click          += new System.EventHandler(this.TopPanel_Click);
     //
     // b4
     //
     this.b4.Anchor          = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.b4.BackColor       = System.Drawing.Color.Transparent;
     this.b4.Cursor          = System.Windows.Forms.Cursors.Hand;
     this.b4.FillColor       = System.Drawing.Color.White;
     this.b4.FillHoverColor  = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255)))));
     this.b4.Font            = new System.Drawing.Font("微软雅黑", 12F);
     this.b4.ForeColor       = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255)))));
     this.b4.ImageInterval   = 0;
     this.b4.Location        = new System.Drawing.Point(427, 4);
     this.b4.MinimumSize     = new System.Drawing.Size(1, 1);
     this.b4.Name            = "b4";
     this.b4.Padding         = new System.Windows.Forms.Padding(24, 0, 0, 0);
     this.b4.RadiusSides     = Sunny.UI.UICornerRadiusSides.None;
     this.b4.RectHoverColor  = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255)))));
     this.b4.RectSides       = System.Windows.Forms.ToolStripStatusLabelBorderSides.None;
     this.b4.Size            = new System.Drawing.Size(30, 24);
     this.b4.Style           = Sunny.UI.UIStyle.Custom;
     this.b4.StyleCustomMode = true;
     this.b4.Symbol          = 61697;
     this.b4.TabIndex        = 3;
     this.b4.Click          += new System.EventHandler(this.b4_Click);
     //
     // b3
     //
     this.b3.Anchor          = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.b3.BackColor       = System.Drawing.Color.Transparent;
     this.b3.Cursor          = System.Windows.Forms.Cursors.Hand;
     this.b3.FillColor       = System.Drawing.Color.White;
     this.b3.FillHoverColor  = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255)))));
     this.b3.Font            = new System.Drawing.Font("微软雅黑", 12F);
     this.b3.ForeColor       = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255)))));
     this.b3.ImageInterval   = 0;
     this.b3.Location        = new System.Drawing.Point(391, 4);
     this.b3.MinimumSize     = new System.Drawing.Size(1, 1);
     this.b3.Name            = "b3";
     this.b3.Padding         = new System.Windows.Forms.Padding(24, 0, 0, 0);
     this.b3.RadiusSides     = Sunny.UI.UICornerRadiusSides.None;
     this.b3.RectHoverColor  = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255)))));
     this.b3.RectSides       = System.Windows.Forms.ToolStripStatusLabelBorderSides.None;
     this.b3.Size            = new System.Drawing.Size(30, 24);
     this.b3.Style           = Sunny.UI.UIStyle.Custom;
     this.b3.StyleCustomMode = true;
     this.b3.Symbol          = 61701;
     this.b3.TabIndex        = 2;
     this.b3.Click          += new System.EventHandler(this.b3_Click);
     //
     // b2
     //
     this.b2.BackColor       = System.Drawing.Color.Transparent;
     this.b2.Cursor          = System.Windows.Forms.Cursors.Hand;
     this.b2.FillColor       = System.Drawing.Color.White;
     this.b2.FillHoverColor  = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255)))));
     this.b2.Font            = new System.Drawing.Font("微软雅黑", 12F);
     this.b2.ForeColor       = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255)))));
     this.b2.ImageInterval   = 0;
     this.b2.Location        = new System.Drawing.Point(40, 4);
     this.b2.MinimumSize     = new System.Drawing.Size(1, 1);
     this.b2.Name            = "b2";
     this.b2.Padding         = new System.Windows.Forms.Padding(24, 0, 0, 0);
     this.b2.RadiusSides     = Sunny.UI.UICornerRadiusSides.None;
     this.b2.RectHoverColor  = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255)))));
     this.b2.RectSides       = System.Windows.Forms.ToolStripStatusLabelBorderSides.None;
     this.b2.Size            = new System.Drawing.Size(30, 24);
     this.b2.Style           = Sunny.UI.UIStyle.Custom;
     this.b2.StyleCustomMode = true;
     this.b2.Symbol          = 61700;
     this.b2.TabIndex        = 1;
     this.b2.Click          += new System.EventHandler(this.b2_Click);
     //
     // b1
     //
     this.b1.BackColor       = System.Drawing.Color.Transparent;
     this.b1.Cursor          = System.Windows.Forms.Cursors.Hand;
     this.b1.FillColor       = System.Drawing.Color.White;
     this.b1.FillHoverColor  = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255)))));
     this.b1.Font            = new System.Drawing.Font("微软雅黑", 12F);
     this.b1.ForeColor       = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255)))));
     this.b1.ImageInterval   = 0;
     this.b1.Location        = new System.Drawing.Point(4, 4);
     this.b1.MinimumSize     = new System.Drawing.Size(1, 1);
     this.b1.Name            = "b1";
     this.b1.Padding         = new System.Windows.Forms.Padding(24, 0, 0, 0);
     this.b1.RadiusSides     = Sunny.UI.UICornerRadiusSides.None;
     this.b1.RectHoverColor  = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255)))));
     this.b1.RectSides       = System.Windows.Forms.ToolStripStatusLabelBorderSides.None;
     this.b1.Size            = new System.Drawing.Size(30, 24);
     this.b1.Style           = Sunny.UI.UIStyle.Custom;
     this.b1.StyleCustomMode = true;
     this.b1.Symbol          = 61696;
     this.b1.TabIndex        = 0;
     this.b1.Click          += new System.EventHandler(this.b1_Click);
     //
     // TabControl
     //
     this.TabControl.Controls.Add(this.tabPage1);
     this.TabControl.Controls.Add(this.tabPage2);
     this.TabControl.Controls.Add(this.tabPage3);
     this.TabControl.Dock                  = System.Windows.Forms.DockStyle.Fill;
     this.TabControl.DrawMode              = System.Windows.Forms.TabDrawMode.OwnerDrawFixed;
     this.TabControl.Font                  = new System.Drawing.Font("微软雅黑", 12F);
     this.TabControl.ItemSize              = new System.Drawing.Size(150, 40);
     this.TabControl.Location              = new System.Drawing.Point(0, 31);
     this.TabControl.Name                  = "TabControl";
     this.TabControl.SelectedIndex         = 0;
     this.TabControl.Size                  = new System.Drawing.Size(461, 317);
     this.TabControl.SizeMode              = System.Windows.Forms.TabSizeMode.Fixed;
     this.TabControl.Style                 = Sunny.UI.UIStyle.Custom;
     this.TabControl.TabIndex              = 1;
     this.TabControl.SelectedIndexChanged += new System.EventHandler(this.TabControl_SelectedIndexChanged);
     //
     // tabPage1
     //
     this.tabPage1.Controls.Add(this.p1);
     this.tabPage1.Location = new System.Drawing.Point(0, 40);
     this.tabPage1.Name     = "tabPage1";
     this.tabPage1.Size     = new System.Drawing.Size(461, 277);
     this.tabPage1.TabIndex = 0;
     this.tabPage1.Text     = "tabPage1";
     this.tabPage1.UseVisualStyleBackColor = true;
     //
     // p1
     //
     this.p1.Dock        = System.Windows.Forms.DockStyle.Fill;
     this.p1.FillColor   = System.Drawing.Color.White;
     this.p1.Font        = new System.Drawing.Font("微软雅黑", 12F);
     this.p1.Location    = new System.Drawing.Point(0, 0);
     this.p1.Margin      = new System.Windows.Forms.Padding(4, 5, 4, 5);
     this.p1.MinimumSize = new System.Drawing.Size(1, 1);
     this.p1.Name        = "p1";
     this.p1.RadiusSides = Sunny.UI.UICornerRadiusSides.None;
     this.p1.Size        = new System.Drawing.Size(461, 277);
     this.p1.Style       = Sunny.UI.UIStyle.Custom;
     this.p1.TabIndex    = 0;
     this.p1.Text        = null;
     this.p1.PaintOther += new System.Windows.Forms.PaintEventHandler(this.p1_PaintOther);
     this.p1.MouseClick += new System.Windows.Forms.MouseEventHandler(this.p1_MouseClick);
     this.p1.MouseMove  += new System.Windows.Forms.MouseEventHandler(this.p1_MouseMove);
     //
     // tabPage2
     //
     this.tabPage2.Controls.Add(this.p2);
     this.tabPage2.Location = new System.Drawing.Point(0, 40);
     this.tabPage2.Name     = "tabPage2";
     this.tabPage2.Size     = new System.Drawing.Size(450, 230);
     this.tabPage2.TabIndex = 1;
     this.tabPage2.Text     = "tabPage2";
     this.tabPage2.UseVisualStyleBackColor = true;
     //
     // p2
     //
     this.p2.Dock        = System.Windows.Forms.DockStyle.Fill;
     this.p2.FillColor   = System.Drawing.Color.White;
     this.p2.Font        = new System.Drawing.Font("微软雅黑", 12F);
     this.p2.Location    = new System.Drawing.Point(0, 0);
     this.p2.Margin      = new System.Windows.Forms.Padding(4, 5, 4, 5);
     this.p2.MinimumSize = new System.Drawing.Size(1, 1);
     this.p2.Name        = "p2";
     this.p2.RadiusSides = Sunny.UI.UICornerRadiusSides.None;
     this.p2.Size        = new System.Drawing.Size(450, 230);
     this.p2.Style       = Sunny.UI.UIStyle.Custom;
     this.p2.TabIndex    = 1;
     this.p2.Text        = null;
     this.p2.PaintOther += new System.Windows.Forms.PaintEventHandler(this.p2_PaintOther);
     this.p2.MouseClick += new System.Windows.Forms.MouseEventHandler(this.p2_MouseClick);
     this.p2.MouseMove  += new System.Windows.Forms.MouseEventHandler(this.p2_MouseMove);
     //
     // tabPage3
     //
     this.tabPage3.Controls.Add(this.p3);
     this.tabPage3.Location = new System.Drawing.Point(0, 40);
     this.tabPage3.Name     = "tabPage3";
     this.tabPage3.Size     = new System.Drawing.Size(461, 277);
     this.tabPage3.TabIndex = 2;
     this.tabPage3.Text     = "tabPage3";
     this.tabPage3.UseVisualStyleBackColor = true;
     //
     // p3
     //
     this.p3.Dock        = System.Windows.Forms.DockStyle.Fill;
     this.p3.FillColor   = System.Drawing.Color.White;
     this.p3.Font        = new System.Drawing.Font("微软雅黑", 12F);
     this.p3.Location    = new System.Drawing.Point(0, 0);
     this.p3.Margin      = new System.Windows.Forms.Padding(4, 5, 4, 5);
     this.p3.MinimumSize = new System.Drawing.Size(1, 1);
     this.p3.Name        = "p3";
     this.p3.RadiusSides = Sunny.UI.UICornerRadiusSides.None;
     this.p3.Size        = new System.Drawing.Size(461, 277);
     this.p3.Style       = Sunny.UI.UIStyle.Custom;
     this.p3.TabIndex    = 2;
     this.p3.Text        = null;
     this.p3.PaintOther += new System.Windows.Forms.PaintEventHandler(this.p3_PaintOther);
     this.p3.MouseClick += new System.Windows.Forms.MouseEventHandler(this.p3_MouseClick);
     this.p3.MouseMove  += new System.Windows.Forms.MouseEventHandler(this.p3_MouseMove);
     //
     // UIDateItem
     //
     this.Controls.Add(this.TabControl);
     this.Controls.Add(this.TopPanel);
     this.FillColor = System.Drawing.Color.White;
     this.Name      = "UIDateItem";
     this.Size      = new System.Drawing.Size(461, 348);
     this.Style     = Sunny.UI.UIStyle.Custom;
     this.TopPanel.ResumeLayout(false);
     this.TabControl.ResumeLayout(false);
     this.tabPage1.ResumeLayout(false);
     this.tabPage2.ResumeLayout(false);
     this.tabPage3.ResumeLayout(false);
     this.ResumeLayout(false);
 }