Exemplo n.º 1
0
 public DocumentManager(RunnableQuery q, Control hostControl)
 {
     this._query       = q;
     this._hostControl = hostControl;
     this._document    = new ActiproSoftware.SyntaxEditor.Document();
     this._document.get_SpanIndicatorLayers().Add(this._mainErrorLayer         = new SpanIndicatorLayer("errors", 0x3e8));
     this._document.get_SpanIndicatorLayers().Add(this._warningsLayer          = new SpanIndicatorLayer("warnings", 0x3e8));
     this._document.get_SpanIndicatorLayers().Add(this._executedSelectionLayer = new SpanIndicatorLayer("executedSelection", 0));
     this._document.get_SpanIndicatorLayers().Add(this._uriLayer        = new SpanIndicatorLayer("uriLayer", 0));
     this._document.get_SpanIndicatorLayers().Add(this._stackTraceLayer = new SpanIndicatorLayer("stackTrace", 0));
     if (UserOptions.Instance.TabSize.HasValue)
     {
         this._document.set_TabSize(UserOptions.Instance.TabSizeActual);
     }
     if (UserOptions.Instance.ConvertTabsToSpaces)
     {
         this._document.set_AutoConvertTabsToSpaces(true);
     }
     this._typeResolver = new ActiproBridge.TypeResolver(delegate(string name) {
         if (Program.Splash != null)
         {
             Program.Splash.UpdateMessage("Performing one-time build of autocompletion cache: " + name);
         }
     }, MyExtensions.AdditionalRefs);
     this.ConfigureLanguage();
     this.ConfigureResolver();
 }
Exemplo n.º 2
0
 public DocumentManager(RunnableQuery q, Control hostControl)
 {
     this._query = q;
     this._hostControl = hostControl;
     this._document = new ActiproSoftware.SyntaxEditor.Document();
     this._document.get_SpanIndicatorLayers().Add(this._mainErrorLayer = new SpanIndicatorLayer("errors", 0x3e8));
     this._document.get_SpanIndicatorLayers().Add(this._warningsLayer = new SpanIndicatorLayer("warnings", 0x3e8));
     this._document.get_SpanIndicatorLayers().Add(this._executedSelectionLayer = new SpanIndicatorLayer("executedSelection", 0));
     this._document.get_SpanIndicatorLayers().Add(this._uriLayer = new SpanIndicatorLayer("uriLayer", 0));
     this._document.get_SpanIndicatorLayers().Add(this._stackTraceLayer = new SpanIndicatorLayer("stackTrace", 0));
     if (UserOptions.Instance.TabSize.HasValue)
     {
         this._document.set_TabSize(UserOptions.Instance.TabSizeActual);
     }
     if (UserOptions.Instance.ConvertTabsToSpaces)
     {
         this._document.set_AutoConvertTabsToSpaces(true);
     }
     this._typeResolver = new ActiproBridge.TypeResolver(delegate (string name) {
         if (Program.Splash != null)
         {
             Program.Splash.UpdateMessage("Performing one-time build of autocompletion cache: " + name);
         }
     }, MyExtensions.AdditionalRefs);
     this.ConfigureLanguage();
     this.ConfigureResolver();
 }
Exemplo n.º 3
0
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         if (this.document != null)
         {
             this.document.Dispose();
             this.document = (ActiproSoftware.SyntaxEditor.Document)null;
         }
         if (this.stream != null)
         {
             this.stream.Close();
             this.stream = (Stream)null;
         }
     }
     base.Dispose(disposing);
 }
Exemplo n.º 4
0
 public ActiproEditor(ActiproSoftware.SyntaxEditor.Document document, CodeOptionsModel codeOptionsModel, IMessageDisplayService messageDisplayService, IViewService viewService, ICodeProject codeProject, Microsoft.Expression.Framework.UserInterface.IWindowService windowService)
 {
     this.editor = new SyntaxEditor();
     this.InitializeEditor(document, codeProject);
     this.host            = new WindowsFormsHost();
     this.host.Background = (System.Windows.Media.Brush)System.Windows.Media.Brushes.White;
     this.editor.IndicatorMarginVisible = false;
     this.host.Child       = (Control)this.editor;
     this.codeOptionsModel = codeOptionsModel;
     this.codeOptionsModel.PropertyChanged           += new PropertyChangedEventHandler(this.Actipro_PropertyChanged);
     this.editorSpecificOptionsModel                  = this.codeOptionsModel.GetEditorModel(EditorType.CodeEditor);
     this.editorSpecificOptionsModel.PropertyChanged += new PropertyChangedEventHandler(this.Actipro_PropertyChanged);
     this.messageDisplayService       = messageDisplayService;
     this.viewService                 = viewService;
     this.windowService               = windowService;
     this.windowService.ThemeChanged += new EventHandler(this.WindowService_ThemeChanged);
     this.UpdateOptions();
 }
