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