private void applicationPropertiesAction_Triggered(object sender, MMC.SyncActionEventArgs e) { frmApplicationProperties frm = new frmApplicationProperties(); frm.Text += " - " + this.application.Name; frm.application = this.application; frm.store = this.application.Store; DialogResult dr = this.SnapIn.Console.ShowDialog(frm); if (dr == DialogResult.OK) { this.RenderApplication(); } }
private void newApplicationAction_Triggered(object sender, MMC.SyncActionEventArgs e) { frmApplicationProperties frm = new frmApplicationProperties(); frm.store = this.store; DialogResult dr = this.SnapIn.Console.ShowDialog(frm); if (dr == DialogResult.OK) { this.Children.Add(new ApplicationScopeNode(frm.application)); } }