예제 #1
0
        private void AddGroup()
        {
            var group     = new Group();
            var groupForm = new CreateGroup(ref group);

            groupForm.ShowDialog();
        }
예제 #2
0
        private void BtnEditGroup_Click(object sender, EventArgs e)
        {
            var group     = ((MemberWithGroup)TvGroupsMembers.SelectedObject).Group;
            var editGroup = new CreateGroup(ref group);

            editGroup.ShowDialog();
            ((MemberWithGroup)TvGroupsMembers.SelectedObject).GroupName = group.Name;
            TvGroupsMembers.UpdateObject((MemberWithGroup)TvGroupsMembers.SelectedObject);
        }