Exemplo n.º 5
0
 private void InitializeEditor(ActiproSoftware.SyntaxEditor.Document document, ICodeProject codeProject)
 {
     this.editor.LineNumberMarginVisible    = true;
     this.editor.BracketHighlightingVisible = true;
     this.editor.IndentationGuidesVisible   = true;
     this.editor.AllowDrag  = true;
     this.editor.AllowDrop  = true;
     this.editor.SplitType  = SyntaxEditorSplitType.None;
     this.editor.IndentType = IndentType.Smart;
     this.editor.Document   = document;
     if (document != null)
     {
         this.editor.Document.SemanticParsingEnabled = true;
         this.editor.Document.LexicalParsingEnabled  = true;
     }
     else
     {
         this.editor.Enabled = false;
     }
     this.SetEditorTheme();
     this.editor.ContextMenuRequested += new ContextMenuRequestEventHandler(this.Editor_ContextMenuRequested);
     this.editor.GotFocus             += new EventHandler(this.OnEditorGotFocus);
     this.editor.LostFocus            += new EventHandler(this.OnEditorLostFocus);
     if (this.editor.Document.Language is CSharpSyntaxLanguage)
     {
         this.cSharpLanguage                = new CSharpExtendedSyntaxLanguage(codeProject);
         this.editor.Document.Language      = (SyntaxLanguage)this.cSharpLanguage;
         this.cSharpLanguage.EventInserted += new EventHandler <InsertEventHandlerEventArgs>(this.OnEventInserted);
         this.editor.IntelliPrompt.QuickInfo.HideOnMouseMove = false;
     }
     else if (this.editor.Document.Language.Key.Equals("JScript", StringComparison.OrdinalIgnoreCase))
     {
         this.editor.Document.Language.LineCommentDelimiter = "//";
     }
     this.editor.KeyTyping += new KeyTypingEventHandler(this.Editor_KeyTyping);
 }
 /// <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();
     ActiproSoftware.SyntaxEditor.Document          document6 = new ActiproSoftware.SyntaxEditor.Document();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1));
     this.openFileDialog1       = new System.Windows.Forms.OpenFileDialog();
     this.treeView1             = new System.Windows.Forms.TreeView();
     this.button1               = new System.Windows.Forms.Button();
     this.syntaxEditor1         = new ActiproSoftware.SyntaxEditor.SyntaxEditor();
     this.cSharpSyntaxLanguage1 = new ActiproSoftware.SyntaxEditor.Addons.CSharp.CSharpSyntaxLanguage(this.components);
     this.xmlSyntaxLanguage1    = new ActiproSoftware.SyntaxEditor.Addons.Xml.XmlSyntaxLanguage(this.components);
     this.splitContainer1       = new System.Windows.Forms.SplitContainer();
     this.splitContainer3       = new System.Windows.Forms.SplitContainer();
     this.button2               = new System.Windows.Forms.Button();
     this.comboBox1             = new System.Windows.Forms.ComboBox();
     this.splitContainer4       = new System.Windows.Forms.SplitContainer();
     this.propertyGrid1         = new System.Windows.Forms.PropertyGrid();
     this.imageList1            = new System.Windows.Forms.ImageList(this.components);
     this.textBox1              = new System.Windows.Forms.TextBox();
     this.label1 = new System.Windows.Forms.Label();
     ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
     this.splitContainer1.Panel1.SuspendLayout();
     this.splitContainer1.Panel2.SuspendLayout();
     this.splitContainer1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.splitContainer3)).BeginInit();
     this.splitContainer3.Panel1.SuspendLayout();
     this.splitContainer3.Panel2.SuspendLayout();
     this.splitContainer3.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.splitContainer4)).BeginInit();
     this.splitContainer4.Panel1.SuspendLayout();
     this.splitContainer4.Panel2.SuspendLayout();
     this.splitContainer4.SuspendLayout();
     this.SuspendLayout();
     //
     // openFileDialog1
     //
     this.openFileDialog1.FileName = "openFileDialog1";
     //
     // treeView1
     //
     this.treeView1.Dock               = System.Windows.Forms.DockStyle.Fill;
     this.treeView1.ImageIndex         = 0;
     this.treeView1.ImageList          = this.imageList1;
     this.treeView1.Location           = new System.Drawing.Point(0, 0);
     this.treeView1.Name               = "treeView1";
     this.treeView1.SelectedImageIndex = 0;
     this.treeView1.Size               = new System.Drawing.Size(215, 738);
     this.treeView1.StateImageList     = this.imageList1;
     this.treeView1.TabIndex           = 1;
     this.treeView1.AfterSelect       += new System.Windows.Forms.TreeViewEventHandler(this.treeView1_AfterSelect);
     //
     // button1
     //
     this.button1.Location = new System.Drawing.Point(12, 79);
     this.button1.Name     = "button1";
     this.button1.Size     = new System.Drawing.Size(75, 23);
     this.button1.TabIndex = 2;
     this.button1.Text     = "Parse DB";
     this.button1.UseVisualStyleBackColor = true;
     this.button1.Click += new System.EventHandler(this.button1_Click);
     //
     // syntaxEditor1
     //
     this.syntaxEditor1.Dock                = System.Windows.Forms.DockStyle.Fill;
     this.syntaxEditor1.Document            = document6;
     this.syntaxEditor1.Location            = new System.Drawing.Point(0, 0);
     this.syntaxEditor1.Name                = "syntaxEditor1";
     this.syntaxEditor1.Size                = new System.Drawing.Size(1105, 886);
     this.syntaxEditor1.SplitType           = ActiproSoftware.SyntaxEditor.SyntaxEditorSplitType.None;
     this.syntaxEditor1.TabIndex            = 3;
     this.syntaxEditor1.ViewVerticalScroll += new ActiproSoftware.SyntaxEditor.EditorViewEventHandler(this.syntaxEditor1_ViewVerticalScroll);
     //
     // splitContainer1
     //
     this.splitContainer1.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.splitContainer1.Location = new System.Drawing.Point(0, 0);
     this.splitContainer1.Name     = "splitContainer1";
     //
     // splitContainer1.Panel1
     //
     this.splitContainer1.Panel1.Controls.Add(this.splitContainer3);
     //
     // splitContainer1.Panel2
     //
     this.splitContainer1.Panel2.Controls.Add(this.splitContainer4);
     this.splitContainer1.Size             = new System.Drawing.Size(1646, 886);
     this.splitContainer1.SplitterDistance = 215;
     this.splitContainer1.TabIndex         = 5;
     //
     // splitContainer3
     //
     this.splitContainer3.Dock        = System.Windows.Forms.DockStyle.Fill;
     this.splitContainer3.Location    = new System.Drawing.Point(0, 0);
     this.splitContainer3.Name        = "splitContainer3";
     this.splitContainer3.Orientation = System.Windows.Forms.Orientation.Horizontal;
     //
     // splitContainer3.Panel1
     //
     this.splitContainer3.Panel1.Controls.Add(this.label1);
     this.splitContainer3.Panel1.Controls.Add(this.textBox1);
     this.splitContainer3.Panel1.Controls.Add(this.button2);
     this.splitContainer3.Panel1.Controls.Add(this.comboBox1);
     this.splitContainer3.Panel1.Controls.Add(this.button1);
     //
     // splitContainer3.Panel2
     //
     this.splitContainer3.Panel2.Controls.Add(this.treeView1);
     this.splitContainer3.Size             = new System.Drawing.Size(215, 886);
     this.splitContainer3.SplitterDistance = 144;
     this.splitContainer3.TabIndex         = 6;
     //
     // button2
     //
     this.button2.Location = new System.Drawing.Point(12, 108);
     this.button2.Name     = "button2";
     this.button2.Size     = new System.Drawing.Size(128, 23);
     this.button2.TabIndex = 4;
     this.button2.Text     = "Generate Files";
     this.button2.UseVisualStyleBackColor = true;
     this.button2.Click += new System.EventHandler(this.button2_Click);
     //
     // comboBox1
     //
     this.comboBox1.FormattingEnabled = true;
     this.comboBox1.Location          = new System.Drawing.Point(12, 12);
     this.comboBox1.Name                  = "comboBox1";
     this.comboBox1.Size                  = new System.Drawing.Size(188, 21);
     this.comboBox1.TabIndex              = 3;
     this.comboBox1.SelectedValueChanged += new System.EventHandler(this.comboBox1_SelectedValueChanged);
     //
     // splitContainer4
     //
     this.splitContainer4.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.splitContainer4.Location = new System.Drawing.Point(0, 0);
     this.splitContainer4.Name     = "splitContainer4";
     //
     // splitContainer4.Panel1
     //
     this.splitContainer4.Panel1.Controls.Add(this.propertyGrid1);
     //
     // splitContainer4.Panel2
     //
     this.splitContainer4.Panel2.Controls.Add(this.syntaxEditor1);
     this.splitContainer4.Size             = new System.Drawing.Size(1427, 886);
     this.splitContainer4.SplitterDistance = 318;
     this.splitContainer4.TabIndex         = 2;
     //
     // propertyGrid1
     //
     this.propertyGrid1.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.propertyGrid1.Location = new System.Drawing.Point(0, 0);
     this.propertyGrid1.Name     = "propertyGrid1";
     this.propertyGrid1.Size     = new System.Drawing.Size(318, 886);
     this.propertyGrid1.TabIndex = 2;
     //
     // imageList1
     //
     this.imageList1.ImageStream      = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList1.ImageStream")));
     this.imageList1.TransparentColor = System.Drawing.Color.Transparent;
     this.imageList1.Images.SetKeyName(0, "FolderClosed_16x.png");
     this.imageList1.Images.SetKeyName(1, "FolderOpened_16x.png");
     this.imageList1.Images.SetKeyName(2, "CSFile_16x.png");
     this.imageList1.Images.SetKeyName(3, "HTMLFile_16x.png");
     this.imageList1.Images.SetKeyName(4, "Property_16x.png");
     this.imageList1.Images.SetKeyName(5, "Table_16x.png");
     this.imageList1.Images.SetKeyName(6, "Column_16x.png");
     //
     // textBox1
     //
     this.textBox1.Location = new System.Drawing.Point(12, 53);
     this.textBox1.Name     = "textBox1";
     this.textBox1.Size     = new System.Drawing.Size(188, 20);
     this.textBox1.TabIndex = 5;
     this.textBox1.Text     = "WorkflowWeb";
     //
     // label1
     //
     this.label1.AutoSize = true;
     this.label1.Location = new System.Drawing.Point(12, 37);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(64, 13);
     this.label1.TabIndex = 6;
     this.label1.Text     = "Namespace";
     //
     // Form1
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize          = new System.Drawing.Size(1646, 886);
     this.Controls.Add(this.splitContainer1);
     this.Name = "Form1";
     this.Text = "EFEnhancer";
     this.splitContainer1.Panel1.ResumeLayout(false);
     this.splitContainer1.Panel2.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit();
     this.splitContainer1.ResumeLayout(false);
     this.splitContainer3.Panel1.ResumeLayout(false);
     this.splitContainer3.Panel1.PerformLayout();
     this.splitContainer3.Panel2.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.splitContainer3)).EndInit();
     this.splitContainer3.ResumeLayout(false);
     this.splitContainer4.Panel1.ResumeLayout(false);
     this.splitContainer4.Panel2.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.splitContainer4)).EndInit();
     this.splitContainer4.ResumeLayout(false);
     this.ResumeLayout(false);
 }
