Exemple #1
0
        private void btnEdit_Click(object sender, EventArgs e)
        {
            Logger.EnteringMethod();
            MetaGroup            metaGroupToEdit   = (MetaGroup)cmbBxMetaGroups.SelectedItem;
            frmMetaGroupCreation metaGroupCreation = new frmMetaGroupCreation(_metaGroups, _computerGroups, metaGroupToEdit);

            if (metaGroupCreation.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                _metaGroups = metaGroupCreation.MetaGroupList;
                FillMetaGroups();
            }
            metaGroupCreation.Dispose();
            metaGroupCreation = null;
        }
Exemple #2
0
        private void btnCreate_Click(object sender, EventArgs e)
        {
            Logger.EnteringMethod();
            frmMetaGroupCreation metaGroupCreation = new frmMetaGroupCreation(_metaGroups, _computerGroups);

            if (metaGroupCreation.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                _metaGroups = metaGroupCreation.MetaGroupList;
                FillMetaGroups();
            }
            metaGroupCreation.Dispose();
            metaGroupCreation = null;
            AdjustSplitterDistance();
        }