public HomeButton(LoggerTabPage page)
 {
     this.page = page;
     DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.ImageAndText;
     Image = ImageResource.Back16x16;
     ImageTransparentColor = Color.Magenta;
     Name = "Home";
     Size = new Size(23, 22);
     Text = "Home";
 }
Beispiel #2
0
 public HomeButton(LoggerTabPage page)
 {
     this.page             = page;
     DisplayStyle          = System.Windows.Forms.ToolStripItemDisplayStyle.ImageAndText;
     Image                 = ImageResource.Back16x16;
     ImageTransparentColor = Color.Magenta;
     Name = "Home";
     Size = new Size(23, 22);
     Text = "Home";
 }
Beispiel #3
0
 public PageButton(LoggerTabPage page, string name, bool enabled, Image image)
 {
     this.page = page;
     BackColor = System.Drawing.Color.Transparent;
     Enabled   = enabled;
     FlatAppearance.BorderSize         = 0;
     FlatAppearance.MouseOverBackColor = Color.Transparent;
     FlatStyle  = FlatStyle.Flat;
     this.Image = image;
     Size       = new Size(109, 81);
     Name       = name;
     Text       = name;
     TextAlign  = ContentAlignment.BottomCenter;
 }
Beispiel #4
0
        public virtual void OnActivate()
        {
            TabPage tp = Parent as TabPage;

            if (tp != null)
            {
                TabControl    tc          = (TabControl)tp.Parent;
                TabPage       current     = tc.TabPages[tc.SelectedIndex];
                LoggerTabPage currentPage = current.Controls[0] as LoggerTabPage;
                if (currentPage != null)
                {
                    currentPage.OnDeactivate();
                }

                tc.SelectedIndex = tc.TabPages.IndexOf(tp);
            }
        }
Beispiel #5
0
        public void RegisterPage(LoggerTabPage page, string name, Image image, bool enabled)
        {
            PageButton button = new PageButton(page, name, enabled, image);

            mainTabFlowLayoutPanel.Controls.Add(button);
        }
 public void SetHomePage(LoggerTabPage page)
 {
     this.page = page;
 }
 public PageButton(LoggerTabPage page, string name, bool enabled, Image image)
 {
     this.page = page;
     BackColor = System.Drawing.Color.Transparent;
     Enabled = enabled;
     FlatAppearance.BorderSize = 0;
     FlatAppearance.MouseOverBackColor = Color.Transparent;
     FlatStyle = FlatStyle.Flat;
     this.Image = image;
     Size = new Size(109, 81);
     Name = name;
     Text = name;
     TextAlign = ContentAlignment.BottomCenter;
 }
 public void RegisterPage(LoggerTabPage page, string name, Image image, bool enabled)
 {
     PageButton button = new PageButton(page, name, enabled, image);
     mainTabFlowLayoutPanel.Controls.Add(button);
 }
Beispiel #9
0
 public void SetHomePage(LoggerTabPage page)
 {
     this.page = page;
 }