/// <summary>
        /// get instance function for singleton purpose
        /// </summary>
        /// <returns>instance of this usercontrol</returns>

        public static AssessmentComponentUserControl getInstance()
        {
            if (instance == null)
            {
                instance = new AssessmentComponentUserControl();
            }
            return(instance);
        }
Exemple #2
0
 /// <summary>
 /// show assessment component click event
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void button7_Click(object sender, EventArgs e)
 {
     panelHome.Controls.Clear();
     panelHome.Controls.Add(AssessmentComponentUserControl.getInstance());
 }