/// <summary>
 /// get instance function
 /// </summary>
 /// <returns></returns>
 public static StudentResultUserControl getInstance()
 {
     if (instance == null)
     {
         instance = new StudentResultUserControl();
     }
     return(instance);
 }
示例#2
0
 /// <summary>
 /// show student result click event
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void button8_Click(object sender, EventArgs e)
 {
     panelHome.Controls.Clear();
     panelHome.Controls.Add(StudentResultUserControl.getInstance());
 }