/// <summary> /// get instance function /// </summary> /// <returns></returns> public static RubricUserControl getInstance() { if (instance == null) { instance = new RubricUserControl(); } return(instance); }
/// <summary> /// show rubric click event /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void button4_Click(object sender, EventArgs e) { panelHome.Controls.Clear(); panelHome.Controls.Add(RubricUserControl.getInstance()); }