private void editLinkLabel_Clicked(object sender, LinkLabelLinkClickedEventArgs e) { EditGroup edit = new EditGroup(this.group); DialogResult dialog = edit.ShowDialog(); if (dialog != DialogResult.OK) { return; } Dictionary <string, string> formData = new Dictionary <string, string> { { "name", edit.newName }, { "subject", edit.newSubject } }; APIHandler.UpdateGroup(this.group, formData); MessageBox.Show("Group has been updated successfully."); ParentRefreshList(); }