コード例 #1
0
 /// <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());
 }