Example #1
0
 public static GroupForm GetInstance(int profileId)
 {
     if (instance == null)
     {
         instance = new GroupForm(profileId);
     }
     return(instance);
 }
Example #2
0
 private void BtnGroups_Click(object sender, EventArgs e)//Goes to Group View
 {
     GroupForm.GetInstance(profileId).Show();
 }
Example #3
0
 private void GroupForm_Closing(object sender, CancelEventArgs e)//on close event
 {
     instance = null;
 }
Example #4
0
 private void Back_btn_Click(object sender, EventArgs e)
 {
     Close();
     instance = null;
 }