Пример #1
0
 public Staff()
 {
     InitializeComponent();
     //Hide both groupbox
     TR_GB.Hide();
     TCC_GB.Hide();
     //Hide description text
     TCC_Cat_Description_Text_LB.Text = "";
     //Hide no result label
     No_result_LB.Hide();
     TCC_Course_LB.Hide();
     TCC_Topic_LB.Hide();
 }
Пример #2
0
        /// <summary>
        /// Trainer and Trainee related functions
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>


        //Choose Topic, Course and Category Groupbox
        private void TCC_BT_Click(object sender, EventArgs e)
        {
            //bring the TCC group box to front
            TCC_GB.Show();
            TCC_GB.BringToFront();

            //fill Category listbox with Category Name
            TCC_Cat_LB.DataSource = SC.CatNameRec();
            CatName = SC.CatNameRec();

            //Deselect index from all listbox
            TCC_Cat_LB.SelectedIndex    = -1;
            TCC_Course_LB.SelectedIndex = -1;
            TCC_Topic_LB.SelectedIndex  = -1;
        }