Beispiel #1
0
        public void CloseAddEditGroup(AddEditGroup aeg)
        {
            if (aeg.SaveOk)
            {
                if (aeg.GroupId < 0)
                {
                    _groupFunct.AddNewGroup(aeg.GroupName, aeg.GroupDescription);
                    reloadGroups();
                }
                else
                {
                    _groupFunct.SaveGroup(aeg.GroupId, aeg.GroupName, aeg.GroupDescription);
                    reloadGroups();
                }
            }

            this.Controls.Remove(aeg);
            groupBox1.Enabled = true;
            aeg.Dispose();
        }
Beispiel #2
0
 public void AddNewGroup(string name_gr, string desc_gr)
 {
     gf.AddNewGroup(name_gr, desc_gr);
     reloadGroups();
 }