Exemple #1
0
 /// <summary>
 /// get instance function to get instance of this userscontrol
 /// </summary>
 /// <returns></returns>
 public static AttendenceUserControl getInstance()
 {
     if (instance == null)
     {
         instance = new AttendenceUserControl();
     }
     return(instance);
 }
Exemple #2
0
 /// <summary>
 /// show attendence click event
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void button2_Click(object sender, EventArgs e)
 {
     panelHome.Controls.Clear();
     panelHome.Controls.Add(AttendenceUserControl.getInstance());
 }