Exemplo n.º 1
0
        public override void OnNewObjButtonClick(object sender, EventArgs e)
        {
            EditGroup    newG   = new EditGroup(); // Create a new group
            DialogResult dialog = newG.ShowDialog(this);

            if (dialog != DialogResult.OK)
            {
                return;
            }

            Dictionary <string, string> formData = new Dictionary <string, string> {
                { "name", newG.newName },
                { "subject", newG.newSubject }
            };

            APIHandler.CreateGroup(formData);
            RefreshList();
        }