コード例 #1
0
        private void MenuItemAddGroup_Click(object sender, EventArgs e)
        {
            FrmServerGroup serverGroup = new FrmServerGroup();

            if (serverGroup.ShowDialog(this) == DialogResult.OK)
            {
                this.LoadGroup();
            }
        }
コード例 #2
0
        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();
                }
            }
        }