/// <summary>
 /// getinstance function
 /// </summary>
 /// <returns></returns>
 public static StudentsUserControl getInstance()
 {
     if (instance == null)
     {
         instance = new StudentsUserControl();
     }
     return(instance);
 }
Пример #2
0
 /// <summary>
 /// show rubric click event
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void Form1_Load(object sender, EventArgs e)
 {
     panelHome.Controls.Clear();
     panelHome.Controls.Add(StudentsUserControl.getInstance());
 }
Пример #3
0
 /// <summary>
 /// show students click event
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void button1_Click(object sender, EventArgs e)
 {
     panelHome.Controls.Clear();
     panelHome.Controls.Add(StudentsUserControl.getInstance());
 }