private static void CreateRenderers() { ScrollBarRenderer scrollBarRenderer; ListViewRenderer listViewRenderer; HeaderRenderer headerRenderer; TreeViewRenderer treeViewRenderer; _renderers = new ThemeRenderer[] { scrollBarRenderer = new ScrollBarRenderer(), listViewRenderer = new ListViewRenderer(), headerRenderer = new HeaderRenderer(), treeViewRenderer = new TreeViewRenderer(), new EditRenderer(), new SpinRenderer(), new ComboBoxRenderer(), new ButtonRenderer(), new TooltipRenderer(), }; var editorHandle = new ICSharpCode.TextEditor.TextEditorControl().Handle; var listViewHandle = new NativeListView().Handle; var treeViewHandle = new NativeTreeView().Handle; scrollBarRenderer.AddThemeData(editorHandle); scrollBarRenderer.AddThemeData(listViewHandle); headerRenderer.AddThemeData(listViewHandle); listViewRenderer.AddThemeData(listViewHandle); treeViewRenderer.AddThemeData(treeViewHandle); }
public static void SetTextAreaFont(ICSharpCode.TextEditor.TextEditorControl TE) { if (Fonts.Families.Length == 0) { return; } int indexFont = selectFont - 1; Font font; if (indexFont > -1) { FontFamily family = Fonts.Families[indexFont]; float sz; if (!FontAdjustSize.TryGetValue(family.Name, out sz)) { sz = 10.0f; } font = new Font(family, sz + sizeFont, FontStyle.Regular, GraphicsUnit.Point); } else { font = new Font("Courier New", 10.0f + sizeFont, FontStyle.Regular); } TE.TextEditorProperties.Font = font; }
public static void BindErrorMessage(this ICSharpCode.TextEditor.TextEditorControl txt, string sql, Exception ex) { var sb = new StringBuilder(); if (!(ex is LiteException)) { sb.AppendLine(ex.Message); sb.AppendLine(); sb.AppendLine("==================================================="); sb.AppendLine(ex.StackTrace); } else if (ex is LiteException lex) { sb.AppendLine(ex.Message); if (lex.ErrorCode == LiteException.UNEXPECTED_TOKEN && sql != null) { var p = (int)lex.Position; var start = (int)Math.Max(p - 30, 1) - 1; var end = Math.Min(p + 15, sql.Length); var length = end - start; var str = sql.Substring(start, length).Replace('\n', ' ').Replace('\r', ' '); var t = length - (end - p); sb.AppendLine(); sb.AppendLine(str); sb.AppendLine("".PadLeft(t, '-') + "^"); } } txt.Highlighting = null; txt.Clear(); txt.Text = sb.ToString(); }
public CodeTabView() { InitializeComponent(); _shaderTextEditor = CreateTextEditor(); _shaderTextEditor.Encoding = System.Text.Encoding.ASCII; // _shaderTextEditor.TextChanged += new EventHandler(_shaderTextEditor_TextChanged); // _shaderTextEditor.Document.TextContentChanged += new EventHandler(Document_TextContentChanged); _shaderTextEditor.Document.DocumentChanged += new DocumentEventHandler(Document_DocumentChanged); using (var stream = typeof(CodeTabView).Assembly.GetManifestResourceStream("Shazzam.Resources.HLSLSyntax.xshd")) { using (var reader = new XmlTextReader(stream)) { var sm = new SyntaxMode("HLSL.xshd", "HLSL", ".fx"); _hlslHS = HighlightingDefinitionParser.Parse(sm, reader); _hlslHS.ResolveReferences(); // don't forget this! reader.Close(); } } _shaderTextEditor.Document.HighlightingStrategy = _hlslHS; this.formsHost.Child = _shaderTextEditor; _csTextEditor = CreateTextEditor(); this.formsHostCs.Child = _csTextEditor; _vbTextEditor = CreateTextEditor(); this.formsHostVb.Child = _vbTextEditor; _compiler = new ShaderCompiler(); _compiler.Reset(); outputTextBox.DataContext = _compiler; this.Loaded += CodeTabView_Loaded; }
public static void LoadThemeData() { Validates.NotNull(_renderers); Validates.NotNull(_scrollBarRenderer); Validates.NotNull(_headerRenderer); Validates.NotNull(_listViewRenderer); Validates.NotNull(_treeViewRenderer); Validates.NotNull(_tabRenderer); foreach (ThemeRenderer renderer in _renderers) { renderer.AddThemeData(IntPtr.Zero); } var editorHandle = new ICSharpCode.TextEditor.TextEditorControl().Handle; var listViewHandle = new NativeListView().Handle; var treeViewHandle = new NativeTreeView().Handle; _scrollBarRenderer.AddThemeData(editorHandle); _scrollBarRenderer.AddThemeData(listViewHandle); _headerRenderer.AddThemeData(listViewHandle); _listViewRenderer.AddThemeData(listViewHandle); _treeViewRenderer.AddThemeData(treeViewHandle); _tabRenderer.AddThemeData(new TabControl().Handle); }
public static void BindBsonData(this ICSharpCode.TextEditor.TextEditorControl txt, TaskData data) { var index = 0; var sb = new StringBuilder(); if (data.Result.Count > 0) { foreach (var value in data.Result) { if (data.Result?.Count > 1) { sb.AppendLine($"/* {index++ + 1} */"); } sb.Append(JsonConvert.SerializeObject(value)); sb.AppendLine(); } if (data.LimitExceeded) { sb.AppendLine(); sb.AppendLine("/* Limit exceeded */"); } } else { sb.AppendLine("no result"); } txt.SetHighlighting("JSON"); txt.Text = sb.ToString(); }
private void btnSaveAll_Click(object sender, EventArgs e) { if (tcCodes.TabPages == null) { MessageBox.Show("请先生成代码!"); return; } FolderBrowserDialog dlg = new FolderBrowserDialog(); if (dlg.ShowDialog() == DialogResult.OK) { foreach (TabPage page in tcCodes.TabPages) { ICSharpCode.TextEditor.TextEditorControl txtEditor = page.Controls[0] as ICSharpCode.TextEditor.TextEditorControl; if (txtEditor != null) { Model.CodeLayer.CodeLayers layer = (Model.CodeLayer.CodeLayers)txtEditor.Tag; Model.CodeLayer codeLayer = new Model.CodeLayer(layer); string filePath = dlg.SelectedPath + "\\" + codeLayer.Folder; string fileName = string.Format(codeLayer.FileName, table.Name); if (!Directory.Exists(filePath)) { Directory.CreateDirectory(filePath); } CodeUtility.FileStream.WriteFile(filePath + "\\" + fileName, txtEditor.Text); } } } }
public static void BindErrorMessage(this ICSharpCode.TextEditor.TextEditorControl txt, string sql, Exception ex) { var sb = new StringBuilder(); if (!(ex is TaosException)) { sb.AppendLine(ex.Message); sb.AppendLine(); sb.AppendLine("==================================================="); sb.AppendLine(ex.StackTrace); } else { var tex = ex as TaosException; sb.AppendLine($"Error code: {tex.ErrorCode}"); sb.AppendLine($"Error message:{tex.Message}"); if (tex.Data != null) { foreach (string item in tex.Data.Keys) { sb.AppendLine($"{item}:{tex.Data[item]}"); } } sb.AppendLine("==================================================="); sb.AppendLine(tex.StackTrace); } txt.Highlighting = null; txt.Clear(); txt.Text = sb.ToString(); }
void InitializeEditor() { this.SuspendLayout(); this.edFormulaWrapper = new ICSharpCode.SharpDevelop.DefaultEditor.Gui.Editor.TextEditorDisplayBindingWrapper(); this.edFormula = edFormulaWrapper.TextEditorControl; this.edFormula.VisibleChanged += new EventHandler(edFormula_VisibleChanged); this.edFormula.Location = new System.Drawing.Point(0, 0); this.edFormula.Dock = DockStyle.Fill; //this.edFormula.Multiline = true; this.edFormula.Name = "edFormula"; //this.edFormula.ScrollBars = System.Windows.Forms.ScrollBars.Both; this.edFormula.Size = new System.Drawing.Size(528, 336); this.edFormula.Text = ""; this.Controls.Add(this.edFormula); this.ScriptName = System.Guid.NewGuid().ToString() + ".cs"; this.edFormula.Document.TextEditorProperties.TabIndent = 2; this.edFormulaWrapper.textAreaControl.InitializeFormatter(); this.edFormulaWrapper.textAreaControl.TextEditorProperties.MouseWheelScrollDown = true; this.ResumeLayout(); }
public CodeTabView() { this.InitializeComponent(); this.shaderTextEditor = this.CreateTextEditor(); this.shaderTextEditor.Encoding = System.Text.Encoding.ASCII; //// _shaderTextEditor.TextChanged += new EventHandler(_shaderTextEditor_TextChanged); //// _shaderTextEditor.Document.TextContentChanged += new EventHandler(Document_TextContentChanged); this.shaderTextEditor.Document.DocumentChanged += this.DocumentDocumentChanged; using (var stream = typeof(CodeTabView).Assembly.GetManifestResourceStream("Shazzam.Resources.HLSLSyntax.xshd")) { if (stream != null) { using (var reader = new XmlTextReader(stream)) { var sm = new SyntaxMode("HLSL.xshd", "HLSL", ".fx"); this.hlslHs = HighlightingDefinitionParser.Parse(sm, reader); this.hlslHs.ResolveReferences(); // don't forget this! reader.Close(); } } } this.shaderTextEditor.Document.HighlightingStrategy = this.hlslHs; this.FormsHost.Child = this.shaderTextEditor; this.csTextEditor = this.CreateTextEditor(); this.FormsHostCs.Child = this.csTextEditor; this.compiler = new ShaderCompiler(); this.compiler.Reset(); this.OutputTextBox.DataContext = this.compiler; this.Loaded += this.CodeTabViewLoaded; }
void InitializeEditor() { this.SuspendLayout(); this.edFormulaWrapper = new ICSharpCode.SharpDevelop.DefaultEditor.Gui.Editor.TextEditorDisplayBindingWrapper(); this.edFormula = edFormulaWrapper.TextEditorControl; this.edFormula.VisibleChanged += new EventHandler(edFormula_VisibleChanged); this.edFormula.Location = new System.Drawing.Point(0, 0); this.edFormula.Dock = DockStyle.Fill; //this.edFormula.Multiline = true; this.edFormula.Name = "edFormula"; //this.edFormula.ScrollBars = System.Windows.Forms.ScrollBars.Both; this.edFormula.Size = new System.Drawing.Size(528, 336); this.edFormula.Text = ""; this.Controls.Add(this.edFormula); this.ScriptName = System.Guid.NewGuid().ToString() + ".cs"; this.edFormula.Document.TextEditorProperties.TabIndent=2; this.edFormulaWrapper.textAreaControl.InitializeFormatter(); this.edFormulaWrapper.textAreaControl.TextEditorProperties.MouseWheelScrollDown=true; this.ResumeLayout(); }
private void ApplySyntax(ref ICSharpCode.TextEditor.TextEditorControl editorSource) { string theme = settingsManager.getSettingValue("Theme"); if (tabControl1.TabPages.Count > 0) { editorSource.SetHighlighting("Lua_" + theme); } }
void SetupControl(ICSharpCode.TextEditor.TextEditorControl tec) { tec.ShowEOLMarkers = false; tec.ShowVRuler = false; tec.ShowSpaces = false; tec.ShowLineNumbers = false; tec.ShowInvalidLines = false; tec.ShowTabs = false; tec.ShowMatchingBracket = true; }
/// <summary> /// 设置文本框样式 /// </summary> /// <param name="textbox">文本框名称</param> /// <param name="ext">后缀</param> public static void SetStyleByExt(ICSharpCode.TextEditor.TextEditorControl textbox, string ext) { Language lang = Language.GetLanguageByExt(ext); if (lang != null) { textbox.Document.HighlightingStrategy = HighlightingStrategyFactory.CreateHighlightingStrategy(lang.Name); textbox.Encoding = System.Text.Encoding.Default; } }
public f_main() { InitializeComponent(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(f_main)); DefaultHighlightingStrategy defaultHighlightingStrategy1 = new DefaultHighlightingStrategy(); DefaultTextEditorProperties defaultTextEditorProperties1 = new DefaultTextEditorProperties(); this.Code_TextEditorControl = new ICSharpCode.TextEditor.TextEditorControl { Anchor = (((((AnchorStyles.Top | AnchorStyles.Bottom) | AnchorStyles.Left) | AnchorStyles.Right))), Encoding = ((Encoding)(resources.GetObject("Code_TextEditorControl.Encoding"))), Location = new System.Drawing.Point(300, 239), Name = "Code_TextEditorControl", ShowEOLMarkers = true, ShowSpaces = true, ShowTabs = true, ShowVRuler = true, Size = new System.Drawing.Size(1050, 500), TabIndex = 4, TextEditorProperties = defaultTextEditorProperties1 }; defaultHighlightingStrategy1.Extensions = new string[0]; defaultTextEditorProperties1.AllowCaretBeyondEOL = false; defaultTextEditorProperties1.AutoInsertCurlyBracket = true; defaultTextEditorProperties1.BracketMatchingStyle = BracketMatchingStyle.After; defaultTextEditorProperties1.ConvertTabsToSpaces = false; defaultTextEditorProperties1.CreateBackupCopy = false; defaultTextEditorProperties1.DocumentSelectionMode = DocumentSelectionMode.Normal; defaultTextEditorProperties1.EnableFolding = true; defaultTextEditorProperties1.Encoding = ((System.Text.Encoding)(resources.GetObject("defaultTextEditorProperties1.Encoding"))); defaultTextEditorProperties1.Font = new System.Drawing.Font("Courier New", 10F); defaultTextEditorProperties1.HideMouseCursor = false; defaultTextEditorProperties1.IndentStyle = IndentStyle.Smart; defaultTextEditorProperties1.IsIconBarVisible = true; defaultTextEditorProperties1.LineTerminator = "\r\n"; defaultTextEditorProperties1.LineViewerStyle = LineViewerStyle.None; defaultTextEditorProperties1.MouseWheelScrollDown = true; defaultTextEditorProperties1.MouseWheelTextZoom = true; defaultTextEditorProperties1.ShowEOLMarker = true; defaultTextEditorProperties1.ShowHorizontalRuler = false; defaultTextEditorProperties1.ShowInvalidLines = true; defaultTextEditorProperties1.ShowLineNumbers = true; defaultTextEditorProperties1.ShowMatchingBracket = true; defaultTextEditorProperties1.ShowSpaces = true; defaultTextEditorProperties1.ShowTabs = true; defaultTextEditorProperties1.ShowVerticalRuler = true; defaultTextEditorProperties1.TabIndent = 4; defaultTextEditorProperties1.UseAntiAliasedFont = false; defaultTextEditorProperties1.UseCustomLine = false; defaultTextEditorProperties1.VerticalRulerRow = 80; this.Controls.Add(this.Code_TextEditorControl); this.Code_TextEditorControl.Document.HighlightingStrategy = HighlightingStrategyFactory.CreateHighlightingStrategy("C#"); this.Code_TextEditorControl.Encoding = Encoding.Default; autoConfigSetting = new AutoConfigSetting(); }
internal static void SelectText(ICSharpCode.TextEditor.TextEditorControl Editor, string Text) { int offset = Editor.Text.IndexOf(Text); int endOffset = offset + Text.Length; Editor.ActiveTextAreaControl.TextArea.Caret.Position = Editor.ActiveTextAreaControl.TextArea.Document.OffsetToPosition(endOffset); Editor.ActiveTextAreaControl.TextArea.SelectionManager.ClearSelection(); ICSharpCode.TextEditor.Document.IDocument document = Editor.ActiveTextAreaControl.TextArea.Document; ICSharpCode.TextEditor.Document.DefaultSelection selection = new ICSharpCode.TextEditor.Document.DefaultSelection(document, document.OffsetToPosition(offset), document.OffsetToPosition(endOffset)); Editor.ActiveTextAreaControl.TextArea.SelectionManager.SetSelection(selection); }
/// <summary> /// 设置代码编辑器的默认配置 /// </summary> /// <param name="txtCode"></param> public static void SetTextEditor(ICSharpCode.TextEditor.TextEditorControl txtCode) { txtCode.ShowEOLMarkers = false; txtCode.ShowHRuler = false; txtCode.ShowInvalidLines = false; txtCode.ShowSpaces = false; txtCode.ShowTabs = false; txtCode.ShowVRuler = false; txtCode.AllowCaretBeyondEOL = false; txtCode.ShowMatchingBracket = true; txtCode.AutoScroll = true; }
internal static void SetTextBoxStyle(ICSharpCode.TextEditor.TextEditorControl Editor) { Editor.ShowEOLMarkers = false; Editor.ShowHRuler = false; Editor.ShowInvalidLines = false; Editor.ShowSpaces = false; Editor.ShowTabs = false; Editor.ShowMatchingBracket = true; Editor.AllowCaretBeyondEOL = false; Editor.ShowVRuler = false; Editor.ImeMode = ImeMode.On; Editor.SetHighlighting("TSQL"); }
void InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(OutputView)); this.textEditorControl1 = new ICSharpCode.TextEditor.TextEditorControl(); this.toolStrip1 = new System.Windows.Forms.ToolStrip(); this.toolStripButton1 = new System.Windows.Forms.ToolStripButton(); this.toolStrip1.SuspendLayout(); this.SuspendLayout(); // // textEditorControl1 // this.textEditorControl1.Dock = System.Windows.Forms.DockStyle.Fill; this.textEditorControl1.IsReadOnly = false; this.textEditorControl1.Location = new System.Drawing.Point(0, 25); this.textEditorControl1.Name = "textEditorControl1"; this.textEditorControl1.Size = new System.Drawing.Size(444, 339); this.textEditorControl1.TabIndex = 2; // // toolStrip1 // this.toolStrip1.GripStyle = System.Windows.Forms.ToolStripGripStyle.Hidden; this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.toolStripButton1}); this.toolStrip1.Location = new System.Drawing.Point(0, 0); this.toolStrip1.Name = "toolStrip1"; this.toolStrip1.RenderMode = System.Windows.Forms.ToolStripRenderMode.System; this.toolStrip1.Size = new System.Drawing.Size(444, 25); this.toolStrip1.TabIndex = 3; this.toolStrip1.Text = "toolStrip1"; // // toolStripButton1 // this.toolStripButton1.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.toolStripButton1.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton1.Image"))); this.toolStripButton1.ImageTransparentColor = System.Drawing.Color.Magenta; this.toolStripButton1.Name = "toolStripButton1"; this.toolStripButton1.Size = new System.Drawing.Size(23, 22); this.toolStripButton1.Text = "toolStripButton1"; // // OutputView // this.Controls.Add(this.textEditorControl1); this.Controls.Add(this.toolStrip1); this.Name = "OutputView"; this.Size = new System.Drawing.Size(444, 364); this.toolStrip1.ResumeLayout(false); this.toolStrip1.PerformLayout(); this.ResumeLayout(false); this.PerformLayout(); }
public void setCaretToCurrentSelection(ICSharpCode.TextEditor.TextEditorControl textEditorControl) { var finalCaretPosition = textEditorControl.ActiveTextAreaControl.TextArea.SelectionManager.SelectionCollection[0].StartPosition; var tempCaretPosition = new ICSharpCode.TextEditor.TextLocation { X = finalCaretPosition.X, Y = finalCaretPosition.Y + 10 }; textEditorControl.ActiveTextAreaControl.Caret.Position = tempCaretPosition; textEditorControl.ActiveTextAreaControl.TextArea.ScrollToCaret(); textEditorControl.ActiveTextAreaControl.Caret.Position = finalCaretPosition; textEditorControl.ActiveTextAreaControl.TextArea.ScrollToCaret(); }
public CompletionControllerImpl(ICSharpCode.TextEditor.TextEditorControl editor) { _editor = editor; _intellisenseImageList = new ImageList(new Container()); _intellisenseImageList.Images.Add(Properties.Resources.property_blue_image_16); _intellisenseImageList.Images.Add(Properties.Resources.terminal_image_16); _intellisenseImageList.Images.Add(Properties.Resources.tag_image_16); _intellisenseImageList.Images.Add(Properties.Resources.property_image_16); _editor.ActiveTextAreaControl.TextArea.KeyDown += TextAreaOnKeyDown; _editor.ActiveTextAreaControl.TextArea.KeyPress += TextAreaOnKeyPress; _editor.ActiveTextAreaControl.VScrollBar.ValueChanged += ScrollBarOnValueChanged; _editor.ActiveTextAreaControl.HScrollBar.ValueChanged += ScrollBarOnValueChanged; }
public object SourceFilesProvider(string FileName, PascalABCCompiler.SourceFileOperation FileOperation) { CodeFileDocumentControl tp = null; ICSharpCode.TextEditor.TextEditorControl ed = null; if (OpenDocuments.TryGetValue(Tools.FileNameToLower(FileName), out tp)) { ed = tp.TextEditor; } switch (FileOperation) { case PascalABCCompiler.SourceFileOperation.GetText: if (tp != null) { return(ed.Document.TextContent); } if (!File.Exists(FileName)) { return(null); } /*TextReader tr = new StreamReader(FileName, System.Text.Encoding.GetEncoding(1251)); * string Text = tr.ReadToEnd(); * tr.Close();*/ string Text = PascalABCCompiler.FileReader.ReadFileContent(FileName, null); return(Text); case PascalABCCompiler.SourceFileOperation.Exists: if (tp != null) { return(true); } return(File.Exists(FileName)); case PascalABCCompiler.SourceFileOperation.GetLastWriteTime: if (tp != null) { return(tp.ModifyDateTime); } return(File.GetLastWriteTime(FileName)); case PascalABCCompiler.SourceFileOperation.FileEncoding: return(DefaultFileEncoding); } return(null); }
private void addNewTab(string name) { var page = new TabPage(Path.GetFileName(name)); tabControl1.TabPages.Add(page); var textEditorControl1 = new ICSharpCode.TextEditor.TextEditorControl(); textEditorControl1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); page.Controls.Add(textEditorControl1); textEditorControl1.Size = new Size(new Point(tabControl1.Size.Width - 6, 339 - 24)); ApplySyntax(ref textEditorControl1); InitalizeTheme(themeLoader.GetData()); textEditorControl1.Refresh(); // Console listView1 = new ListView(); listView1.Location = new Point(0, 320); listView1.Name = "listView1"; listView1.Size = new Size(785, 100); listView1.TabIndex = 7; listView1.UseCompatibleStateImageBehavior = false; listView1.View = View.Details; listView1.GridLines = true; listView1.FullRowSelect = true; listView1.Columns.Add("#", 20); listView1.Columns.Add("Value", 450, HorizontalAlignment.Center); listView1.Columns.Add("Line", 280, HorizontalAlignment.Center); listView1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); page.Controls.Add(listView1); tabControl1.SelectedTab = page; setPageData(tabControl1.SelectedTab.TabIndex, name); }
internal static void SetText(ICSharpCode.TextEditor.TextEditorControl control, string text) { MethodInvoker miSetText = delegate { control.Text = text; }; if (control.InvokeRequired) { control.Invoke(miSetText); } else { miSetText(); } }
private void FillScript(List <KeyValuePair <string, Color> > Lines, ICSharpCode.TextEditor.TextEditorControl TextBox) { var script = new StringBuilder(); foreach (var item in Lines) { script.AppendLine(item.Key); } TextBox.Text = script.ToString(); for (int i = 0; i < Lines.Count; i++) { if (Lines[i].Value == Color.Blue || Lines[i].Value == Color.Green || Lines[i].Value == Color.Red) { ICSharpCode.TextEditor.Document.TextMarker marker = new ICSharpCode.TextEditor.Document.TextMarker(TextBox.Document.LineSegmentCollection[i].Offset, TextBox.Document.LineSegmentCollection[i].Length, ICSharpCode.TextEditor.Document.TextMarkerType.SolidBlock, Color.White, Lines[i].Value); TextBox.Document.MarkerStrategy.AddMarker(marker); } } }
public XMLEditor(String text, String type) { InitializeComponent(); _textControl = new ICSharpCode.TextEditor.TextEditorControl(); this.Controls.Add(_textControl); _textControl.Dock = DockStyle.Fill; _textControl.Document.HighlightingStrategy = HighlightingStrategyFactory.CreateHighlightingStrategy(type); this.Text = type + " Editor"; if (type.Equals("XML")) { _textControl.Text = CollectorUtils.FormatXMLDocument(text); } else { _textControl.Text = text; } }
public static void BindBsonData(this ICSharpCode.TextEditor.TextEditorControl txt, TaskData data) { var index = 0; var sb = new StringBuilder(); using (var writer = new StringWriter(sb)) { var json = new JsonWriter(writer) { Pretty = true, Indent = 2 }; if (data.Result.Count > 0) { foreach (var value in data.Result) { if (data.Result?.Count > 1) { sb.AppendLine($"/* {index++ + 1} */"); } json.Serialize(value); sb.AppendLine(); } if (data.LimitExceeded) { sb.AppendLine(); sb.AppendLine("/* Limit exceeded */"); } } else { sb.AppendLine("no result"); } } txt.SetHighlighting("JSON"); txt.Text = sb.ToString(); }
private void buttonAddNewTab_Click(object sender, EventArgs e) { TabPage tabPageSearchNew = new TabPage(string.Format("Search {0}", tabControlSarchText.TabCount + 1)); ICSharpCode.TextEditor.TextEditorControl textEditor = new ICSharpCode.TextEditor.TextEditorControl(); textEditor.Dock = System.Windows.Forms.DockStyle.Fill; textEditor.IsReadOnly = false; textEditor.Location = new System.Drawing.Point(3, 3); textEditor.ShowEOLMarkers = true; textEditor.ShowSpaces = true; textEditor.ShowTabs = true; textEditor.Size = new System.Drawing.Size(626, 72); textEditor.TabIndex = 1; textEditor.TextChanged += new System.EventHandler(textEditorControlRegExp_TextChanged); tabPageSearchNew.Tag = textEditor; tabPageSearchNew.Controls.Add(textEditor); tabControlSarchText.Controls.Add(tabPageSearchNew); tabControlSarchText.SelectedTab = tabPageSearchNew; }
private ICSharpCode.TextEditor.TextEditorControl CreateTextEditor() { var currentEditor = new ICSharpCode.TextEditor.TextEditorControl(); currentEditor.ShowLineNumbers = true; currentEditor.ShowInvalidLines = false; // don't show error squiggle on empty lines currentEditor.ShowEOLMarkers = false; currentEditor.ShowSpaces = false; currentEditor.ShowTabs = false; currentEditor.ShowVRuler = false; currentEditor.ShowMatchingBracket = true; currentEditor.AutoScroll = true; currentEditor.Document.TextEditorProperties.IndentationSize = 2; currentEditor.EnableFolding = true; currentEditor.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; currentEditor.Dock = System.Windows.Forms.DockStyle.Fill; currentEditor.Font = new System.Drawing.Font("Consolas", 10); return(currentEditor); }
public static void BindParameter(this ICSharpCode.TextEditor.TextEditorControl txt, TaskData data) { //txt.SuspendLayout(); //txt.Clear(); //txt.SetHighlighting("JSON"); //var sb = new StringBuilder(); //using (var writer = new StringWriter(sb)) //{ // var w = new JsonWriter(writer) // { // Pretty = true, // Indent = 2 // }; // w.Serialize(data.Parameters ?? BsonValue.Null); //} //txt.Text = sb.ToString(); //txt.ResumeLayout(); }
/// <summary> /// 生成一个代码页 /// </summary> public void AddCodeTabPage(Generator.Template template) { try { ICSharpCode.TextEditor.TextEditorControl txt = new ICSharpCode.TextEditor.TextEditorControl(); txt.Dock = DockStyle.Fill; txt.ShowInvalidLines = false; TextEditor.SetStyleByExt(txt, template.Ext); txt.Text = template.Code; TabPage page = new TabPage(); page.Tag = template; page.Text = template.TemplateName; page.Controls.Add(txt); tcCodes.TabPages.Add(page); } catch (Exception ex) { ShowMessage.Error(string.Format("使用代码模板{0}生成代码文件失败。{1}", template.TemplateName, ex.Message)); throw; } }
private void btnSaveCurrentTab_Click(object sender, EventArgs e) { if (tcCodes.SelectedTab == null) { MessageBox.Show("请先生成代码!"); return; } ICSharpCode.TextEditor.TextEditorControl txtEditor = tcCodes.SelectedTab.Controls[0] as ICSharpCode.TextEditor.TextEditorControl; if (txtEditor != null) { Model.CodeLayer.CodeLayers layer = (Model.CodeLayer.CodeLayers)txtEditor.Tag; Model.CodeLayer codeLayer = new Model.CodeLayer(layer); SaveFileDialog dlg = new SaveFileDialog(); dlg.AddExtension = true; dlg.FileName = string.Format(codeLayer.FileName, table.Name); dlg.Filter = string.Format(".{0}|*.{0}", codeLayer.FileExt); if (dlg.ShowDialog() == DialogResult.OK) { CodeUtility.FileStream.WriteFile(dlg.FileName, txtEditor.Text); } } }
/// <summary> /// This method is required for Windows Forms designer support. /// Do not change the method contents inside the source code editor. The Forms designer might /// not be able to load this method if it was changed manually. /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainForm)); this.statusStrip1 = new System.Windows.Forms.StatusStrip(); this.parserThreadLabel = new System.Windows.Forms.ToolStripStatusLabel(); this.imageList1 = new System.Windows.Forms.ImageList(this.components); this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components); this.saveToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.textEditorControl1 = new ICSharpCode.TextEditor.TextEditorControl(); this.statusStrip1.SuspendLayout(); this.contextMenuStrip1.SuspendLayout(); this.SuspendLayout(); // // statusStrip1 // this.statusStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.parserThreadLabel}); this.statusStrip1.Location = new System.Drawing.Point(0, 248); this.statusStrip1.Name = "statusStrip1"; this.statusStrip1.Size = new System.Drawing.Size(556, 22); this.statusStrip1.TabIndex = 1; this.statusStrip1.Text = "statusStrip1"; // // parserThreadLabel // this.parserThreadLabel.Name = "parserThreadLabel"; this.parserThreadLabel.Size = new System.Drawing.Size(109, 17); this.parserThreadLabel.Text = "toolStripStatusLabel1"; // // imageList1 // this.imageList1.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList1.ImageStream"))); this.imageList1.TransparentColor = System.Drawing.Color.Transparent; this.imageList1.Images.SetKeyName(0, "Icons.16x16.Class.png"); this.imageList1.Images.SetKeyName(1, "Icons.16x16.Method.png"); this.imageList1.Images.SetKeyName(2, "Icons.16x16.Property.png"); this.imageList1.Images.SetKeyName(3, "Icons.16x16.Field.png"); this.imageList1.Images.SetKeyName(4, "Icons.16x16.Enum.png"); this.imageList1.Images.SetKeyName(5, "Icons.16x16.NameSpace.png"); this.imageList1.Images.SetKeyName(6, "Icons.16x16.Event.png"); // // contextMenuStrip1 // this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.saveToolStripMenuItem}); this.contextMenuStrip1.Name = "contextMenuStrip1"; this.contextMenuStrip1.Size = new System.Drawing.Size(153, 48); // // saveToolStripMenuItem // this.saveToolStripMenuItem.Enabled = false; this.saveToolStripMenuItem.Name = "saveToolStripMenuItem"; this.saveToolStripMenuItem.Size = new System.Drawing.Size(152, 22); this.saveToolStripMenuItem.Text = "Save"; this.saveToolStripMenuItem.Click += new System.EventHandler(this.saveToolStripMenuItem_Click); // // textEditorControl1 // this.textEditorControl1.Dock = System.Windows.Forms.DockStyle.Fill; this.textEditorControl1.IsReadOnly = false; this.textEditorControl1.Location = new System.Drawing.Point(0, 0); this.textEditorControl1.Name = "textEditorControl1"; this.textEditorControl1.ShowEOLMarkers = true; this.textEditorControl1.ShowSpaces = true; this.textEditorControl1.ShowTabs = true; this.textEditorControl1.Size = new System.Drawing.Size(556, 248); this.textEditorControl1.TabIndex = 0; // // MainForm // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(556, 270); this.Controls.Add(this.textEditorControl1); this.Controls.Add(this.statusStrip1); this.Name = "MainForm"; this.Text = "CSharpEditor"; this.statusStrip1.ResumeLayout(false); this.statusStrip1.PerformLayout(); this.contextMenuStrip1.ResumeLayout(false); this.ResumeLayout(false); this.PerformLayout(); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ascxSplashPage)); this.pbOwaspLogo = new System.Windows.Forms.PictureBox(); this.label1 = new System.Windows.Forms.Label(); this.tcSplashPage = new System.Windows.Forms.TabControl(); this.tpUserConfiguration = new System.Windows.Forms.TabPage(); this.groupBox1 = new System.Windows.Forms.GroupBox(); this.txtNewProfileName = new System.Windows.Forms.TextBox(); this.btCreateProfile = new System.Windows.Forms.Button(); this.cbTempDirectory = new System.Windows.Forms.ComboBox(); this.cbBaseDirectory = new System.Windows.Forms.ComboBox(); this.cbUserProfile = new System.Windows.Forms.ComboBox(); this.label3 = new System.Windows.Forms.Label(); this.lbSelectBaseDirectory = new System.Windows.Forms.Label(); this.lbSelectTempDirectory = new System.Windows.Forms.Label(); this.lbVulnReportTempReport_alert = new System.Windows.Forms.Label(); this.tcReleaseNotes = new System.Windows.Forms.TabPage(); this.txtReleaseNotes = new System.Windows.Forms.TextBox(); this.tbAppConfigFile = new System.Windows.Forms.TabPage(); this.tedAppConfigFile = new ICSharpCode.TextEditor.TextEditorControl(); this.label2 = new System.Windows.Forms.Label(); this.lbCurrentVersion = new System.Windows.Forms.Label(); this.btCancel = new System.Windows.Forms.Button(); this.btStartPenTestReporter = new System.Windows.Forms.Button(); this.label8 = new System.Windows.Forms.Label(); this.lbCurrentLoggedInUser = new System.Windows.Forms.Label(); this.lbCurrentUserIsAnAdministrator = new System.Windows.Forms.Label(); this.lbSaveChangesAlert = new System.Windows.Forms.Label(); ((System.ComponentModel.ISupportInitialize)(this.pbOwaspLogo)).BeginInit(); this.tcSplashPage.SuspendLayout(); this.tpUserConfiguration.SuspendLayout(); this.groupBox1.SuspendLayout(); this.tcReleaseNotes.SuspendLayout(); this.tbAppConfigFile.SuspendLayout(); this.SuspendLayout(); // // pbOwaspLogo // this.pbOwaspLogo.Image = ((System.Drawing.Image)(resources.GetObject("pbOwaspLogo.Image"))); this.pbOwaspLogo.Location = new System.Drawing.Point(0, 0); this.pbOwaspLogo.Name = "pbOwaspLogo"; this.pbOwaspLogo.Size = new System.Drawing.Size(325, 60); this.pbOwaspLogo.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; this.pbOwaspLogo.TabIndex = 0; this.pbOwaspLogo.TabStop = false; // // label1 // this.label1.BackColor = System.Drawing.Color.White; this.label1.Font = new System.Drawing.Font("Verdana", 21.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label1.Location = new System.Drawing.Point(320, 0); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(328, 60); this.label1.TabIndex = 1; this.label1.Text = "PenTest Reporter"; this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; // // tcSplashPage // this.tcSplashPage.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.tcSplashPage.Controls.Add(this.tpUserConfiguration); this.tcSplashPage.Controls.Add(this.tcReleaseNotes); this.tcSplashPage.Controls.Add(this.tbAppConfigFile); this.tcSplashPage.Location = new System.Drawing.Point(8, 144); this.tcSplashPage.Name = "tcSplashPage"; this.tcSplashPage.SelectedIndex = 0; this.tcSplashPage.Size = new System.Drawing.Size(632, 176); this.tcSplashPage.TabIndex = 2; // // tpUserConfiguration // this.tpUserConfiguration.Controls.Add(this.groupBox1); this.tpUserConfiguration.Controls.Add(this.cbTempDirectory); this.tpUserConfiguration.Controls.Add(this.cbBaseDirectory); this.tpUserConfiguration.Controls.Add(this.cbUserProfile); this.tpUserConfiguration.Controls.Add(this.label3); this.tpUserConfiguration.Controls.Add(this.lbSelectBaseDirectory); this.tpUserConfiguration.Controls.Add(this.lbSelectTempDirectory); this.tpUserConfiguration.Controls.Add(this.lbVulnReportTempReport_alert); this.tpUserConfiguration.Location = new System.Drawing.Point(4, 22); this.tpUserConfiguration.Name = "tpUserConfiguration"; this.tpUserConfiguration.Size = new System.Drawing.Size(624, 150); this.tpUserConfiguration.TabIndex = 0; this.tpUserConfiguration.Text = "User Configuration"; // // groupBox1 // this.groupBox1.Controls.Add(this.txtNewProfileName); this.groupBox1.Controls.Add(this.btCreateProfile); this.groupBox1.Location = new System.Drawing.Point(496, 16); this.groupBox1.Name = "groupBox1"; this.groupBox1.Size = new System.Drawing.Size(120, 96); this.groupBox1.TabIndex = 7; this.groupBox1.TabStop = false; this.groupBox1.Text = "Create New Profile"; // // txtNewProfileName // this.txtNewProfileName.Location = new System.Drawing.Point(8, 24); this.txtNewProfileName.Name = "txtNewProfileName"; this.txtNewProfileName.Size = new System.Drawing.Size(100, 20); this.txtNewProfileName.TabIndex = 6; // // btCreateProfile // this.btCreateProfile.Location = new System.Drawing.Point(8, 64); this.btCreateProfile.Name = "btCreateProfile"; this.btCreateProfile.Size = new System.Drawing.Size(104, 24); this.btCreateProfile.TabIndex = 5; this.btCreateProfile.Text = "Create Profile "; this.btCreateProfile.Click += new System.EventHandler(this.btCreateProfileFor_Click); // // cbTempDirectory // this.cbTempDirectory.Location = new System.Drawing.Point(152, 88); this.cbTempDirectory.Name = "cbTempDirectory"; this.cbTempDirectory.Size = new System.Drawing.Size(176, 21); this.cbTempDirectory.TabIndex = 6; this.cbTempDirectory.Visible = false; // // cbBaseDirectory // this.cbBaseDirectory.Location = new System.Drawing.Point(152, 56); this.cbBaseDirectory.Name = "cbBaseDirectory"; this.cbBaseDirectory.Size = new System.Drawing.Size(176, 21); this.cbBaseDirectory.TabIndex = 6; this.cbBaseDirectory.Visible = false; // // cbUserProfile // this.cbUserProfile.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.cbUserProfile.Location = new System.Drawing.Point(152, 24); this.cbUserProfile.Name = "cbUserProfile"; this.cbUserProfile.Size = new System.Drawing.Size(176, 21); this.cbUserProfile.Sorted = true; this.cbUserProfile.TabIndex = 0; this.cbUserProfile.SelectedIndexChanged += new System.EventHandler(this.cbUserProfile_SelectedIndexChanged); // // label3 // this.label3.Location = new System.Drawing.Point(8, 24); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(160, 24); this.label3.TabIndex = 0; this.label3.Text = "Select User Profile"; // // lbSelectBaseDirectory // this.lbSelectBaseDirectory.Location = new System.Drawing.Point(8, 56); this.lbSelectBaseDirectory.Name = "lbSelectBaseDirectory"; this.lbSelectBaseDirectory.Size = new System.Drawing.Size(160, 24); this.lbSelectBaseDirectory.TabIndex = 0; this.lbSelectBaseDirectory.Text = "Select Base Directory"; this.lbSelectBaseDirectory.Visible = false; // // lbSelectTempDirectory // this.lbSelectTempDirectory.Location = new System.Drawing.Point(8, 88); this.lbSelectTempDirectory.Name = "lbSelectTempDirectory"; this.lbSelectTempDirectory.Size = new System.Drawing.Size(160, 24); this.lbSelectTempDirectory.TabIndex = 0; this.lbSelectTempDirectory.Text = "Select Temp Directory"; this.lbSelectTempDirectory.Visible = false; // // lbVulnReportTempReport_alert // this.lbVulnReportTempReport_alert.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lbVulnReportTempReport_alert.ForeColor = System.Drawing.Color.Black; this.lbVulnReportTempReport_alert.Location = new System.Drawing.Point(152, 120); this.lbVulnReportTempReport_alert.Name = "lbVulnReportTempReport_alert"; this.lbVulnReportTempReport_alert.Size = new System.Drawing.Size(160, 24); this.lbVulnReportTempReport_alert.TabIndex = 1; this.lbVulnReportTempReport_alert.Text = "Note: all files will be placed in the \'_VulnReport_tempFiles\' folder"; this.lbVulnReportTempReport_alert.Visible = false; // // tcReleaseNotes // this.tcReleaseNotes.Controls.Add(this.txtReleaseNotes); this.tcReleaseNotes.Location = new System.Drawing.Point(4, 22); this.tcReleaseNotes.Name = "tcReleaseNotes"; this.tcReleaseNotes.Size = new System.Drawing.Size(624, 150); this.tcReleaseNotes.TabIndex = 1; this.tcReleaseNotes.Text = "Release Notes"; // // txtReleaseNotes // this.txtReleaseNotes.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.txtReleaseNotes.Location = new System.Drawing.Point(8, 8); this.txtReleaseNotes.Multiline = true; this.txtReleaseNotes.Name = "txtReleaseNotes"; this.txtReleaseNotes.ScrollBars = System.Windows.Forms.ScrollBars.Both; this.txtReleaseNotes.Size = new System.Drawing.Size(608, 136); this.txtReleaseNotes.TabIndex = 0; // // tbAppConfigFile // this.tbAppConfigFile.Controls.Add(this.tedAppConfigFile); this.tbAppConfigFile.Location = new System.Drawing.Point(4, 22); this.tbAppConfigFile.Name = "tbAppConfigFile"; this.tbAppConfigFile.Size = new System.Drawing.Size(624, 150); this.tbAppConfigFile.TabIndex = 2; this.tbAppConfigFile.Text = "App.Config File"; // // tedAppConfigFile // this.tedAppConfigFile.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.tedAppConfigFile.LineViewerStyle = ICSharpCode.TextEditor.Document.LineViewerStyle.FullRow; this.tedAppConfigFile.Location = new System.Drawing.Point(8, 8); this.tedAppConfigFile.Name = "tedAppConfigFile"; this.tedAppConfigFile.ShowEOLMarkers = true; this.tedAppConfigFile.ShowSpaces = true; this.tedAppConfigFile.ShowTabs = true; this.tedAppConfigFile.ShowVRuler = true; this.tedAppConfigFile.Size = new System.Drawing.Size(608, 136); this.tedAppConfigFile.TabIndex = 30; // // label2 // this.label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label2.Location = new System.Drawing.Point(8, 72); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(96, 16); this.label2.TabIndex = 3; this.label2.Text = "Current Version:"; // // lbCurrentVersion // this.lbCurrentVersion.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lbCurrentVersion.Location = new System.Drawing.Point(120, 72); this.lbCurrentVersion.Name = "lbCurrentVersion"; this.lbCurrentVersion.Size = new System.Drawing.Size(326, 15); this.lbCurrentVersion.TabIndex = 4; this.lbCurrentVersion.Text = "..."; // // btCancel // this.btCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.btCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.btCancel.Location = new System.Drawing.Point(8, 336); this.btCancel.Name = "btCancel"; this.btCancel.Size = new System.Drawing.Size(152, 32); this.btCancel.TabIndex = 5; this.btCancel.Text = "Cancel"; this.btCancel.Click += new System.EventHandler(this.btCancel_Click); // // btStartPenTestReporter // this.btStartPenTestReporter.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.btStartPenTestReporter.DialogResult = System.Windows.Forms.DialogResult.OK; this.btStartPenTestReporter.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.btStartPenTestReporter.Location = new System.Drawing.Point(488, 336); this.btStartPenTestReporter.Name = "btStartPenTestReporter"; this.btStartPenTestReporter.Size = new System.Drawing.Size(152, 32); this.btStartPenTestReporter.TabIndex = 1; this.btStartPenTestReporter.Text = "Start PenTest Reporter"; this.btStartPenTestReporter.Click += new System.EventHandler(this.btStartPenTestReporter_Click); // // label8 // this.label8.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label8.Location = new System.Drawing.Point(8, 96); this.label8.Name = "label8"; this.label8.Size = new System.Drawing.Size(120, 16); this.label8.TabIndex = 3; this.label8.Text = "You are logged in as:"; // // lbCurrentLoggedInUser // this.lbCurrentLoggedInUser.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lbCurrentLoggedInUser.Location = new System.Drawing.Point(120, 96); this.lbCurrentLoggedInUser.Name = "lbCurrentLoggedInUser"; this.lbCurrentLoggedInUser.Size = new System.Drawing.Size(312, 15); this.lbCurrentLoggedInUser.TabIndex = 4; this.lbCurrentLoggedInUser.Text = "..."; // // lbCurrentUserIsAnAdministrator // this.lbCurrentUserIsAnAdministrator.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lbCurrentUserIsAnAdministrator.ForeColor = System.Drawing.Color.Red; this.lbCurrentUserIsAnAdministrator.Location = new System.Drawing.Point(120, 112); this.lbCurrentUserIsAnAdministrator.Name = "lbCurrentUserIsAnAdministrator"; this.lbCurrentUserIsAnAdministrator.Size = new System.Drawing.Size(384, 24); this.lbCurrentUserIsAnAdministrator.TabIndex = 4; this.lbCurrentUserIsAnAdministrator.Text = "This account is member of the BUILTIN\\Administrators security groups"; this.lbCurrentUserIsAnAdministrator.Visible = false; // // lbSaveChangesAlert // this.lbSaveChangesAlert.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.lbSaveChangesAlert.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lbSaveChangesAlert.ForeColor = System.Drawing.Color.Black; this.lbSaveChangesAlert.Location = new System.Drawing.Point(488, 376); this.lbSaveChangesAlert.Name = "lbSaveChangesAlert"; this.lbSaveChangesAlert.Size = new System.Drawing.Size(152, 17); this.lbSaveChangesAlert.TabIndex = 1; this.lbSaveChangesAlert.Text = "Note: This will save your changes"; // // ascxSplashPage // this.Controls.Add(this.lbCurrentVersion); this.Controls.Add(this.lbCurrentLoggedInUser); this.Controls.Add(this.lbCurrentUserIsAnAdministrator); this.Controls.Add(this.btCancel); this.Controls.Add(this.label2); this.Controls.Add(this.tcSplashPage); this.Controls.Add(this.label1); this.Controls.Add(this.pbOwaspLogo); this.Controls.Add(this.btStartPenTestReporter); this.Controls.Add(this.label8); this.Controls.Add(this.lbSaveChangesAlert); this.Name = "ascxSplashPage"; this.Size = new System.Drawing.Size(648, 408); this.Load += new System.EventHandler(this.ascxSplashPage_Load); ((System.ComponentModel.ISupportInitialize)(this.pbOwaspLogo)).EndInit(); this.tcSplashPage.ResumeLayout(false); this.tpUserConfiguration.ResumeLayout(false); this.groupBox1.ResumeLayout(false); this.groupBox1.PerformLayout(); this.tcReleaseNotes.ResumeLayout(false); this.tcReleaseNotes.PerformLayout(); this.tbAppConfigFile.ResumeLayout(false); this.ResumeLayout(false); this.PerformLayout(); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.lbReportType = new System.Windows.Forms.ListBox(); this.lbXsltFiles = new System.Windows.Forms.ListBox(); this.label2 = new System.Windows.Forms.Label(); this.label1 = new System.Windows.Forms.Label(); this.textEditorControl = new ICSharpCode.TextEditor.TextEditorControl(); this.groupBox1 = new System.Windows.Forms.GroupBox(); this.btCreateNewXsltFile = new System.Windows.Forms.Button(); this.txtNewXsltFileName = new System.Windows.Forms.TextBox(); this.btSaveXsltFile = new System.Windows.Forms.Button(); this.lbFileSaved = new System.Windows.Forms.Label(); this.lbFind = new System.Windows.Forms.Label(); this.txtTextToFind = new System.Windows.Forms.TextBox(); this.btFindText = new System.Windows.Forms.Button(); this.lbPhraseNotFound = new System.Windows.Forms.Label(); this.groupBox1.SuspendLayout(); this.SuspendLayout(); // // lbReportType // this.lbReportType.Location = new System.Drawing.Point(8, 32); this.lbReportType.Name = "lbReportType"; this.lbReportType.Size = new System.Drawing.Size(168, 134); this.lbReportType.Sorted = true; this.lbReportType.TabIndex = 0; this.lbReportType.SelectedIndexChanged += new System.EventHandler(this.lbReportType_SelectedIndexChanged); // // lbXsltFiles // this.lbXsltFiles.Location = new System.Drawing.Point(8, 208); this.lbXsltFiles.Name = "lbXsltFiles"; this.lbXsltFiles.Size = new System.Drawing.Size(168, 134); this.lbXsltFiles.Sorted = true; this.lbXsltFiles.TabIndex = 0; this.lbXsltFiles.SelectedIndexChanged += new System.EventHandler(this.lbXsltFiles_SelectedIndexChanged); // // label2 // this.label2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label2.ForeColor = System.Drawing.Color.Black; this.label2.Location = new System.Drawing.Point(8, 8); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(208, 24); this.label2.TabIndex = 28; this.label2.Text = "Report Type"; this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; this.label2.Visible = false; // // label1 // this.label1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label1.ForeColor = System.Drawing.Color.Black; this.label1.Location = new System.Drawing.Point(8, 184); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(208, 24); this.label1.TabIndex = 28; this.label1.Text = "XSLT Files"; this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; this.label1.Visible = false; // // textEditorControl // this.textEditorControl.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.textEditorControl.LineViewerStyle = ICSharpCode.TextEditor.Document.LineViewerStyle.FullRow; this.textEditorControl.Location = new System.Drawing.Point(192, 32); this.textEditorControl.Name = "textEditorControl"; this.textEditorControl.ShowEOLMarkers = true; this.textEditorControl.ShowSpaces = true; this.textEditorControl.ShowTabs = true; this.textEditorControl.ShowVRuler = true; this.textEditorControl.Size = new System.Drawing.Size(584, 432); this.textEditorControl.TabIndex = 29; this.textEditorControl.Enter += new System.EventHandler(this.textEditorControl_Enter); // // groupBox1 // this.groupBox1.Controls.Add(this.btCreateNewXsltFile); this.groupBox1.Controls.Add(this.txtNewXsltFileName); this.groupBox1.Location = new System.Drawing.Point(8, 360); this.groupBox1.Name = "groupBox1"; this.groupBox1.Size = new System.Drawing.Size(168, 48); this.groupBox1.TabIndex = 30; this.groupBox1.TabStop = false; this.groupBox1.Text = "New Xslt File"; // // btCreateNewXsltFile // this.btCreateNewXsltFile.Location = new System.Drawing.Point(112, 24); this.btCreateNewXsltFile.Name = "btCreateNewXsltFile"; this.btCreateNewXsltFile.Size = new System.Drawing.Size(48, 20); this.btCreateNewXsltFile.TabIndex = 1; this.btCreateNewXsltFile.Text = "Create"; this.btCreateNewXsltFile.Click += new System.EventHandler(this.btCreateNewXsltFile_Click); // // txtNewXsltFileName // this.txtNewXsltFileName.Location = new System.Drawing.Point(8, 24); this.txtNewXsltFileName.Name = "txtNewXsltFileName"; this.txtNewXsltFileName.Size = new System.Drawing.Size(96, 20); this.txtNewXsltFileName.TabIndex = 0; // // btSaveXsltFile // this.btSaveXsltFile.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.btSaveXsltFile.Location = new System.Drawing.Point(664, 5); this.btSaveXsltFile.Name = "btSaveXsltFile"; this.btSaveXsltFile.Size = new System.Drawing.Size(112, 20); this.btSaveXsltFile.TabIndex = 31; this.btSaveXsltFile.Text = "Save Xslt File"; this.btSaveXsltFile.Click += new System.EventHandler(this.btSaveXsltFile_Click); // // lbFileSaved // this.lbFileSaved.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lbFileSaved.ForeColor = System.Drawing.Color.Red; this.lbFileSaved.Location = new System.Drawing.Point(568, 7); this.lbFileSaved.Name = "lbFileSaved"; this.lbFileSaved.Size = new System.Drawing.Size(80, 16); this.lbFileSaved.TabIndex = 32; this.lbFileSaved.Text = "File Saved"; this.lbFileSaved.Visible = false; // // lbFind // this.lbFind.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.lbFind.Location = new System.Drawing.Point(192, 473); this.lbFind.Name = "lbFind"; this.lbFind.Size = new System.Drawing.Size(40, 16); this.lbFind.TabIndex = 33; this.lbFind.Text = "Find:"; this.lbFind.Click += new System.EventHandler(this.lbFind_Click); // // txtTextToFind // this.txtTextToFind.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.txtTextToFind.Location = new System.Drawing.Point(232, 472); this.txtTextToFind.Name = "txtTextToFind"; this.txtTextToFind.Size = new System.Drawing.Size(96, 20); this.txtTextToFind.TabIndex = 0; this.txtTextToFind.Text = "xml"; this.txtTextToFind.TextChanged += new System.EventHandler(this.txtTextToFind_TextChanged); // // btFindText // this.btFindText.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.btFindText.Location = new System.Drawing.Point(344, 472); this.btFindText.Name = "btFindText"; this.btFindText.Size = new System.Drawing.Size(48, 20); this.btFindText.TabIndex = 1; this.btFindText.Text = "Find"; this.btFindText.Click += new System.EventHandler(this.btFindText_Click); // // lbPhraseNotFound // this.lbPhraseNotFound.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.lbPhraseNotFound.ForeColor = System.Drawing.Color.Red; this.lbPhraseNotFound.Location = new System.Drawing.Point(393, 475); this.lbPhraseNotFound.Name = "lbPhraseNotFound"; this.lbPhraseNotFound.Size = new System.Drawing.Size(296, 24); this.lbPhraseNotFound.TabIndex = 34; this.lbPhraseNotFound.Text = "Phrase not Found"; this.lbPhraseNotFound.Visible = false; this.lbPhraseNotFound.Click += new System.EventHandler(this.lbPhraseNotFound_Click); // // ascxXsltEditor // this.Controls.Add(this.lbPhraseNotFound); this.Controls.Add(this.lbFind); this.Controls.Add(this.lbFileSaved); this.Controls.Add(this.btSaveXsltFile); this.Controls.Add(this.textEditorControl); this.Controls.Add(this.label1); this.Controls.Add(this.groupBox1); this.Controls.Add(this.label2); this.Controls.Add(this.lbReportType); this.Controls.Add(this.lbXsltFiles); this.Controls.Add(this.txtTextToFind); this.Controls.Add(this.btFindText); this.Name = "ascxXsltEditor"; this.Size = new System.Drawing.Size(784, 496); this.Load += new System.EventHandler(this.ascxXsltEditor_Load); this.groupBox1.ResumeLayout(false); this.groupBox1.PerformLayout(); this.ResumeLayout(false); this.PerformLayout(); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(MainForm)); this.mainMenu1 = new System.Windows.Forms.MainMenu(); this.menuItem1 = new System.Windows.Forms.MenuItem(); this.menuitemFileNew = new System.Windows.Forms.MenuItem(); this.menuitemFileOpen = new System.Windows.Forms.MenuItem(); this.menuitemFileSave = new System.Windows.Forms.MenuItem(); this.menuitemFileSaveAs = new System.Windows.Forms.MenuItem(); this.menuItem7 = new System.Windows.Forms.MenuItem(); this.menuitemFileExit = new System.Windows.Forms.MenuItem(); this.menuItem2 = new System.Windows.Forms.MenuItem(); this.menuItemProjectNew = new System.Windows.Forms.MenuItem(); this.menuItemProjectOpen = new System.Windows.Forms.MenuItem(); this.menuItemProjectSave = new System.Windows.Forms.MenuItem(); this.menuItem9 = new System.Windows.Forms.MenuItem(); this.menuItemProjectProperties = new System.Windows.Forms.MenuItem(); this.menuItem4 = new System.Windows.Forms.MenuItem(); this.menuItem3 = new System.Windows.Forms.MenuItem(); this.menuitemQueryRun = new System.Windows.Forms.MenuItem(); this.statusBar1 = new System.Windows.Forms.StatusBar(); this.toolBar1 = new System.Windows.Forms.ToolBar(); this.toolBarButtonNew = new System.Windows.Forms.ToolBarButton(); this.toolBarButtonOpen = new System.Windows.Forms.ToolBarButton(); this.toolBarButtonSave = new System.Windows.Forms.ToolBarButton(); this.toolBarSeparator1 = new System.Windows.Forms.ToolBarButton(); this.toolBarButtonRun = new System.Windows.Forms.ToolBarButton(); this.toolBarButton1 = new System.Windows.Forms.ToolBarButton(); this.toolBarButtonConnection = new System.Windows.Forms.ToolBarButton(); this.contextMenuDatabases = new System.Windows.Forms.ContextMenu(); this.menuItem5 = new System.Windows.Forms.MenuItem(); this.menuItem8 = new System.Windows.Forms.MenuItem(); this.menuItem6 = new System.Windows.Forms.MenuItem(); this.imageList1 = new System.Windows.Forms.ImageList(this.components); this.recordsetContextMenu = new System.Windows.Forms.ContextMenu(); this.contextMenuItemSelectAll = new System.Windows.Forms.MenuItem(); this.contextMenuItemCopy = new System.Windows.Forms.MenuItem(); this.tabControl1 = new System.Windows.Forms.TabControl(); this.tabPageRecordSet = new System.Windows.Forms.TabPage(); this.resultSet = new System.Windows.Forms.ListView(); this.tabPageXml = new System.Windows.Forms.TabPage(); this.panel3 = new System.Windows.Forms.Panel(); this.xmlResults = new ICSharpCode.TextEditor.TextEditorControl(); this.tabPageCsv = new System.Windows.Forms.TabPage(); this.panel4 = new System.Windows.Forms.Panel(); this.csvResults = new ICSharpCode.TextEditor.TextEditorControl(); this.tabPagePrettyPrint = new System.Windows.Forms.TabPage(); this.tabPageTSql = new System.Windows.Forms.TabPage(); this.panel2 = new System.Windows.Forms.Panel(); this.translatedSql = new ICSharpCode.TextEditor.TextEditorControl(); this.tabPageMessages = new System.Windows.Forms.TabPage(); this.messagesTextBox = new System.Windows.Forms.TextBox(); this.TextEditorControl1 = new ICSharpCode.TextEditor.TextEditorControl(); this.splitter2 = new System.Windows.Forms.Splitter(); this.panel1 = new System.Windows.Forms.Panel(); this.panel5 = new System.Windows.Forms.Panel(); this.soqlPrettyPrint = new ICSharpCode.TextEditor.TextEditorControl(); this.tabControl1.SuspendLayout(); this.tabPageRecordSet.SuspendLayout(); this.tabPageXml.SuspendLayout(); this.panel3.SuspendLayout(); this.tabPageCsv.SuspendLayout(); this.panel4.SuspendLayout(); this.tabPagePrettyPrint.SuspendLayout(); this.tabPageTSql.SuspendLayout(); this.panel2.SuspendLayout(); this.tabPageMessages.SuspendLayout(); this.panel1.SuspendLayout(); this.panel5.SuspendLayout(); this.SuspendLayout(); // // mainMenu1 // this.mainMenu1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.menuItem1, this.menuItem2, this.menuItem3}); // // menuItem1 // this.menuItem1.Index = 0; this.menuItem1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.menuitemFileNew, this.menuitemFileOpen, this.menuitemFileSave, this.menuitemFileSaveAs, this.menuItem7, this.menuitemFileExit}); this.menuItem1.Text = "&File"; // // menuitemFileNew // this.menuitemFileNew.Index = 0; this.menuitemFileNew.Shortcut = System.Windows.Forms.Shortcut.CtrlN; this.menuitemFileNew.Text = "&New"; // // menuitemFileOpen // this.menuitemFileOpen.Index = 1; this.menuitemFileOpen.Shortcut = System.Windows.Forms.Shortcut.CtrlO; this.menuitemFileOpen.Text = "&Open"; this.menuitemFileOpen.Click += new System.EventHandler(this.menuitemProjectOpen_Click); // // menuitemFileSave // this.menuitemFileSave.Index = 2; this.menuitemFileSave.Shortcut = System.Windows.Forms.Shortcut.CtrlS; this.menuitemFileSave.Text = "&Save"; // // menuitemFileSaveAs // this.menuitemFileSaveAs.Index = 3; this.menuitemFileSaveAs.Text = "Save &as..."; // // menuItem7 // this.menuItem7.Index = 4; this.menuItem7.Text = "-"; // // menuitemFileExit // this.menuitemFileExit.Index = 5; this.menuitemFileExit.Shortcut = System.Windows.Forms.Shortcut.AltF4; this.menuitemFileExit.Text = "&Exit"; this.menuitemFileExit.Click += new System.EventHandler(this.menuitemFileExit_Click); // // menuItem2 // this.menuItem2.Index = 1; this.menuItem2.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.menuItemProjectNew, this.menuItemProjectOpen, this.menuItemProjectSave, this.menuItem9, this.menuItemProjectProperties, this.menuItem4}); this.menuItem2.Text = "&Project"; // // menuItemProjectNew // this.menuItemProjectNew.Index = 0; this.menuItemProjectNew.Text = "&New project"; // // menuItemProjectOpen // this.menuItemProjectOpen.Index = 1; this.menuItemProjectOpen.Text = "&Open project from file..."; // // menuItemProjectSave // this.menuItemProjectSave.Index = 2; this.menuItemProjectSave.Text = "&Save project to file..."; // // menuItem9 // this.menuItem9.Index = 3; this.menuItem9.Text = "-"; // // menuItemProjectProperties // this.menuItemProjectProperties.Index = 4; this.menuItemProjectProperties.Text = "&Properties..."; this.menuItemProjectProperties.Click += new System.EventHandler(this.menuItemProjectProperties_Click); // // menuItem4 // this.menuItem4.Index = 5; this.menuItem4.Text = "-"; // // menuItem3 // this.menuItem3.Index = 2; this.menuItem3.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.menuitemQueryRun}); this.menuItem3.Text = "&Query"; // // menuitemQueryRun // this.menuitemQueryRun.Index = 0; this.menuitemQueryRun.Shortcut = System.Windows.Forms.Shortcut.CtrlE; this.menuitemQueryRun.Text = "&Run"; this.menuitemQueryRun.Click += new System.EventHandler(this.menuitemQueryRun_Click); // // statusBar1 // this.statusBar1.Location = new System.Drawing.Point(0, 403); this.statusBar1.Name = "statusBar1"; this.statusBar1.ShowPanels = true; this.statusBar1.Size = new System.Drawing.Size(640, 22); this.statusBar1.TabIndex = 4; this.statusBar1.Text = "statusBar1"; // // toolBar1 // this.toolBar1.Appearance = System.Windows.Forms.ToolBarAppearance.Flat; this.toolBar1.Buttons.AddRange(new System.Windows.Forms.ToolBarButton[] { this.toolBarButtonNew, this.toolBarButtonOpen, this.toolBarButtonSave, this.toolBarSeparator1, this.toolBarButtonRun, this.toolBarButton1, this.toolBarButtonConnection}); this.toolBar1.DropDownArrows = true; this.toolBar1.ImageList = this.imageList1; this.toolBar1.Location = new System.Drawing.Point(0, 0); this.toolBar1.Name = "toolBar1"; this.toolBar1.ShowToolTips = true; this.toolBar1.Size = new System.Drawing.Size(640, 28); this.toolBar1.TabIndex = 3; this.toolBar1.TextAlign = System.Windows.Forms.ToolBarTextAlign.Right; this.toolBar1.ButtonClick += new System.Windows.Forms.ToolBarButtonClickEventHandler(this.toolBar1_ButtonClick); // // toolBarButtonNew // this.toolBarButtonNew.ImageIndex = 0; this.toolBarButtonNew.Text = "New"; // // toolBarButtonOpen // this.toolBarButtonOpen.ImageIndex = 1; this.toolBarButtonOpen.Text = "Open"; // // toolBarButtonSave // this.toolBarButtonSave.ImageIndex = 2; this.toolBarButtonSave.Text = "Save"; // // toolBarSeparator1 // this.toolBarSeparator1.Style = System.Windows.Forms.ToolBarButtonStyle.Separator; // // toolBarButtonRun // this.toolBarButtonRun.ImageIndex = 3; this.toolBarButtonRun.Text = "Run"; // // toolBarButton1 // this.toolBarButton1.Style = System.Windows.Forms.ToolBarButtonStyle.Separator; // // toolBarButtonConnection // this.toolBarButtonConnection.DropDownMenu = this.contextMenuDatabases; this.toolBarButtonConnection.ImageIndex = 4; this.toolBarButtonConnection.Style = System.Windows.Forms.ToolBarButtonStyle.DropDownButton; this.toolBarButtonConnection.Text = "No connection"; // // contextMenuDatabases // this.contextMenuDatabases.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.menuItem5, this.menuItem8, this.menuItem6}); // // menuItem5 // this.menuItem5.Index = 0; this.menuItem5.Text = "&Connect to database..."; // // menuItem8 // this.menuItem8.Index = 1; this.menuItem8.Text = "&Manage databases..."; // // menuItem6 // this.menuItem6.Index = 2; this.menuItem6.Text = "-"; // // imageList1 // this.imageList1.ColorDepth = System.Windows.Forms.ColorDepth.Depth24Bit; this.imageList1.ImageSize = new System.Drawing.Size(16, 16); this.imageList1.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList1.ImageStream"))); this.imageList1.TransparentColor = System.Drawing.Color.Silver; // // recordsetContextMenu // this.recordsetContextMenu.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.contextMenuItemSelectAll, this.contextMenuItemCopy}); this.recordsetContextMenu.Popup += new System.EventHandler(this.recordsetContextMenu_Popup); // // contextMenuItemSelectAll // this.contextMenuItemSelectAll.Index = 0; this.contextMenuItemSelectAll.Text = "Select &All"; this.contextMenuItemSelectAll.Click += new System.EventHandler(this.contextMenuItemSelectAll_Click); // // contextMenuItemCopy // this.contextMenuItemCopy.Index = 1; this.contextMenuItemCopy.Text = "&Copy"; this.contextMenuItemCopy.Click += new System.EventHandler(this.contextMenuItemCopy_Click); // // tabControl1 // this.tabControl1.Controls.Add(this.tabPageRecordSet); this.tabControl1.Controls.Add(this.tabPagePrettyPrint); this.tabControl1.Controls.Add(this.tabPageCsv); this.tabControl1.Controls.Add(this.tabPageXml); this.tabControl1.Controls.Add(this.tabPageTSql); this.tabControl1.Controls.Add(this.tabPageMessages); this.tabControl1.Dock = System.Windows.Forms.DockStyle.Bottom; this.tabControl1.Location = new System.Drawing.Point(0, 155); this.tabControl1.Name = "tabControl1"; this.tabControl1.SelectedIndex = 0; this.tabControl1.Size = new System.Drawing.Size(640, 248); this.tabControl1.TabIndex = 2; // // tabPageRecordSet // this.tabPageRecordSet.Controls.Add(this.resultSet); this.tabPageRecordSet.Location = new System.Drawing.Point(4, 22); this.tabPageRecordSet.Name = "tabPageRecordSet"; this.tabPageRecordSet.Size = new System.Drawing.Size(768, 222); this.tabPageRecordSet.TabIndex = 0; this.tabPageRecordSet.Text = "Recordset"; // // resultSet // this.resultSet.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.resultSet.ContextMenu = this.recordsetContextMenu; this.resultSet.Dock = System.Windows.Forms.DockStyle.Fill; this.resultSet.FullRowSelect = true; this.resultSet.GridLines = true; this.resultSet.Location = new System.Drawing.Point(0, 0); this.resultSet.Name = "resultSet"; this.resultSet.Size = new System.Drawing.Size(768, 222); this.resultSet.TabIndex = 0; this.resultSet.View = System.Windows.Forms.View.Details; this.resultSet.SelectedIndexChanged += new System.EventHandler(this.listView1_SelectedIndexChanged); // // tabPageXml // this.tabPageXml.Controls.Add(this.panel3); this.tabPageXml.Location = new System.Drawing.Point(4, 22); this.tabPageXml.Name = "tabPageXml"; this.tabPageXml.Size = new System.Drawing.Size(632, 222); this.tabPageXml.TabIndex = 2; this.tabPageXml.Text = "XML"; // // panel3 // this.panel3.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.panel3.Controls.Add(this.xmlResults); this.panel3.Dock = System.Windows.Forms.DockStyle.Fill; this.panel3.Location = new System.Drawing.Point(0, 0); this.panel3.Name = "panel3"; this.panel3.Size = new System.Drawing.Size(632, 222); this.panel3.TabIndex = 0; // // xmlResults // this.xmlResults.Dock = System.Windows.Forms.DockStyle.Fill; this.xmlResults.DockPadding.Top = 2; this.xmlResults.EnableFolding = false; this.xmlResults.Encoding = ((System.Text.Encoding)(resources.GetObject("xmlResults.Encoding"))); this.xmlResults.IndentStyle = ICSharpCode.TextEditor.Document.IndentStyle.Auto; this.xmlResults.Location = new System.Drawing.Point(0, 0); this.xmlResults.Name = "xmlResults"; this.xmlResults.ShowEOLMarkers = true; this.xmlResults.ShowInvalidLines = false; this.xmlResults.ShowLineNumbers = false; this.xmlResults.ShowSpaces = true; this.xmlResults.ShowTabs = true; this.xmlResults.ShowVRuler = true; this.xmlResults.Size = new System.Drawing.Size(630, 220); this.xmlResults.TabIndent = 8; this.xmlResults.TabIndex = 0; this.xmlResults.Load += new System.EventHandler(this.xmlResults_Load); // // tabPageCsv // this.tabPageCsv.Controls.Add(this.panel4); this.tabPageCsv.Location = new System.Drawing.Point(4, 22); this.tabPageCsv.Name = "tabPageCsv"; this.tabPageCsv.Size = new System.Drawing.Size(632, 222); this.tabPageCsv.TabIndex = 4; this.tabPageCsv.Text = "CSV"; // // panel4 // this.panel4.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.panel4.Controls.Add(this.csvResults); this.panel4.Dock = System.Windows.Forms.DockStyle.Fill; this.panel4.Location = new System.Drawing.Point(0, 0); this.panel4.Name = "panel4"; this.panel4.Size = new System.Drawing.Size(632, 222); this.panel4.TabIndex = 0; // // csvResults // this.csvResults.Dock = System.Windows.Forms.DockStyle.Fill; this.csvResults.DockPadding.Top = 2; this.csvResults.EnableFolding = false; this.csvResults.Encoding = ((System.Text.Encoding)(resources.GetObject("csvResults.Encoding"))); this.csvResults.IndentStyle = ICSharpCode.TextEditor.Document.IndentStyle.Auto; this.csvResults.Location = new System.Drawing.Point(0, 0); this.csvResults.Name = "csvResults"; this.csvResults.ShowEOLMarkers = true; this.csvResults.ShowInvalidLines = false; this.csvResults.ShowLineNumbers = false; this.csvResults.ShowSpaces = true; this.csvResults.ShowTabs = true; this.csvResults.ShowVRuler = true; this.csvResults.Size = new System.Drawing.Size(630, 220); this.csvResults.TabIndent = 8; this.csvResults.TabIndex = 0; // // tabPagePrettyPrint // this.tabPagePrettyPrint.Controls.Add(this.panel5); this.tabPagePrettyPrint.Location = new System.Drawing.Point(4, 22); this.tabPagePrettyPrint.Name = "tabPagePrettyPrint"; this.tabPagePrettyPrint.Size = new System.Drawing.Size(632, 222); this.tabPagePrettyPrint.TabIndex = 5; this.tabPagePrettyPrint.Text = "Parsed SOQL"; this.tabPagePrettyPrint.Click += new System.EventHandler(this.tabPagePrettyPrint_Click); // // tabPageTSql // this.tabPageTSql.Controls.Add(this.panel2); this.tabPageTSql.Location = new System.Drawing.Point(4, 22); this.tabPageTSql.Name = "tabPageTSql"; this.tabPageTSql.Size = new System.Drawing.Size(632, 222); this.tabPageTSql.TabIndex = 1; this.tabPageTSql.Text = "Translated SQL"; // // panel2 // this.panel2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.panel2.Controls.Add(this.translatedSql); this.panel2.Dock = System.Windows.Forms.DockStyle.Fill; this.panel2.Location = new System.Drawing.Point(0, 0); this.panel2.Name = "panel2"; this.panel2.Size = new System.Drawing.Size(632, 222); this.panel2.TabIndex = 2; // // translatedSql // this.translatedSql.BackColor = System.Drawing.SystemColors.Control; this.translatedSql.Dock = System.Windows.Forms.DockStyle.Fill; this.translatedSql.DockPadding.Top = 2; this.translatedSql.EnableFolding = false; this.translatedSql.Encoding = ((System.Text.Encoding)(resources.GetObject("translatedSql.Encoding"))); this.translatedSql.IndentStyle = ICSharpCode.TextEditor.Document.IndentStyle.Auto; this.translatedSql.Location = new System.Drawing.Point(0, 0); this.translatedSql.Name = "translatedSql"; this.translatedSql.ShowEOLMarkers = true; this.translatedSql.ShowInvalidLines = false; this.translatedSql.ShowLineNumbers = false; this.translatedSql.ShowSpaces = true; this.translatedSql.ShowTabs = true; this.translatedSql.ShowVRuler = true; this.translatedSql.Size = new System.Drawing.Size(630, 220); this.translatedSql.TabIndent = 8; this.translatedSql.TabIndex = 1; // // tabPageMessages // this.tabPageMessages.Controls.Add(this.messagesTextBox); this.tabPageMessages.Location = new System.Drawing.Point(4, 22); this.tabPageMessages.Name = "tabPageMessages"; this.tabPageMessages.Size = new System.Drawing.Size(768, 222); this.tabPageMessages.TabIndex = 3; this.tabPageMessages.Text = "Messages"; // // messagesTextBox // this.messagesTextBox.AcceptsReturn = true; this.messagesTextBox.AcceptsTab = true; this.messagesTextBox.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.messagesTextBox.Dock = System.Windows.Forms.DockStyle.Fill; this.messagesTextBox.Font = new System.Drawing.Font("Courier New", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(238))); this.messagesTextBox.Location = new System.Drawing.Point(0, 0); this.messagesTextBox.Multiline = true; this.messagesTextBox.Name = "messagesTextBox"; this.messagesTextBox.ReadOnly = true; this.messagesTextBox.ScrollBars = System.Windows.Forms.ScrollBars.Both; this.messagesTextBox.Size = new System.Drawing.Size(768, 222); this.messagesTextBox.TabIndex = 0; this.messagesTextBox.Text = ""; // // TextEditorControl1 // this.TextEditorControl1.Dock = System.Windows.Forms.DockStyle.Fill; this.TextEditorControl1.DockPadding.Top = 2; this.TextEditorControl1.EnableFolding = false; this.TextEditorControl1.Encoding = ((System.Text.Encoding)(resources.GetObject("TextEditorControl1.Encoding"))); this.TextEditorControl1.IndentStyle = ICSharpCode.TextEditor.Document.IndentStyle.Auto; this.TextEditorControl1.Location = new System.Drawing.Point(0, 0); this.TextEditorControl1.Name = "TextEditorControl1"; this.TextEditorControl1.ShowEOLMarkers = true; this.TextEditorControl1.ShowInvalidLines = false; this.TextEditorControl1.ShowLineNumbers = false; this.TextEditorControl1.ShowSpaces = true; this.TextEditorControl1.ShowTabs = true; this.TextEditorControl1.ShowVRuler = true; this.TextEditorControl1.Size = new System.Drawing.Size(638, 122); this.TextEditorControl1.TabIndent = 1; this.TextEditorControl1.TabIndex = 0; // // splitter2 // this.splitter2.Dock = System.Windows.Forms.DockStyle.Bottom; this.splitter2.Location = new System.Drawing.Point(0, 152); this.splitter2.Name = "splitter2"; this.splitter2.Size = new System.Drawing.Size(640, 3); this.splitter2.TabIndex = 0; this.splitter2.TabStop = false; // // panel1 // this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.panel1.Controls.Add(this.TextEditorControl1); this.panel1.Dock = System.Windows.Forms.DockStyle.Fill; this.panel1.Location = new System.Drawing.Point(0, 28); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(640, 124); this.panel1.TabIndex = 1; this.panel1.TabStop = true; // // panel5 // this.panel5.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.panel5.Controls.Add(this.soqlPrettyPrint); this.panel5.Dock = System.Windows.Forms.DockStyle.Fill; this.panel5.Location = new System.Drawing.Point(0, 0); this.panel5.Name = "panel5"; this.panel5.Size = new System.Drawing.Size(632, 222); this.panel5.TabIndex = 0; // // soqlPrettyPrint // this.soqlPrettyPrint.BackColor = System.Drawing.SystemColors.Control; this.soqlPrettyPrint.Dock = System.Windows.Forms.DockStyle.Fill; this.soqlPrettyPrint.DockPadding.Top = 2; this.soqlPrettyPrint.EnableFolding = false; this.soqlPrettyPrint.Encoding = ((System.Text.Encoding)(resources.GetObject("soqlPrettyPrint.Encoding"))); this.soqlPrettyPrint.IndentStyle = ICSharpCode.TextEditor.Document.IndentStyle.Auto; this.soqlPrettyPrint.Location = new System.Drawing.Point(0, 0); this.soqlPrettyPrint.Name = "soqlPrettyPrint"; this.soqlPrettyPrint.ShowEOLMarkers = true; this.soqlPrettyPrint.ShowInvalidLines = false; this.soqlPrettyPrint.ShowLineNumbers = false; this.soqlPrettyPrint.ShowSpaces = true; this.soqlPrettyPrint.ShowTabs = true; this.soqlPrettyPrint.ShowVRuler = true; this.soqlPrettyPrint.Size = new System.Drawing.Size(630, 220); this.soqlPrettyPrint.TabIndent = 8; this.soqlPrettyPrint.TabIndex = 2; // // MainForm // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(640, 425); this.Controls.Add(this.panel1); this.Controls.Add(this.splitter2); this.Controls.Add(this.tabControl1); this.Controls.Add(this.toolBar1); this.Controls.Add(this.statusBar1); this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.Menu = this.mainMenu1; this.Name = "MainForm"; this.Load += new System.EventHandler(this.MainFor_Load); this.tabControl1.ResumeLayout(false); this.tabPageRecordSet.ResumeLayout(false); this.tabPageXml.ResumeLayout(false); this.panel3.ResumeLayout(false); this.tabPageCsv.ResumeLayout(false); this.panel4.ResumeLayout(false); this.tabPagePrettyPrint.ResumeLayout(false); this.tabPageTSql.ResumeLayout(false); this.panel2.ResumeLayout(false); this.tabPageMessages.ResumeLayout(false); this.panel1.ResumeLayout(false); this.panel5.ResumeLayout(false); this.ResumeLayout(false); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ExpressionEditor)); this.OKBtn = new System.Windows.Forms.Button(); this.CancelBtn = new System.Windows.Forms.Button(); this.panel1 = new System.Windows.Forms.Panel(); this.toolStrip1 = new System.Windows.Forms.ToolStrip(); this.btnProperties = new System.Windows.Forms.ToolStripDropDownButton(); this.btnFunctions = new System.Windows.Forms.ToolStripDropDownButton(); this.btnFilter = new System.Windows.Forms.ToolStripDropDownButton(); this.btnCondition = new System.Windows.Forms.ToolStripMenuItem(); this.btnSpatial = new System.Windows.Forms.ToolStripMenuItem(); this.btnDistance = new System.Windows.Forms.ToolStripMenuItem(); this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator(); this.ColumnValue = new System.Windows.Forms.ToolStripComboBox(); this.LookupValues = new System.Windows.Forms.ToolStripButton(); this.ColumnName = new System.Windows.Forms.ToolStripComboBox(); this._autoCompleteTooltip = new System.Windows.Forms.ToolTip(this.components); this.ExpressionText = new ICSharpCode.TextEditor.TextEditorControl(); this.panel1.SuspendLayout(); this.toolStrip1.SuspendLayout(); this.SuspendLayout(); // // OKBtn // resources.ApplyResources(this.OKBtn, "OKBtn"); this.OKBtn.Name = "OKBtn"; this.OKBtn.UseVisualStyleBackColor = true; this.OKBtn.Click += new System.EventHandler(this.OKBtn_Click); // // CancelBtn // resources.ApplyResources(this.CancelBtn, "CancelBtn"); this.CancelBtn.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.CancelBtn.Name = "CancelBtn"; this.CancelBtn.UseVisualStyleBackColor = true; // // panel1 // this.panel1.Controls.Add(this.CancelBtn); this.panel1.Controls.Add(this.OKBtn); resources.ApplyResources(this.panel1, "panel1"); this.panel1.Name = "panel1"; // // toolStrip1 // this.toolStrip1.GripStyle = System.Windows.Forms.ToolStripGripStyle.Hidden; this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.btnProperties, this.btnFunctions, this.btnFilter, this.toolStripSeparator1, this.ColumnValue, this.LookupValues, this.ColumnName}); resources.ApplyResources(this.toolStrip1, "toolStrip1"); this.toolStrip1.Name = "toolStrip1"; // // btnProperties // this.btnProperties.Image = global::Maestro.Editors.Properties.Resources.property; resources.ApplyResources(this.btnProperties, "btnProperties"); this.btnProperties.Name = "btnProperties"; // // btnFunctions // this.btnFunctions.Image = global::Maestro.Editors.Properties.Resources.function; resources.ApplyResources(this.btnFunctions, "btnFunctions"); this.btnFunctions.Name = "btnFunctions"; // // btnFilter // this.btnFilter.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.btnCondition, this.btnSpatial, this.btnDistance}); this.btnFilter.Image = global::Maestro.Editors.Properties.Resources.funnel; resources.ApplyResources(this.btnFilter, "btnFilter"); this.btnFilter.Name = "btnFilter"; // // btnCondition // this.btnCondition.Name = "btnCondition"; resources.ApplyResources(this.btnCondition, "btnCondition"); // // btnSpatial // this.btnSpatial.Image = global::Maestro.Editors.Properties.Resources.grid; this.btnSpatial.Name = "btnSpatial"; resources.ApplyResources(this.btnSpatial, "btnSpatial"); // // btnDistance // this.btnDistance.Image = global::Maestro.Editors.Properties.Resources.ruler; this.btnDistance.Name = "btnDistance"; resources.ApplyResources(this.btnDistance, "btnDistance"); // // toolStripSeparator1 // this.toolStripSeparator1.Name = "toolStripSeparator1"; resources.ApplyResources(this.toolStripSeparator1, "toolStripSeparator1"); // // ColumnValue // this.ColumnValue.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right; this.ColumnValue.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.ColumnValue.DropDownWidth = 180; resources.ApplyResources(this.ColumnValue, "ColumnValue"); this.ColumnValue.Name = "ColumnValue"; this.ColumnValue.SelectedIndexChanged += new System.EventHandler(this.ColumnValue_SelectedIndexChanged); // // LookupValues // this.LookupValues.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right; this.LookupValues.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; resources.ApplyResources(this.LookupValues, "LookupValues"); this.LookupValues.Image = global::Maestro.Editors.Properties.Resources.table__arrow; this.LookupValues.Name = "LookupValues"; this.LookupValues.Click += new System.EventHandler(this.LookupValues_Click); // // ColumnName // this.ColumnName.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right; this.ColumnName.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.ColumnName.DropDownWidth = 180; this.ColumnName.Name = "ColumnName"; resources.ApplyResources(this.ColumnName, "ColumnName"); this.ColumnName.SelectedIndexChanged += new System.EventHandler(this.ColumnName_SelectedIndexChanged); this.ColumnName.Click += new System.EventHandler(this.ColumnName_Click); // // ExpressionText // resources.ApplyResources(this.ExpressionText, "ExpressionText"); this.ExpressionText.IsReadOnly = false; this.ExpressionText.Name = "ExpressionText"; this.ExpressionText.ShowLineNumbers = false; this.ExpressionText.ShowVRuler = false; // // ExpressionEditor // this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; resources.ApplyResources(this, "$this"); this.ControlBox = false; this.Controls.Add(this.ExpressionText); this.Controls.Add(this.toolStrip1); this.Controls.Add(this.panel1); this.Name = "ExpressionEditor"; this.panel1.ResumeLayout(false); this.toolStrip1.ResumeLayout(false); this.toolStrip1.PerformLayout(); this.ResumeLayout(false); this.PerformLayout(); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.edFormulaWrapper = new ICSharpCode.SharpDevelop.DefaultEditor.Gui.Editor.TextEditorDisplayBindingWrapper(); this.edFormula = edFormulaWrapper.TextEditorControl; this.lbCompilerErrors = new System.Windows.Forms.ListBox(); this.btUpdate = new System.Windows.Forms.Button(); this.btCancel = new System.Windows.Forms.Button(); this.btDoIt = new System.Windows.Forms.Button(); this.btCompile = new System.Windows.Forms.Button(); this.SuspendLayout(); // // edFormula // this.edFormula.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.edFormula.Location = new System.Drawing.Point(0, 0); //this.edFormula.Multiline = true; this.edFormula.Name = "edFormula"; //this.edFormula.ScrollBars = System.Windows.Forms.ScrollBars.Both; this.edFormula.Size = new System.Drawing.Size(528, 336); this.edFormula.TabIndex = 23; this.edFormula.Text = ""; // // lbCompilerErrors // this.lbCompilerErrors.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.lbCompilerErrors.HorizontalExtent = 4096; this.lbCompilerErrors.HorizontalScrollbar = true; this.lbCompilerErrors.Location = new System.Drawing.Point(0, 344); this.lbCompilerErrors.Name = "lbCompilerErrors"; this.lbCompilerErrors.Size = new System.Drawing.Size(592, 82); this.lbCompilerErrors.TabIndex = 29; this.lbCompilerErrors.DoubleClick += new System.EventHandler(this.EhCompilerErrors_DoubleClick); // // btUpdate // this.btUpdate.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.btUpdate.Location = new System.Drawing.Point(536, 136); this.btUpdate.Name = "btUpdate"; this.btUpdate.Size = new System.Drawing.Size(56, 32); this.btUpdate.TabIndex = 28; this.btUpdate.Text = "Update"; this.btUpdate.Click += new System.EventHandler(this.EhUpdate_Click); // // btCancel // this.btCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.btCancel.Location = new System.Drawing.Point(536, 240); this.btCancel.Name = "btCancel"; this.btCancel.Size = new System.Drawing.Size(56, 32); this.btCancel.TabIndex = 27; this.btCancel.Text = "Cancel"; this.btCancel.Click += new System.EventHandler(this.EhCancel_Click); // // btDoIt // this.btDoIt.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.btDoIt.Location = new System.Drawing.Point(536, 25); this.btDoIt.Name = "btDoIt"; this.btDoIt.Size = new System.Drawing.Size(56, 32); this.btDoIt.TabIndex = 24; this.btDoIt.Text = "Do It!"; this.btDoIt.Click += new System.EventHandler(this.EhDoIt_Click); // // btCompile // this.btCompile.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.btCompile.Location = new System.Drawing.Point(536, 80); this.btCompile.Name = "btCompile"; this.btCompile.Size = new System.Drawing.Size(56, 32); this.btCompile.TabIndex = 36; this.btCompile.Text = "Compile"; this.btCompile.Click += new System.EventHandler(this.EhCompile_Click); // // TableScriptControl // this.Controls.Add(this.btCompile); this.Controls.Add(this.edFormula); this.Controls.Add(this.lbCompilerErrors); this.Controls.Add(this.btUpdate); this.Controls.Add(this.btCancel); this.Controls.Add(this.btDoIt); this.Name = "TableScriptControl"; this.Size = new System.Drawing.Size(600, 428); this.ResumeLayout(false); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(SharpCodeForm)); this.ActionsToolStrip = new System.Windows.Forms.ToolStrip(); this.BtnComment = new System.Windows.Forms.ToolStripButton(); this.BtnUncomment = new System.Windows.Forms.ToolStripButton(); this.BtnSearch = new System.Windows.Forms.ToolStripButton(); this.BtnBookmark = new System.Windows.Forms.ToolStripButton(); this.BtnPrevious = new System.Windows.Forms.ToolStripButton(); this.BtnNext = new System.Windows.Forms.ToolStripButton(); this.BtnClearBookmarks = new System.Windows.Forms.ToolStripButton(); this.BtnSave = new System.Windows.Forms.ToolStripButton(); this.BtnLoad = new System.Windows.Forms.ToolStripButton(); this.BtnCopy = new System.Windows.Forms.ToolStripButton(); this.MsgLabel = new System.Windows.Forms.ToolStripLabel(); this.SharpText = new ICSharpCode.TextEditor.TextEditorControl(); this.FoldingRefresher = new System.Windows.Forms.Timer(this.components); this.ActionsToolStrip.SuspendLayout(); this.SuspendLayout(); // // ActionsToolStrip // this.ActionsToolStrip.AutoSize = false; this.ActionsToolStrip.GripStyle = System.Windows.Forms.ToolStripGripStyle.Hidden; this.ActionsToolStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.BtnComment, this.BtnUncomment, this.BtnSearch, this.BtnBookmark, this.BtnPrevious, this.BtnNext, this.BtnClearBookmarks, this.BtnSave, this.BtnLoad, this.BtnCopy, this.MsgLabel}); this.ActionsToolStrip.Location = new System.Drawing.Point(0, 0); this.ActionsToolStrip.Name = "ActionsToolStrip"; this.ActionsToolStrip.Size = new System.Drawing.Size(759, 30); this.ActionsToolStrip.TabIndex = 2; // // BtnComment // this.BtnComment.AutoSize = false; this.BtnComment.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.BtnComment.Image = global::Ez_SQL.Properties.Resources.Comment; this.BtnComment.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None; this.BtnComment.ImageTransparentColor = System.Drawing.Color.Magenta; this.BtnComment.Name = "BtnComment"; this.BtnComment.Size = new System.Drawing.Size(28, 28); this.BtnComment.ToolTipText = "Comment Selected Lines (Ctrl+K)"; this.BtnComment.Click += new System.EventHandler(this.BtnComment_Click); // // BtnUncomment // this.BtnUncomment.AutoSize = false; this.BtnUncomment.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.BtnUncomment.Image = global::Ez_SQL.Properties.Resources.UnComment; this.BtnUncomment.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None; this.BtnUncomment.ImageTransparentColor = System.Drawing.Color.Magenta; this.BtnUncomment.Name = "BtnUncomment"; this.BtnUncomment.Size = new System.Drawing.Size(28, 28); this.BtnUncomment.ToolTipText = "Uncomment selected lines(Ctrl+U)"; this.BtnUncomment.Click += new System.EventHandler(this.BtnUncomment_Click); // // BtnSearch // this.BtnSearch.AutoSize = false; this.BtnSearch.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.BtnSearch.Image = global::Ez_SQL.Properties.Resources.Search; this.BtnSearch.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None; this.BtnSearch.ImageTransparentColor = System.Drawing.Color.Magenta; this.BtnSearch.Name = "BtnSearch"; this.BtnSearch.Size = new System.Drawing.Size(28, 28); this.BtnSearch.ToolTipText = "Search or replace text(Ctrl+F)"; this.BtnSearch.Click += new System.EventHandler(this.BtnSearch_Click); // // BtnBookmark // this.BtnBookmark.AutoSize = false; this.BtnBookmark.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.BtnBookmark.Image = global::Ez_SQL.Properties.Resources.Bookmark; this.BtnBookmark.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None; this.BtnBookmark.ImageTransparentColor = System.Drawing.Color.Magenta; this.BtnBookmark.Name = "BtnBookmark"; this.BtnBookmark.Size = new System.Drawing.Size(28, 28); this.BtnBookmark.ToolTipText = "Toggle bookmark(F2)"; this.BtnBookmark.Click += new System.EventHandler(this.BtnBookmark_Click); // // BtnPrevious // this.BtnPrevious.AutoSize = false; this.BtnPrevious.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.BtnPrevious.Image = global::Ez_SQL.Properties.Resources.Previous; this.BtnPrevious.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None; this.BtnPrevious.ImageTransparentColor = System.Drawing.Color.Magenta; this.BtnPrevious.Name = "BtnPrevious"; this.BtnPrevious.Size = new System.Drawing.Size(28, 28); this.BtnPrevious.ToolTipText = "Go to previous bookmark (Shift + F2)"; this.BtnPrevious.Click += new System.EventHandler(this.BtnPrevious_Click); // // BtnNext // this.BtnNext.AutoSize = false; this.BtnNext.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.BtnNext.Image = ((System.Drawing.Image)(resources.GetObject("BtnNext.Image"))); this.BtnNext.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None; this.BtnNext.ImageTransparentColor = System.Drawing.Color.Magenta; this.BtnNext.Name = "BtnNext"; this.BtnNext.Size = new System.Drawing.Size(28, 28); this.BtnNext.ToolTipText = "Go to next bookmark (Ctr + F2)"; this.BtnNext.Click += new System.EventHandler(this.BtnNext_Click); // // BtnClearBookmarks // this.BtnClearBookmarks.AutoSize = false; this.BtnClearBookmarks.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.BtnClearBookmarks.Image = global::Ez_SQL.Properties.Resources.DelBookmark; this.BtnClearBookmarks.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None; this.BtnClearBookmarks.ImageTransparentColor = System.Drawing.Color.Magenta; this.BtnClearBookmarks.Name = "BtnClearBookmarks"; this.BtnClearBookmarks.Size = new System.Drawing.Size(28, 28); this.BtnClearBookmarks.ToolTipText = "Clear bookmarks (Ctr + Shift + F2)"; this.BtnClearBookmarks.Click += new System.EventHandler(this.BtnClearBookmarks_Click); // // BtnSave // this.BtnSave.AutoSize = false; this.BtnSave.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.BtnSave.Image = global::Ez_SQL.Properties.Resources.Save; this.BtnSave.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None; this.BtnSave.ImageTransparentColor = System.Drawing.Color.Magenta; this.BtnSave.Name = "BtnSave"; this.BtnSave.Size = new System.Drawing.Size(28, 28); this.BtnSave.ToolTipText = "Save script to file (Ctr + G)"; this.BtnSave.Click += new System.EventHandler(this.BtnSave_Click); // // BtnLoad // this.BtnLoad.AutoSize = false; this.BtnLoad.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.BtnLoad.Image = global::Ez_SQL.Properties.Resources.Open; this.BtnLoad.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None; this.BtnLoad.ImageTransparentColor = System.Drawing.Color.Magenta; this.BtnLoad.Name = "BtnLoad"; this.BtnLoad.Size = new System.Drawing.Size(28, 28); this.BtnLoad.ToolTipText = "Load file (Ctr + L)"; this.BtnLoad.Click += new System.EventHandler(this.BtnLoad_Click); // // BtnCopy // this.BtnCopy.AutoSize = false; this.BtnCopy.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.BtnCopy.Image = global::Ez_SQL.Properties.Resources.CopyConnectionString; this.BtnCopy.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None; this.BtnCopy.ImageTransparentColor = System.Drawing.Color.Magenta; this.BtnCopy.Name = "BtnCopy"; this.BtnCopy.Size = new System.Drawing.Size(28, 28); this.BtnCopy.ToolTipText = "Copy all text"; this.BtnCopy.Click += new System.EventHandler(this.BtnCopy_Click); // // MsgLabel // this.MsgLabel.AutoSize = false; this.MsgLabel.Font = new System.Drawing.Font("Tahoma", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.MsgLabel.Name = "MsgLabel"; this.MsgLabel.Size = new System.Drawing.Size(200, 27); // // SharpText // this.SharpText.Dock = System.Windows.Forms.DockStyle.Fill; this.SharpText.IsIconBarVisible = true; this.SharpText.IsReadOnly = false; this.SharpText.Location = new System.Drawing.Point(0, 30); this.SharpText.Name = "SharpText"; this.SharpText.ShowVRuler = false; this.SharpText.Size = new System.Drawing.Size(759, 396); this.SharpText.TabIndex = 3; // // FoldingRefresher // this.FoldingRefresher.Interval = 200; this.FoldingRefresher.Tick += new System.EventHandler(this.FoldingRefresher_Tick); // // SharpCodeForm // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(759, 426); this.Controls.Add(this.SharpText); this.Controls.Add(this.ActionsToolStrip); this.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.Name = "SharpCodeForm"; this.TabText = "C# Code"; this.Text = "SharpCodeForm"; this.ToolTipText = "Ventana de Codigo de CSharp"; this.Load += new System.EventHandler(this.SharpCodeForm_Load); this.Click += new System.EventHandler(this.BtnComment_Click); this.ActionsToolStrip.ResumeLayout(false); this.ActionsToolStrip.PerformLayout(); this.ResumeLayout(false); }