void ICommandClient.DoCommand(object commandTag) { var selectionContext = m_contextRegistry.GetActiveContext <ISelectionContext>(); var namingContext = m_contextRegistry.GetActiveContext <INamingContext>(); var transactionContext = m_contextRegistry.GetActiveContext <ITransactionContext>(); using (var dialog = new RenameCommandDialog()) { dialog.Set(selectionContext, namingContext, transactionContext); dialog.Settings = Settings; // Keep the dialog box on top of this application only, not all apps. Make it modal // unless we want to make it handle context switches and be dockable. dialog.ShowDialog(GetDialogOwner()); Settings = dialog.Settings; } }
void ICommandClient.DoCommand(object commandTag) { var selectionContext = m_contextRegistry.GetActiveContext<ISelectionContext>(); var namingContext = m_contextRegistry.GetActiveContext<INamingContext>(); var transactionContext = m_contextRegistry.GetActiveContext<ITransactionContext>(); using (var dialog = new RenameCommandDialog()) { dialog.Set(selectionContext, namingContext, transactionContext); dialog.Settings = Settings; // Keep the dialog box on top of this application only, not all apps. Make it modal // unless we want to make it handle context switches and be dockable. dialog.ShowDialog(GetDialogOwner()); Settings = dialog.Settings; } }