private void okButton_Click(object sender, EventArgs e)
 {
     Group group = new Group(groupTextBox.Text.ToString());
     dash.addGroup(group);
     Close();
     dash.populateGroupsComboBox();
 }
Esempio n. 2
0
 public void addGroup(Group theGroup)
 {
     if (groups.ContainsKey(theGroup.name) == false)
         groups.Add(theGroup.name, theGroup.usersInGroup);
     else
         MessageBox.Show("A group already exists with this name.");
 }