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