/// <summary> /// get instance function /// </summary> /// <returns>instance</returns> public static AssessmentUserControl getInstance() { if (instance == null) { instance = new AssessmentUserControl(); } return(instance); }
/// <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()); }