Exemplo n.º 7
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     ActiproSoftware.SyntaxEditor.Document          document7 = new ActiproSoftware.SyntaxEditor.Document();
     ActiproSoftware.SyntaxEditor.Document          document8 = new ActiproSoftware.SyntaxEditor.Document();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Migration));
     this.splitContainer1       = new System.Windows.Forms.SplitContainer();
     this.tabControl1           = new System.Windows.Forms.TabControl();
     this.tabPage_rules         = new System.Windows.Forms.TabPage();
     this.dataGridView1         = new System.Windows.Forms.DataGridView();
     this.tabPage_script        = new System.Windows.Forms.TabPage();
     this.splitContainer3       = new System.Windows.Forms.SplitContainer();
     this.syntaxEditor1         = new ActiproSoftware.SyntaxEditor.SyntaxEditor();
     this.syntaxEditor2         = new ActiproSoftware.SyntaxEditor.SyntaxEditor();
     this.tabPage_progress      = new System.Windows.Forms.TabPage();
     this.dataGridView2         = new System.Windows.Forms.DataGridView();
     this.splitContainer2       = new System.Windows.Forms.SplitContainer();
     this.btn_delete_profile    = new System.Windows.Forms.Button();
     this.btn_new_profile       = new System.Windows.Forms.Button();
     this.label2                = new System.Windows.Forms.Label();
     this.cmb_profiles          = new System.Windows.Forms.ComboBox();
     this.cmb_target_server     = new System.Windows.Forms.ComboBox();
     this.btn_start             = new System.Windows.Forms.Button();
     this.propertyGrid1         = new System.Windows.Forms.PropertyGrid();
     this.label1                = new System.Windows.Forms.Label();
     this.toolStripContainer1   = new System.Windows.Forms.ToolStripContainer();
     this.toolStrip1            = new System.Windows.Forms.ToolStrip();
     this.toolStripLabel1       = new System.Windows.Forms.ToolStripLabel();
     this.cmb_structure_sources = new System.Windows.Forms.ToolStripComboBox();
     this.btn_save              = new System.Windows.Forms.ToolStripButton();
     this.label3                = new System.Windows.Forms.Label();
     ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
     this.splitContainer1.Panel1.SuspendLayout();
     this.splitContainer1.Panel2.SuspendLayout();
     this.splitContainer1.SuspendLayout();
     this.tabControl1.SuspendLayout();
     this.tabPage_rules.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
     this.tabPage_script.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.splitContainer3)).BeginInit();
     this.splitContainer3.Panel1.SuspendLayout();
     this.splitContainer3.Panel2.SuspendLayout();
     this.splitContainer3.SuspendLayout();
     this.tabPage_progress.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.dataGridView2)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).BeginInit();
     this.splitContainer2.Panel1.SuspendLayout();
     this.splitContainer2.Panel2.SuspendLayout();
     this.splitContainer2.SuspendLayout();
     this.toolStripContainer1.ContentPanel.SuspendLayout();
     this.toolStripContainer1.TopToolStripPanel.SuspendLayout();
     this.toolStripContainer1.SuspendLayout();
     this.toolStrip1.SuspendLayout();
     this.SuspendLayout();
     //
     // splitContainer1
     //
     this.splitContainer1.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.splitContainer1.Location = new System.Drawing.Point(0, 0);
     this.splitContainer1.Name     = "splitContainer1";
     //
     // splitContainer1.Panel1
     //
     this.splitContainer1.Panel1.Controls.Add(this.tabControl1);
     //
     // splitContainer1.Panel2
     //
     this.splitContainer1.Panel2.Controls.Add(this.splitContainer2);
     this.splitContainer1.Panel2.Controls.Add(this.label1);
     this.splitContainer1.Size             = new System.Drawing.Size(1210, 656);
     this.splitContainer1.SplitterDistance = 746;
     this.splitContainer1.TabIndex         = 0;
     //
     // tabControl1
     //
     this.tabControl1.Controls.Add(this.tabPage_rules);
     this.tabControl1.Controls.Add(this.tabPage_script);
     this.tabControl1.Controls.Add(this.tabPage_progress);
     this.tabControl1.Dock          = System.Windows.Forms.DockStyle.Fill;
     this.tabControl1.Location      = new System.Drawing.Point(0, 0);
     this.tabControl1.Name          = "tabControl1";
     this.tabControl1.SelectedIndex = 0;
     this.tabControl1.Size          = new System.Drawing.Size(746, 656);
     this.tabControl1.TabIndex      = 1;
     //
     // tabPage_rules
     //
     this.tabPage_rules.Controls.Add(this.dataGridView1);
     this.tabPage_rules.Location = new System.Drawing.Point(4, 22);
     this.tabPage_rules.Name     = "tabPage_rules";
     this.tabPage_rules.Padding  = new System.Windows.Forms.Padding(3);
     this.tabPage_rules.Size     = new System.Drawing.Size(738, 630);
     this.tabPage_rules.TabIndex = 0;
     this.tabPage_rules.Text     = "Rules";
     this.tabPage_rules.UseVisualStyleBackColor = true;
     //
     // dataGridView1
     //
     this.dataGridView1.AllowUserToAddRows          = false;
     this.dataGridView1.AllowUserToDeleteRows       = false;
     this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
     this.dataGridView1.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.dataGridView1.Location = new System.Drawing.Point(3, 3);
     this.dataGridView1.Name     = "dataGridView1";
     this.dataGridView1.Size     = new System.Drawing.Size(732, 624);
     this.dataGridView1.TabIndex = 0;
     //
     // tabPage_script
     //
     this.tabPage_script.Controls.Add(this.splitContainer3);
     this.tabPage_script.Location = new System.Drawing.Point(4, 22);
     this.tabPage_script.Name     = "tabPage_script";
     this.tabPage_script.Padding  = new System.Windows.Forms.Padding(3);
     this.tabPage_script.Size     = new System.Drawing.Size(738, 628);
     this.tabPage_script.TabIndex = 1;
     this.tabPage_script.Text     = "Script Preview";
     this.tabPage_script.UseVisualStyleBackColor = true;
     //
     // splitContainer3
     //
     this.splitContainer3.Dock        = System.Windows.Forms.DockStyle.Fill;
     this.splitContainer3.Location    = new System.Drawing.Point(3, 3);
     this.splitContainer3.Name        = "splitContainer3";
     this.splitContainer3.Orientation = System.Windows.Forms.Orientation.Horizontal;
     //
     // splitContainer3.Panel1
     //
     this.splitContainer3.Panel1.Controls.Add(this.syntaxEditor1);
     //
     // splitContainer3.Panel2
     //
     this.splitContainer3.Panel2.Controls.Add(this.syntaxEditor2);
     this.splitContainer3.Size             = new System.Drawing.Size(732, 622);
     this.splitContainer3.SplitterDistance = 243;
     this.splitContainer3.TabIndex         = 1;
     //
     // syntaxEditor1
     //
     this.syntaxEditor1.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.syntaxEditor1.Document = document7;
     this.syntaxEditor1.LineNumberMarginVisible = true;
     this.syntaxEditor1.Location = new System.Drawing.Point(0, 0);
     this.syntaxEditor1.Name     = "syntaxEditor1";
     this.syntaxEditor1.Size     = new System.Drawing.Size(732, 243);
     this.syntaxEditor1.TabIndex = 0;
     //
     // syntaxEditor2
     //
     this.syntaxEditor2.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.syntaxEditor2.Document = document8;
     this.syntaxEditor2.LineNumberMarginVisible = true;
     this.syntaxEditor2.Location = new System.Drawing.Point(0, 0);
     this.syntaxEditor2.Name     = "syntaxEditor2";
     this.syntaxEditor2.Size     = new System.Drawing.Size(732, 375);
     this.syntaxEditor2.TabIndex = 1;
     //
     // tabPage_progress
     //
     this.tabPage_progress.Controls.Add(this.dataGridView2);
     this.tabPage_progress.Location = new System.Drawing.Point(4, 22);
     this.tabPage_progress.Name     = "tabPage_progress";
     this.tabPage_progress.Size     = new System.Drawing.Size(738, 628);
     this.tabPage_progress.TabIndex = 2;
     this.tabPage_progress.Text     = "Progress";
     this.tabPage_progress.UseVisualStyleBackColor = true;
     //
     // dataGridView2
     //
     this.dataGridView2.AllowUserToAddRows          = false;
     this.dataGridView2.AllowUserToDeleteRows       = false;
     this.dataGridView2.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
     this.dataGridView2.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.dataGridView2.Location = new System.Drawing.Point(0, 0);
     this.dataGridView2.Name     = "dataGridView2";
     this.dataGridView2.ReadOnly = true;
     this.dataGridView2.Size     = new System.Drawing.Size(738, 628);
     this.dataGridView2.TabIndex = 0;
     //
     // splitContainer2
     //
     this.splitContainer2.Dock        = System.Windows.Forms.DockStyle.Fill;
     this.splitContainer2.Location    = new System.Drawing.Point(0, 0);
     this.splitContainer2.Name        = "splitContainer2";
     this.splitContainer2.Orientation = System.Windows.Forms.Orientation.Horizontal;
     //
     // splitContainer2.Panel1
     //
     this.splitContainer2.Panel1.Controls.Add(this.btn_delete_profile);
     this.splitContainer2.Panel1.Controls.Add(this.btn_new_profile);
     this.splitContainer2.Panel1.Controls.Add(this.label3);
     this.splitContainer2.Panel1.Controls.Add(this.label2);
     this.splitContainer2.Panel1.Controls.Add(this.cmb_profiles);
     this.splitContainer2.Panel1.Controls.Add(this.cmb_target_server);
     this.splitContainer2.Panel1.Controls.Add(this.btn_start);
     //
     // splitContainer2.Panel2
     //
     this.splitContainer2.Panel2.Controls.Add(this.propertyGrid1);
     this.splitContainer2.Size             = new System.Drawing.Size(460, 656);
     this.splitContainer2.SplitterDistance = 204;
     this.splitContainer2.TabIndex         = 4;
     //
     // btn_delete_profile
     //
     this.btn_delete_profile.Location = new System.Drawing.Point(373, 39);
     this.btn_delete_profile.Name     = "btn_delete_profile";
     this.btn_delete_profile.Size     = new System.Drawing.Size(75, 23);
     this.btn_delete_profile.TabIndex = 6;
     this.btn_delete_profile.Text     = "Delete";
     this.btn_delete_profile.UseVisualStyleBackColor = true;
     this.btn_delete_profile.Click += new System.EventHandler(this.btn_delete_profile_Click);
     //
     // btn_new_profile
     //
     this.btn_new_profile.Location = new System.Drawing.Point(291, 39);
     this.btn_new_profile.Name     = "btn_new_profile";
     this.btn_new_profile.Size     = new System.Drawing.Size(75, 23);
     this.btn_new_profile.TabIndex = 5;
     this.btn_new_profile.Text     = "New Profile";
     this.btn_new_profile.UseVisualStyleBackColor = true;
     this.btn_new_profile.Click += new System.EventHandler(this.btn_new_profile_Click);
     //
     // label2
     //
     this.label2.AutoSize = true;
     this.label2.Location = new System.Drawing.Point(14, 25);
     this.label2.Name     = "label2";
     this.label2.Size     = new System.Drawing.Size(82, 13);
     this.label2.TabIndex = 4;
     this.label2.Text     = "Migration Profile";
     //
     // cmb_profiles
     //
     this.cmb_profiles.FormattingEnabled = true;
     this.cmb_profiles.Location          = new System.Drawing.Point(17, 41);
     this.cmb_profiles.Name                  = "cmb_profiles";
     this.cmb_profiles.Size                  = new System.Drawing.Size(242, 21);
     this.cmb_profiles.TabIndex              = 3;
     this.cmb_profiles.SelectedIndexChanged += new System.EventHandler(this.cmb_profiles_SelectedIndexChanged);
     //
     // cmb_target_server
     //
     this.cmb_target_server.FormattingEnabled = true;
     this.cmb_target_server.Location          = new System.Drawing.Point(17, 107);
     this.cmb_target_server.Name     = "cmb_target_server";
     this.cmb_target_server.Size     = new System.Drawing.Size(242, 21);
     this.cmb_target_server.TabIndex = 1;
     //
     // btn_start
     //
     this.btn_start.Location = new System.Drawing.Point(291, 105);
     this.btn_start.Name     = "btn_start";
     this.btn_start.Size     = new System.Drawing.Size(157, 23);
     this.btn_start.TabIndex = 2;
     this.btn_start.Text     = "Start Migration";
     this.btn_start.UseVisualStyleBackColor = true;
     this.btn_start.Click += new System.EventHandler(this.btn_start_Click);
     //
     // propertyGrid1
     //
     this.propertyGrid1.Dock      = System.Windows.Forms.DockStyle.Fill;
     this.propertyGrid1.LineColor = System.Drawing.SystemColors.ControlDark;
     this.propertyGrid1.Location  = new System.Drawing.Point(0, 0);
     this.propertyGrid1.Name      = "propertyGrid1";
     this.propertyGrid1.Size      = new System.Drawing.Size(460, 448);
     this.propertyGrid1.TabIndex  = 3;
     //
     // label1
     //
     this.label1.AutoSize = true;
     this.label1.Location = new System.Drawing.Point(14, 16);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(72, 13);
     this.label1.TabIndex = 0;
     this.label1.Text     = "Target Server";
     //
     // toolStripContainer1
     //
     //
     // toolStripContainer1.ContentPanel
     //
     this.toolStripContainer1.ContentPanel.Controls.Add(this.splitContainer1);
     this.toolStripContainer1.ContentPanel.Size = new System.Drawing.Size(1210, 656);
     this.toolStripContainer1.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.toolStripContainer1.Location = new System.Drawing.Point(0, 0);
     this.toolStripContainer1.Name     = "toolStripContainer1";
     this.toolStripContainer1.Size     = new System.Drawing.Size(1210, 681);
     this.toolStripContainer1.TabIndex = 0;
     this.toolStripContainer1.Text     = "toolStripContainer1";
     //
     // toolStripContainer1.TopToolStripPanel
     //
     this.toolStripContainer1.TopToolStripPanel.Controls.Add(this.toolStrip1);
     //
     // toolStrip1
     //
     this.toolStrip1.Dock = System.Windows.Forms.DockStyle.None;
     this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.toolStripLabel1,
         this.cmb_structure_sources,
         this.btn_save
     });
     this.toolStrip1.Location = new System.Drawing.Point(3, 0);
     this.toolStrip1.Name     = "toolStrip1";
     this.toolStrip1.Size     = new System.Drawing.Size(292, 25);
     this.toolStrip1.TabIndex = 0;
     //
     // toolStripLabel1
     //
     this.toolStripLabel1.Name = "toolStripLabel1";
     this.toolStripLabel1.Size = new System.Drawing.Size(89, 22);
     this.toolStripLabel1.Text = "Set Data Source";
     //
     // cmb_structure_sources
     //
     this.cmb_structure_sources.Name = "cmb_structure_sources";
     this.cmb_structure_sources.Size = new System.Drawing.Size(121, 25);
     this.cmb_structure_sources.SelectedIndexChanged += new System.EventHandler(this.cmb_structure_sources_SelectedIndexChanged);
     //
     // btn_save
     //
     this.btn_save.Image = ((System.Drawing.Image)(resources.GetObject("btn_save.Image")));
     this.btn_save.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.btn_save.Name   = "btn_save";
     this.btn_save.Size   = new System.Drawing.Size(68, 22);
     this.btn_save.Text   = "Save All";
     this.btn_save.Click += new System.EventHandler(this.btn_save_Click);
     //
     // label3
     //
     this.label3.AutoSize = true;
     this.label3.Location = new System.Drawing.Point(14, 91);
     this.label3.Name     = "label3";
     this.label3.Size     = new System.Drawing.Size(84, 13);
     this.label3.TabIndex = 4;
     this.label3.Text     = "Migration Target";
     //
     // Migration
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize          = new System.Drawing.Size(1210, 681);
     this.Controls.Add(this.toolStripContainer1);
     this.Name = "Migration";
     this.Text = "Migration";
     this.splitContainer1.Panel1.ResumeLayout(false);
     this.splitContainer1.Panel2.ResumeLayout(false);
     this.splitContainer1.Panel2.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit();
     this.splitContainer1.ResumeLayout(false);
     this.tabControl1.ResumeLayout(false);
     this.tabPage_rules.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
     this.tabPage_script.ResumeLayout(false);
     this.splitContainer3.Panel1.ResumeLayout(false);
     this.splitContainer3.Panel2.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.splitContainer3)).EndInit();
     this.splitContainer3.ResumeLayout(false);
     this.tabPage_progress.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.dataGridView2)).EndInit();
     this.splitContainer2.Panel1.ResumeLayout(false);
     this.splitContainer2.Panel1.PerformLayout();
     this.splitContainer2.Panel2.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).EndInit();
     this.splitContainer2.ResumeLayout(false);
     this.toolStripContainer1.ContentPanel.ResumeLayout(false);
     this.toolStripContainer1.TopToolStripPanel.ResumeLayout(false);
     this.toolStripContainer1.TopToolStripPanel.PerformLayout();
     this.toolStripContainer1.ResumeLayout(false);
     this.toolStripContainer1.PerformLayout();
     this.toolStrip1.ResumeLayout(false);
     this.toolStrip1.PerformLayout();
     this.ResumeLayout(false);
 }
