Beispiel #1
0
        void tabBar_TabChange(object sender, TabBar.TabChangedEventArgs e)
        {
            SectionView board = Sections[e.Tab.ID];

            this.deck.Controls.Clear();
            this.deck.Controls.Add(board);
            board.Show();
            board.Dock  = DockStyle.Fill;
            activeBoard = board;
        }
Beispiel #2
0
 public void SetSection(string sectionId)
 {
     try
     {
         SectionView board = Sections[sectionId];
         this.deck.Controls.Clear();
         this.Deck.Controls.Add(board);
         board.Show();
         board.Dock  = DockStyle.Fill;
         activeBoard = board;
         foreach (Tab tab in tabBar.Tabs)
         {
             if (tab.ID == sectionId)
             {
                 tabBar.ActiveTab = tab;
                 tabBar.Refresh();
             }
         }
     }
     catch (Exception e)
     {
     }
 }