protected void OnClickFeedbackButton(object sender, EventArgs e) { IUIService service = (IUIService) ((IServiceProvider) MxApplication.Current).GetService(typeof(IUIService)); if (service != null) { ApplicationInfoDialog form = new ApplicationInfoDialog(MxApplication.Current.ServiceProvider, true); service.ShowDialog(form); } }
bool ICommandHandler.HandleCommand(Command command) { ISearchableDocumentView view; bool flag = false; bool flag2 = false; if (command.CommandGroup.Equals(typeof(GlobalCommands))) { switch (command.CommandID) { case 0x6c: goto Label_02E2; case 0x6d: { ISearchableDocumentView activeDocumentView = this.GetActiveDocumentView() as ISearchableDocumentView; if (activeDocumentView != null) { ReplaceDialog dialog2 = new ReplaceDialog(this._serviceProvider, activeDocumentView, this._lastFindReplaceOptions, activeDocumentView.InitialSearchString, this.FindMruList, this.ReplaceMruList); IUIService service7 = (IUIService) this._serviceProvider.GetService(typeof(IUIService)); if (service7 != null) { service7.ShowDialog(dialog2); this._lastFindReplaceOptions = dialog2.FindReplaceOptions; } flag2 = true; } flag = true; goto Label_052C; } case 110: { ISearchableDocumentView view3 = this.GetActiveDocumentView() as ISearchableDocumentView; if (((view3 != null) && (command.Text != null)) && (command.Text.Length > 0)) { this.FindMruList.AddEntry(command.Text); flag2 = true; if (!view3.PerformFind(command.Text, this._lastFindReplaceOptions & (FindReplaceOptions.WholeWord | FindReplaceOptions.MatchCase))) { IUIService service6 = (IUIService) this._serviceProvider.GetService(typeof(IUIService)); if (service6 != null) { service6.ShowMessage("Couldn't find '" + command.Text + "'", string.Empty, MessageBoxButtons.OK); } } } flag = true; goto Label_052C; } case 8: { IPrintService service = (IPrintService) this._serviceProvider.GetService(typeof(IPrintService)); if (service != null) { service.ConfigurePrintSettings(); } flag = true; goto Label_052C; } case 300: case 0x12d: case 0x12e: case 0x12f: case 0x130: case 0x131: case 0x132: case 0x133: case 0x134: case 0x135: case 320: case 0x141: ((ICommandHandler) this.AddInManager).HandleCommand(command); flag = true; goto Label_052C; case 310: case 0x137: case 0x138: case 0x139: case 0x13a: case 0x13b: case 0x13c: case 0x13d: case 0x13e: case 0x13f: case 0x142: case 0x143: case 0x259: case 0x25d: case 0x25f: case 0x260: case 0x261: goto Label_052C; case 0x144: { OptionsDialog dialog3 = new OptionsDialog(this._serviceProvider); ((IUIService) this._serviceProvider.GetService(typeof(IUIService))).ShowDialog(dialog3); flag = true; goto Label_052C; } case 0x145: case 0x146: case 0x147: { IToolboxService service8 = this._serviceProvider.GetService(typeof(IToolboxService)) as IToolboxService; ToolboxSection activeSection = service8.ActiveSection; if (activeSection != null) { activeSection.Customize(command.CommandID - 0x145, this._serviceProvider); } flag = true; goto Label_052C; } case 180: { ISearchableDocumentView view2 = this.GetActiveDocumentView() as ISearchableDocumentView; if (view2 != null) { if (this.FindMruList.Count == 0) { goto Label_02E2; } view2.PerformFind(this.FindMruList[0], this._lastFindReplaceOptions & (FindReplaceOptions.WholeWord | FindReplaceOptions.MatchCase)); flag2 = true; } flag = true; goto Label_052C; } case 600: this.OnCommandHelpTopics(); flag = true; goto Label_052C; case 0x25a: case 0x25e: { ApplicationInfoDialog dialog = new ApplicationInfoDialog(this._serviceProvider, command.CommandID == 0x25e); IUIService service4 = (IUIService) this._serviceProvider.GetService(typeof(IUIService)); if (service4 == null) { dialog.ShowDialog(); } else { service4.ShowDialog(dialog); } flag = true; goto Label_052C; } case 0x25b: case 0x25c: { string format = ConfigurationSettings.AppSettings["IDE.AskQuestionUrl"]; if ((format == null) || (format.Length == 0)) { ((IUIService) this._serviceProvider.GetService(typeof(IUIService))).ShowMessage("Unable to bring up launch the answer page.", "Ask Question"); } else { string entry = string.Empty; if (command.CommandID == 0x25c) { entry = command.Text; if (entry != null) { this.AskQuestionMruList.AddEntry(entry); format = string.Format(format, entry); flag2 = true; } } ((IWebBrowsingService) this._serviceProvider.GetService(typeof(IWebBrowsingService))).BrowseUrl(format); } flag = true; goto Label_052C; } case 610: case 0x263: case 0x264: case 0x265: case 0x266: case 0x267: case 0x268: case 0x269: case 0x26a: case 0x26b: { IDictionary webLinks = this.WebLinks; if (webLinks != null) { int num = command.CommandID - 610; string str = "Help" + num; WebLink link = (WebLink) webLinks[str]; if (link != null) { this.OnCommandBrowseUrl(link.Url); } } flag = true; goto Label_052C; } } } goto Label_052C; Label_02E2: view = this.GetActiveDocumentView() as ISearchableDocumentView; if (view != null) { SearchForm form = new SearchForm(this._serviceProvider, view, this._lastFindReplaceOptions, view.InitialSearchString, this.FindMruList); IUIService service5 = (IUIService) this._serviceProvider.GetService(typeof(IUIService)); if (service5 != null) { service5.ShowDialog(form); this._lastFindReplaceOptions = form.FindReplaceOptions; } flag2 = true; } flag = true; Label_052C: if (flag2) { ((ICommandManager) this._serviceProvider.GetService(typeof(ICommandManager))).UpdateCommands(false); } return flag; }