Exemplo n.º 8
0
 /// <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();
     ActiproSoftware.SyntaxEditor.Document document1 = new ActiproSoftware.SyntaxEditor.Document();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(UCEditor));
     this.txtEditor = new ActiproSoftware.SyntaxEditor.SyntaxEditor();
     this.ctxEditor = new System.Windows.Forms.ContextMenuStrip(this.components);
     this.mnuCt_Cut = new System.Windows.Forms.ToolStripMenuItem();
     this.mnuCt_Copy = new System.Windows.Forms.ToolStripMenuItem();
     this.mnuCt_Paste = new System.Windows.Forms.ToolStripMenuItem();
     this.toolStripMenuItem1 = new System.Windows.Forms.ToolStripSeparator();
     this.mnuCt_GoToDef = new System.Windows.Forms.ToolStripMenuItem();
     this.mnuCt_CommentSel = new System.Windows.Forms.ToolStripMenuItem();
     this.mnuCt_UncommentSel = new System.Windows.Forms.ToolStripMenuItem();
     this.toolStripMenuItem2 = new System.Windows.Forms.ToolStripSeparator();
     this.mnuCt_ToggleBreak = new System.Windows.Forms.ToolStripMenuItem();
     this.mnuCt_BreakProps = new System.Windows.Forms.ToolStripMenuItem();
     this.toolStripMenuItem3 = new System.Windows.Forms.ToolStripSeparator();
     this.mnuCt_Reference = new System.Windows.Forms.ToolStripMenuItem();
     this.ilMainMenu = new System.Windows.Forms.ImageList(this.components);
     this.ilToolbar = new System.Windows.Forms.ImageList(this.components);
     this.sbMain = new System.Windows.Forms.StatusBar();
     this.sbpRow = new System.Windows.Forms.StatusBarPanel();
     this.sbpCol = new System.Windows.Forms.StatusBarPanel();
     this.sbpTextInfo = new System.Windows.Forms.StatusBarPanel();
     this.sbpSelection = new System.Windows.Forms.StatusBarPanel();
     this.sbpFileName = new System.Windows.Forms.StatusBarPanel();
     this.tmrPosNotify = new System.Windows.Forms.Timer(this.components);
     this.tmrErrorMonitor = new System.Windows.Forms.Timer(this.components);
     this.tmrFileWatcher = new System.Windows.Forms.Timer(this.components);
     this.cboCurFileFuncs = new TSDev.ComboBoxEx();
     this.pnlFileChanged = new System.Windows.Forms.Panel();
     this.lnkCancelReload = new System.Windows.Forms.LinkLabel();
     this.lnkReloadContents = new System.Windows.Forms.LinkLabel();
     this.label1 = new System.Windows.Forms.Label();
     this.ctxEditor.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.sbpRow)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.sbpCol)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.sbpTextInfo)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.sbpSelection)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.sbpFileName)).BeginInit();
     this.pnlFileChanged.SuspendLayout();
     this.SuspendLayout();
     //
     // txtEditor
     //
     this.txtEditor.AllowDrop = true;
     this.txtEditor.BracketHighlightBackColor = System.Drawing.Color.Aqua;
     this.txtEditor.BracketHighlightBorderColor = System.Drawing.Color.Transparent;
     this.txtEditor.BracketHighlightForeColor = System.Drawing.Color.Black;
     this.txtEditor.BracketHighlightingInclusive = true;
     this.txtEditor.BracketHighlightingVisible = true;
     this.txtEditor.ContextMenuStrip = this.ctxEditor;
     this.txtEditor.DefaultContextMenuEnabled = false;
     this.txtEditor.Dock = System.Windows.Forms.DockStyle.Fill;
     this.txtEditor.Document = document1;
     this.txtEditor.LineNumberMarginBorderColor = System.Drawing.Color.Gainsboro;
     this.txtEditor.LineNumberMarginForeColor = System.Drawing.Color.DarkGray;
     this.txtEditor.LineNumberMarginVisible = true;
     this.txtEditor.Location = new System.Drawing.Point(0, 45);
     this.txtEditor.Name = "txtEditor";
     this.txtEditor.PrintSettings.DocumentTitle = "netMercs TSDev - torque.netmercs.net";
     this.txtEditor.PrintSettings.LineNumberMarginVisible = true;
     this.txtEditor.Size = new System.Drawing.Size(704, 418);
     this.txtEditor.TabIndex = 0;
     this.txtEditor.UnicodeEnabled = true;
     this.txtEditor.WordWrapGlyphVisible = true;
     this.txtEditor.WordWrapMarginBorderDashStyle = System.Drawing.Drawing2D.DashStyle.DashDot;
     this.txtEditor.KeyTyped += new ActiproSoftware.SyntaxEditor.KeyTypedEventHandler(this.txtEditor_KeyTyped);
     this.txtEditor.TextChanged += new System.EventHandler(this.txtEditor_TextChanged);
     this.txtEditor.DocumentTextChanged += new ActiproSoftware.SyntaxEditor.DocumentModificationEventHandler(this.txtEditor_DocumentTextChanged);
     this.txtEditor.KeyTyping += new ActiproSoftware.SyntaxEditor.KeyTypingEventHandler(this.txtEditor_KeyTyping);
     this.txtEditor.TokenMouseHover += new ActiproSoftware.SyntaxEditor.TokenMouseEventHandler(this.txtEditor_TokenMouseHover);
     this.txtEditor.SmartIndent += new ActiproSoftware.SyntaxEditor.SmartIndentEventHandler(this.txtEditor_SmartIndent);
     this.txtEditor.TokenMouseLeave += new ActiproSoftware.SyntaxEditor.TokenMouseEventHandler(this.txtEditor_TokenMouseLeave);
     this.txtEditor.DocumentIndicatorRemoved += new ActiproSoftware.SyntaxEditor.IndicatorEventHandler(this.txtEditor_DocumentIndicatorRemoved);
     this.txtEditor.IndicatorMarginClick += new ActiproSoftware.SyntaxEditor.IndicatorMarginClickEventHandler(this.txtEditor_IndicatorMarginClick);
     this.txtEditor.KeyDown += new System.Windows.Forms.KeyEventHandler(this.txtEditor_KeyDown);
     this.txtEditor.TokenMouseEnter += new ActiproSoftware.SyntaxEditor.TokenMouseEventHandler(this.txtEditor_TokenMouseEnter);
     this.txtEditor.DocumentIndicatorAdded += new ActiproSoftware.SyntaxEditor.IndicatorEventHandler(this.txtEditor_DocumentIndicatorAdded);
     this.txtEditor.Trigger += new ActiproSoftware.SyntaxEditor.TriggerEventHandler(this.txtEditor_Trigger);
     //
     // ctxEditor
     //
     this.ctxEditor.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
     this.mnuCt_Cut,
     this.mnuCt_Copy,
     this.mnuCt_Paste,
     this.toolStripMenuItem1,
     this.mnuCt_GoToDef,
     this.mnuCt_CommentSel,
     this.mnuCt_UncommentSel,
     this.toolStripMenuItem2,
     this.mnuCt_ToggleBreak,
     this.mnuCt_BreakProps,
     this.toolStripMenuItem3,
     this.mnuCt_Reference});
     this.ctxEditor.Name = "ctxEditor";
     this.ctxEditor.Size = new System.Drawing.Size(190, 220);
     this.ctxEditor.Opening += new System.ComponentModel.CancelEventHandler(this.ctxEditor_Opening);
     //
     // mnuCt_Cut
     //
     this.mnuCt_Cut.Image = global::TSDev.Properties.Resources.cut;
     this.mnuCt_Cut.Name = "mnuCt_Cut";
     this.mnuCt_Cut.Size = new System.Drawing.Size(189, 22);
     this.mnuCt_Cut.Text = "&Cut";
     this.mnuCt_Cut.Click += new System.EventHandler(this.mnuCt_Cut_Click);
     //
     // mnuCt_Copy
     //
     this.mnuCt_Copy.Image = global::TSDev.Properties.Resources.copy;
     this.mnuCt_Copy.Name = "mnuCt_Copy";
     this.mnuCt_Copy.Size = new System.Drawing.Size(189, 22);
     this.mnuCt_Copy.Text = "C&opy";
     this.mnuCt_Copy.Click += new System.EventHandler(this.mnuCt_Copy_Click);
     //
     // mnuCt_Paste
     //
     this.mnuCt_Paste.Image = global::TSDev.Properties.Resources.paste;
     this.mnuCt_Paste.Name = "mnuCt_Paste";
     this.mnuCt_Paste.Size = new System.Drawing.Size(189, 22);
     this.mnuCt_Paste.Text = "&Paste";
     this.mnuCt_Paste.Click += new System.EventHandler(this.mnuCt_Paste_Click);
     //
     // toolStripMenuItem1
     //
     this.toolStripMenuItem1.Name = "toolStripMenuItem1";
     this.toolStripMenuItem1.Size = new System.Drawing.Size(186, 6);
     //
     // mnuCt_GoToDef
     //
     this.mnuCt_GoToDef.Image = global::TSDev.Properties.Resources.arrow_right_blue;
     this.mnuCt_GoToDef.Name = "mnuCt_GoToDef";
     this.mnuCt_GoToDef.Size = new System.Drawing.Size(189, 22);
     this.mnuCt_GoToDef.Text = "&Go to Definition...";
     this.mnuCt_GoToDef.Click += new System.EventHandler(this.mnuCt_GoToDef_Click);
     //
     // mnuCt_CommentSel
     //
     this.mnuCt_CommentSel.Name = "mnuCt_CommentSel";
     this.mnuCt_CommentSel.Size = new System.Drawing.Size(189, 22);
     this.mnuCt_CommentSel.Text = "&Comment Selection";
     this.mnuCt_CommentSel.Click += new System.EventHandler(this.mnuCt_CommentSel_Click);
     //
     // mnuCt_UncommentSel
     //
     this.mnuCt_UncommentSel.Name = "mnuCt_UncommentSel";
     this.mnuCt_UncommentSel.Size = new System.Drawing.Size(189, 22);
     this.mnuCt_UncommentSel.Text = "&Uncomment Selection";
     this.mnuCt_UncommentSel.Click += new System.EventHandler(this.mnuCt_UncommentSel_Click);
     //
     // toolStripMenuItem2
     //
     this.toolStripMenuItem2.Name = "toolStripMenuItem2";
     this.toolStripMenuItem2.Size = new System.Drawing.Size(186, 6);
     //
     // mnuCt_ToggleBreak
     //
     this.mnuCt_ToggleBreak.Image = global::TSDev.Properties.Resources.stop;
     this.mnuCt_ToggleBreak.Name = "mnuCt_ToggleBreak";
     this.mnuCt_ToggleBreak.Size = new System.Drawing.Size(189, 22);
     this.mnuCt_ToggleBreak.Text = "&Toggle Breakpoint";
     this.mnuCt_ToggleBreak.Click += new System.EventHandler(this.mnuCt_ToggleBreak_Click);
     //
     // mnuCt_BreakProps
     //
     this.mnuCt_BreakProps.Name = "mnuCt_BreakProps";
     this.mnuCt_BreakProps.Size = new System.Drawing.Size(189, 22);
     this.mnuCt_BreakProps.Text = "Brea&kpoint Properties...";
     this.mnuCt_BreakProps.Click += new System.EventHandler(this.mnuCt_BreakProps_Click);
     //
     // toolStripMenuItem3
     //
     this.toolStripMenuItem3.Name = "toolStripMenuItem3";
     this.toolStripMenuItem3.Size = new System.Drawing.Size(186, 6);
     //
     // mnuCt_Reference
     //
     this.mnuCt_Reference.Image = global::TSDev.Properties.Resources.unknown;
     this.mnuCt_Reference.Name = "mnuCt_Reference";
     this.mnuCt_Reference.Size = new System.Drawing.Size(189, 22);
     this.mnuCt_Reference.Text = "&Reference...";
     this.mnuCt_Reference.Click += new System.EventHandler(this.mnuCt_Reference_Click);
     //
     // ilMainMenu
     //
     this.ilMainMenu.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("ilMainMenu.ImageStream")));
     this.ilMainMenu.TransparentColor = System.Drawing.Color.Transparent;
     this.ilMainMenu.Images.SetKeyName(0, "");
     this.ilMainMenu.Images.SetKeyName(1, "Assembly.ico");
     this.ilMainMenu.Images.SetKeyName(2, "PublicEvent.ico");
     //
     // ilToolbar
     //
     this.ilToolbar.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("ilToolbar.ImageStream")));
     this.ilToolbar.TransparentColor = System.Drawing.Color.Transparent;
     this.ilToolbar.Images.SetKeyName(0, "");
     this.ilToolbar.Images.SetKeyName(1, "");
     this.ilToolbar.Images.SetKeyName(2, "");
     this.ilToolbar.Images.SetKeyName(3, "");
     this.ilToolbar.Images.SetKeyName(4, "");
     this.ilToolbar.Images.SetKeyName(5, "");
     this.ilToolbar.Images.SetKeyName(6, "");
     this.ilToolbar.Images.SetKeyName(7, "");
     this.ilToolbar.Images.SetKeyName(8, "");
     this.ilToolbar.Images.SetKeyName(9, "");
     this.ilToolbar.Images.SetKeyName(10, "");
     this.ilToolbar.Images.SetKeyName(11, "");
     this.ilToolbar.Images.SetKeyName(12, "");
     this.ilToolbar.Images.SetKeyName(13, "");
     this.ilToolbar.Images.SetKeyName(14, "");
     this.ilToolbar.Images.SetKeyName(15, "");
     this.ilToolbar.Images.SetKeyName(16, "");
     this.ilToolbar.Images.SetKeyName(17, "");
     this.ilToolbar.Images.SetKeyName(18, "");
     this.ilToolbar.Images.SetKeyName(19, "");
     //
     // sbMain
     //
     this.sbMain.Font = new System.Drawing.Font("Arial", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.sbMain.Location = new System.Drawing.Point(0, 463);
     this.sbMain.Name = "sbMain";
     this.sbMain.Panels.AddRange(new System.Windows.Forms.StatusBarPanel[] {
     this.sbpRow,
     this.sbpCol,
     this.sbpTextInfo,
     this.sbpSelection,
     this.sbpFileName});
     this.sbMain.ShowPanels = true;
     this.sbMain.Size = new System.Drawing.Size(704, 22);
     this.sbMain.TabIndex = 2;
     this.sbMain.Visible = false;
     //
     // sbpRow
     //
     this.sbpRow.AutoSize = System.Windows.Forms.StatusBarPanelAutoSize.Spring;
     this.sbpRow.Icon = ((System.Drawing.Icon)(resources.GetObject("sbpRow.Icon")));
     this.sbpRow.Name = "sbpRow";
     this.sbpRow.Text = "0";
     this.sbpRow.Width = 169;
     //
     // sbpCol
     //
     this.sbpCol.AutoSize = System.Windows.Forms.StatusBarPanelAutoSize.Spring;
     this.sbpCol.Icon = ((System.Drawing.Icon)(resources.GetObject("sbpCol.Icon")));
     this.sbpCol.Name = "sbpCol";
     this.sbpCol.Text = "0";
     this.sbpCol.Width = 169;
     //
     // sbpTextInfo
     //
     this.sbpTextInfo.AutoSize = System.Windows.Forms.StatusBarPanelAutoSize.Spring;
     this.sbpTextInfo.Icon = ((System.Drawing.Icon)(resources.GetObject("sbpTextInfo.Icon")));
     this.sbpTextInfo.Name = "sbpTextInfo";
     this.sbpTextInfo.Text = "N/A";
     this.sbpTextInfo.Width = 169;
     //
     // sbpSelection
     //
     this.sbpSelection.AutoSize = System.Windows.Forms.StatusBarPanelAutoSize.Spring;
     this.sbpSelection.Icon = ((System.Drawing.Icon)(resources.GetObject("sbpSelection.Icon")));
     this.sbpSelection.Name = "sbpSelection";
     this.sbpSelection.Text = "N/A";
     this.sbpSelection.Width = 169;
     //
     // sbpFileName
     //
     this.sbpFileName.AutoSize = System.Windows.Forms.StatusBarPanelAutoSize.Contents;
     this.sbpFileName.Name = "sbpFileName";
     this.sbpFileName.Width = 10;
     //
     // tmrPosNotify
     //
     this.tmrPosNotify.Interval = 10;
     this.tmrPosNotify.Tick += new System.EventHandler(this.tmrPosNotify_Tick);
     //
     // tmrErrorMonitor
     //
     this.tmrErrorMonitor.Enabled = true;
     this.tmrErrorMonitor.Interval = 1500;
     this.tmrErrorMonitor.Tick += new System.EventHandler(this.tmrErrorMonitor_Tick);
     //
     // tmrFileWatcher
     //
     this.tmrFileWatcher.Interval = 1000;
     this.tmrFileWatcher.Tick += new System.EventHandler(this.tmrFileWatcher_Tick);
     //
     // cboCurFileFuncs
     //
     this.cboCurFileFuncs.Dock = System.Windows.Forms.DockStyle.Top;
     this.cboCurFileFuncs.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed;
     this.cboCurFileFuncs.DropDownHeight = 500;
     this.cboCurFileFuncs.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.cboCurFileFuncs.Font = new System.Drawing.Font("Arial", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.cboCurFileFuncs.ImageList = this.ilMainMenu;
     this.cboCurFileFuncs.IntegralHeight = false;
     this.cboCurFileFuncs.ItemHeight = 15;
     this.cboCurFileFuncs.Location = new System.Drawing.Point(0, 24);
     this.cboCurFileFuncs.Name = "cboCurFileFuncs";
     this.cboCurFileFuncs.Size = new System.Drawing.Size(704, 21);
     this.cboCurFileFuncs.Sorted = true;
     this.cboCurFileFuncs.TabIndex = 4;
     this.cboCurFileFuncs.SelectedIndexChanged += new System.EventHandler(this.cboCurFileFuncs_SelectedIndexChanged);
     //
     // pnlFileChanged
     //
     this.pnlFileChanged.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
     this.pnlFileChanged.Controls.Add(this.lnkCancelReload);
     this.pnlFileChanged.Controls.Add(this.lnkReloadContents);
     this.pnlFileChanged.Controls.Add(this.label1);
     this.pnlFileChanged.Dock = System.Windows.Forms.DockStyle.Top;
     this.pnlFileChanged.Location = new System.Drawing.Point(0, 0);
     this.pnlFileChanged.Name = "pnlFileChanged";
     this.pnlFileChanged.Size = new System.Drawing.Size(704, 24);
     this.pnlFileChanged.TabIndex = 5;
     this.pnlFileChanged.Visible = false;
     //
     // lnkCancelReload
     //
     this.lnkCancelReload.AutoSize = true;
     this.lnkCancelReload.Location = new System.Drawing.Point(395, 6);
     this.lnkCancelReload.Name = "lnkCancelReload";
     this.lnkCancelReload.Size = new System.Drawing.Size(40, 13);
     this.lnkCancelReload.TabIndex = 1;
     this.lnkCancelReload.TabStop = true;
     this.lnkCancelReload.Text = "Cancel";
     this.lnkCancelReload.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.lnkCancelReload_LinkClicked);
     //
     // lnkReloadContents
     //
     this.lnkReloadContents.AutoSize = true;
     this.lnkReloadContents.Location = new System.Drawing.Point(348, 6);
     this.lnkReloadContents.Name = "lnkReloadContents";
     this.lnkReloadContents.Size = new System.Drawing.Size(41, 13);
     this.lnkReloadContents.TabIndex = 1;
     this.lnkReloadContents.TabStop = true;
     this.lnkReloadContents.Text = "Reload";
     this.lnkReloadContents.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.lnkReloadContents_LinkClicked);
     //
     // label1
     //
     this.label1.AutoSize = true;
     this.label1.Font = new System.Drawing.Font("Arial", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label1.Location = new System.Drawing.Point(3, 6);
     this.label1.Name = "label1";
     this.label1.Size = new System.Drawing.Size(339, 14);
     this.label1.TabIndex = 0;
     this.label1.Text = "The contents of this file have changed outside of this editor:";
     //
     // UCEditor
     //
     this.Controls.Add(this.txtEditor);
     this.Controls.Add(this.cboCurFileFuncs);
     this.Controls.Add(this.pnlFileChanged);
     this.Controls.Add(this.sbMain);
     this.Name = "UCEditor";
     this.Size = new System.Drawing.Size(704, 485);
     this.Tag = "";
     this.Load += new System.EventHandler(this.frmEditor_Load);
     this.ctxEditor.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.sbpRow)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.sbpCol)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.sbpTextInfo)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.sbpSelection)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.sbpFileName)).EndInit();
     this.pnlFileChanged.ResumeLayout(false);
     this.pnlFileChanged.PerformLayout();
     this.ResumeLayout(false);
 }
