예제 #1
0
 private void newStoreAction_Triggered(object sender, MMC.SyncActionEventArgs e)
 {
     frmStoreProperties frm = new frmStoreProperties();
     frm.storage = this.storage;
     DialogResult dr = this.SnapIn.Console.ShowDialog(frm);
     if (dr == DialogResult.OK)
     {
         this.Children.Add(new StoreScopeNode(frm.store));
     }
 }
예제 #2
0
        private void storePropertiesAction_Triggered(object sender, MMC.SyncActionEventArgs e)
        {
            frmStoreProperties frm = new frmStoreProperties();
            frm.Text += " - " + this.store.Name;
            frm.store = this.store;
            frm.storage = this.store.Storage;

            DialogResult dr = this.SnapIn.Console.ShowDialog(frm);
            if (dr == DialogResult.OK)
            {
                this.RenderStoreScopeNode();
            }
        }