private void MenuItemAddGroup_Click(object sender, EventArgs e) { FrmServerGroup serverGroup = new FrmServerGroup(); if (serverGroup.ShowDialog(this) == DialogResult.OK) { this.LoadGroup(); } }
private void MenuItemEditGroup_Click(object sender, EventArgs e) { var group = tvServers.SelectedNode.Tag as ServerGroup; if (group != null) { FrmServerGroup serverGroup = new FrmServerGroup(); serverGroup.IsEdit = true; serverGroup.Group = group; if (serverGroup.ShowDialog(this) == DialogResult.OK) { this.LoadGroup(); } } }