DebuggeeExceptionForm(Process process) { InitializeComponent(); this.process = process; this.process.Exited += ProcessHandler; this.process.Resumed += ProcessHandler; this.FormClosed += FormClosedHandler; this.WindowState = DebuggingOptions.Instance.DebuggeeExceptionWindowState; FormLocationHelper.Apply(this, "DebuggeeExceptionForm", true); this.MinimizeBox = this.MaximizeBox = this.ShowIcon = false; this.exceptionView.Font = WinFormsResourceService.DefaultMonospacedFont; this.exceptionView.DoubleClick += ExceptionViewDoubleClick; this.exceptionView.WordWrap = false; this.btnBreak.Text = StringParser.Parse("${res:MainWindow.Windows.Debug.ExceptionForm.Break}"); this.btnStop.Text = StringParser.Parse("${res:MainWindow.Windows.Debug.ExceptionForm.Terminate}"); this.btnContinue.Text = StringParser.Parse("${res:MainWindow.Windows.Debug.ExceptionForm.Continue}"); this.btnBreak.Image = WinFormsResourceService.GetBitmap("Icons.16x16.Debug.Break"); this.btnStop.Image = WinFormsResourceService.GetBitmap("Icons.16x16.StopProcess"); this.btnContinue.Image = WinFormsResourceService.GetBitmap("Icons.16x16.Debug.Continue"); }
protected Result result = Result.Break; // Default protected DebuggerEventForm() { InitializeComponent(); this.Text = StringParser.Parse(this.Text); buttonBreak.Text = StringParser.Parse(buttonBreak.Text); buttonContinue.Text = StringParser.Parse(buttonContinue.Text); buttonTerminate.Text = StringParser.Parse(buttonTerminate.Text); WindowState = DebuggingOptions.Instance.DebuggerEventWindowState; FormLocationHelper.Apply(this, "DebuggerEventForm", true); }
public RegExpTkDialog() { SetupFromXmlStream(this.GetType().Assembly.GetManifestResourceStream("Resources.RegExpTkMainForm.xfrm")); List <QuickInsert> quickies = new List <QuickInsert>(); quickies.Add(new QuickInsert("${res:RegExpTk.RegExpMenu.UngreedyStar}", "*?")); quickies.Add(new QuickInsert("${res:RegExpTk.RegExpMenu.WordCharacter}", "\\w")); quickies.Add(new QuickInsert("${res:RegExpTk.RegExpMenu.NonWordCharacter}", "\\W")); quickies.Add(new QuickInsert("${res:RegExpTk.RegExpMenu.WhitespaceCharacter}", "\\s")); quickies.Add(new QuickInsert("${res:RegExpTk.RegExpMenu.NonWhitespaceCharacter}", "\\S")); quickies.Add(new QuickInsert("${res:RegExpTk.RegExpMenu.DigitCharacter}", "\\d")); quickies.Add(new QuickInsert("${res:RegExpTk.RegExpMenu.NonDigitCharacter}", "\\D")); quickies.Add(new QuickInsert("${res:RegExpTk.RegExpMenu.WordBorder}", "\\b")); foreach (QuickInsert insert in quickies) { MenuCommand cmd = new MenuCommand(insert.Name, new EventHandler(quickInsert)); cmd.Tag = insert.Text; quickInsertMenu.Items.Add(cmd); } matchListViewContextMenu.Items.Add(new MenuCommand("${res:RegExpTk.MainDialog.ShowGroups}", new EventHandler(MatchListViewContextMenu_Clicked))); ((Button)ControlDictionary["OkButton"]).Click += new EventHandler(OkButton_Click); ((CheckBox)ControlDictionary["ReplaceCheckBox"]).CheckedChanged += new EventHandler(ReplaceCheckBox_CheckedChanged); ((ListView)ControlDictionary["GroupListView"]).SelectedIndexChanged += new EventHandler(GroupListView_SelectedIndexChanged); ((ListView)ControlDictionary["GroupListView"]).DoubleClick += new EventHandler(GroupListView_DoubleClick); ((ListView)ControlDictionary["GroupListView"]).MouseUp += new MouseEventHandler(GroupListView_MouseUp); ((Button)ControlDictionary["ChooseAssemblyFileCompileButton"]).Click += new EventHandler(ChooseAssemblyFileCompileButton_Click); ((Button)ControlDictionary["CreateAssemblyFileCompileButton"]).Click += new EventHandler(CreateAssemblyFile); ((Button)ControlDictionary["quickInsertButton"]).MouseDown += new MouseEventHandler(showQuickInsertMenu); ((Button)ControlDictionary["quickInsertButton"]).Image = WinFormsResourceService.GetBitmap("Icons.16x16.PasteIcon"); ControlDictionary["RegularExpressionTextBox"].KeyPress += delegate(object sender, KeyPressEventArgs e) { if (e.KeyChar == '\r') { OkButton_Click(null, null); e.Handled = true; } }; ((RichTextBox)ControlDictionary["InputTextBox"]).DetectUrls = false; ReplaceCheckBox_CheckedChanged((CheckBox)ControlDictionary["ReplaceCheckBox"], null); this.Width = Screen.PrimaryScreen.WorkingArea.Width / 2; ((TextBox)ControlDictionary["RegularExpressionTextBox"]).TextChanged += new EventHandler(SetRegEx); FormLocationHelper.Apply(this, "RegExpTk.WindowBounds", true); }
public SearchAndReplaceFrom(SearchAndReplaceMode searchAndReplaceMode) { InitializeComponent(); this.Owner = WorkbenchSingleton.MainForm; this.FormBorderStyle = FormBorderStyle.FixedToolWindow; this.ShowInTaskbar = false; this.TopMost = false; this.KeyPreview = true; this.ToolStripButton_Find.Checked = searchAndReplaceMode == SearchAndReplaceMode.Search; this.ToolStripButton_Replace.Checked = searchAndReplaceMode == SearchAndReplaceMode.Replace; SetSearchAndReplaceMode(); FormLocationHelper.Apply(this, "ICSharpCode.SharpDevelop.Gui.SearchAndReplaceDialog.Location", false); }
public SearchAndReplaceDialog(SearchAndReplaceMode searchAndReplaceMode) { SuspendLayout(); this.FormBorderStyle = FormBorderStyle.FixedToolWindow; this.ShowInTaskbar = false; this.TopMost = false; this.Text = StringParser.Parse("${res:Dialog.NewProject.SearchReplace.Title}"); this.KeyPreview = true; searchAndReplacePanel = new SearchAndReplacePanel(); searchAndReplacePanel.Dock = DockStyle.Fill; Controls.Add(searchAndReplacePanel); ToolStrip toolStrip = new ToolStrip(); toolStrip.Dock = DockStyle.Top; toolStrip.Stretch = true; toolStrip.GripStyle = System.Windows.Forms.ToolStripGripStyle.Hidden; searchButton.Text = StringParser.Parse("${res:Dialog.NewProject.SearchReplace.FindDialogName}"); searchButton.Image = IconService.GetBitmap("Icons.16x16.FindIcon"); searchButton.Checked = searchAndReplaceMode == SearchAndReplaceMode.Search; searchButton.Click += new EventHandler(SearchButtonClick); toolStrip.Items.Add(searchButton); replaceButton.Text = StringParser.Parse("${res:Dialog.NewProject.SearchReplace.ReplaceDialogName}"); replaceButton.Image = IconService.GetBitmap("Icons.16x16.ReplaceIcon"); replaceButton.Checked = searchAndReplaceMode == SearchAndReplaceMode.Replace; replaceButton.Click += new EventHandler(ReplaceButtonClick); toolStrip.Items.Add(replaceButton); Controls.Add(toolStrip); RightToLeftConverter.ConvertRecursive(this); this.AutoScaleMode = AutoScaleMode.Dpi; this.AutoScaleDimensions = new SizeF(96, 96); ResumeLayout(); SetSearchAndReplaceMode(); FormLocationHelper.Apply(this, "ICSharpCode.SharpDevelop.Gui.SearchAndReplaceDialog.Location", false); searchKeyboardShortcut = GetKeyboardShortcut(SearchMenuAddInPath, "Find"); replaceKeyboardShortcut = GetKeyboardShortcut(SearchMenuAddInPath, "Replace"); }