private void Handler_SwitchPage(object theSender, EventArgs theArgs) { frmSwitchPages pages = new frmSwitchPages(this); if (pages.ShowDialog() == DialogResult.OK) { if (pages.SetSelectedPage) { IDesignerHost service = (IDesignerHost)this.GetService(typeof(IDesignerHost)); if (service != null) { DesignerTransactionUtility.DoInTransaction(service, "MultiPaneControlSetSelectedPageAsConcrete", new TransactionAwareParammedMethod(this.Transaction_SetSelectedPageAsConcrete), pages.FutureSelection); } } else { this.DesignerSelectedPage = pages.FutureSelection; } } }
private void Handler_SwitchPage(object theSender, EventArgs theArgs) { frmSwitchPages pages = new frmSwitchPages(this); if (pages.ShowDialog() == DialogResult.OK) { if (pages.SetSelectedPage) { IDesignerHost service = (IDesignerHost) this.GetService(typeof(IDesignerHost)); if (service != null) { DesignerTransactionUtility.DoInTransaction(service, "MultiPaneControlSetSelectedPageAsConcrete", new TransactionAwareParammedMethod(this.Transaction_SetSelectedPageAsConcrete), pages.FutureSelection); } } else { this.DesignerSelectedPage = pages.FutureSelection; } } }