Exemplo n.º 9
0
        internal static Parameter GetParameterFromParameterDeclaration(Document document, Controller controller, ParameterDeclaration node)
        {
            Parameter param = new Parameter(controller);
            param.Name = node.Name;
            param.Modifiers.AddRange(FormatterUtility.GetModifiersFromEnum(node.Modifiers));
            param.DataType = FormatterUtility.GetDataTypeFromTypeReference(node.ParameterType, document, controller).ToString();
            param.Index = node.StartOffset;

            return param;
        }
Exemplo n.º 10
0
        /// <summary>
        /// Parses the given code asynchronously and creates a VB.Net CodeRoot from it.
        /// </summary>
        /// <param name="filename">The name of the file being parsed. Informational use only.</param>
        /// <param name="code">The code to parse</param>
        /// <returns>A WaitHandle that will be signalled when the code is parsed and 
        /// the CodeRoot is ready for use.</returns>
        public WaitHandle ParseCodeAsync(string filename, string code)
        {
            Reset();
            parseWaitHandle.Reset();
            parseFinished = false;
            parserGuid = Guid.NewGuid();

            ISemanticParserServiceProcessor language = new VBSyntaxLanguage();
            // This is needed because the Actipro parser calculates the text offsets of parsed elements
            // by using /r/n for line breaks (on my windows machine) even if the original text had a /r or /n.
            // This manifests itself as a bunch of wierd Expressions, all type names, some variable names, and
            // various other elements will have completely the wrong text. The number of characters in the final
            // output is correct though.
            document = new Document();
            document.Text = Helper.StandardizeLineBreaks(code, Helper.LineBreaks.Windows);

            if (SemanticParserService.IsRunning == false)
                SemanticParserService.Start();
            else if (SemanticParserService.IsBusy)
            {
                SemanticParserService.Stop();
                SemanticParserService.Start();
            }
            // Make a request to the parser service (runs in a separate thread).
            SemanticParserServiceRequest request = new SemanticParserServiceRequest(
                SemanticParserServiceRequest.MediumPriority,
                document,
                new ActiproSoftware.SyntaxEditor.TextRange(0, document.Length),
                SemanticParseFlags.None,
                language,
                this
                );
            SemanticParserService.Parse(request);

            return parseWaitHandle;
        }