Example #1
0
        private void btnAddGroup_Click(object sender, EventArgs e)
        {
            AssignGroup assignGroup = AssignGroup.GetInstance();

            assignGroup.Show();
            this.Hide();
        }
 public static AssignGroup GetInstance()
 {
     if (Instance == null)
     {
         AssignGroup new_Instance = new AssignGroup();
         return(new_Instance);
     }
     return(Instance);
 }
Example #3
0
 private void btnChangeGroup_Click(object sender, EventArgs e)
 {
     if (btnChangeGroup.Text == "Change")
     {
         MessageBox.Show("Group cannot be changed at this time.");
     }
     else
     {
         AssignGroup assignGroup = AssignGroup.GetInstance();
         assignGroup.Show();
         this.Hide();
     }
 }