Exemple #1
0
 /// <summary>
 /// get instance function
 /// </summary>
 /// <returns></returns>
 public static RubricUserControl getInstance()
 {
     if (instance == null)
     {
         instance = new RubricUserControl();
     }
     return(instance);
 }
Exemple #2
0
        /// <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());
        }