Exemple #1
0
        private void editGroupButton_Click(object sender, EventArgs e)
        {
            ManageGroups manageGroups = (ManageGroups)Application.OpenForms["ManageGroups"];
            EditGroup    view         = new EditGroup(groupList.SelectedValue.ToString(), manageGroups);

            view.Show();
        }
Exemple #2
0
        private void updateGroupButton_Click(object sender, EventArgs e)
        {
            if (InsertGroupMembersIntoDatabase() && UpdateGroupInfoIntoDatabase() && RemoveGroupMembersFromDB())
            {
                MessageBox.Show("Group successfully updated.", "Success", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }

            EditGroup refresh = new EditGroup(groupName_Text.Text, formToClose);

            refresh.Show();
            Hide();
        }