private void InitializeComponent() { ComponentResourceManager manager = new ComponentResourceManager(typeof(frmCommErrorView)); this.rtbDisplay_ErrorView = new CommonClass.MyRichTextBox(); base.SuspendLayout(); this.rtbDisplay_ErrorView.BackColor = SystemColors.Window; this.rtbDisplay_ErrorView.Dock = DockStyle.Fill; this.rtbDisplay_ErrorView.Location = new Point(0, 0); this.rtbDisplay_ErrorView.Name = "rtbDisplay_ErrorView"; this.rtbDisplay_ErrorView.ReadOnly = true; this.rtbDisplay_ErrorView.Size = new Size(0x16c, 0x10f); this.rtbDisplay_ErrorView.TabIndex = 2; this.rtbDisplay_ErrorView.Text = ""; this.rtbDisplay_ErrorView.DoubleClick += new EventHandler(this.rtbDisplay_ErrorView_DoubleClick); base.AutoScaleDimensions = new SizeF(6f, 13f); base.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; base.ClientSize = new Size(0x16c, 0x10f); base.Controls.Add(this.rtbDisplay_ErrorView); base.Icon = (Icon)manager.GetObject("$this.Icon"); base.Name = "frmCommErrorView"; base.ShowInTaskbar = false; base.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide; base.StartPosition = FormStartPosition.Manual; this.Text = "Error View"; base.Load += new EventHandler(this.frmCommErrorView_Load); base.LocationChanged += new EventHandler(this.frmCommErrorView_LocationChanged); base.ResizeEnd += new EventHandler(this.frmCommErrorView_ResizeEnd); base.ResumeLayout(false); }
public frmCommMessageFilter() { this.InitializeComponent(); this._displayWindow = this.rtbDisplay; this._count = 0; this.frmCommMessageFilterOccurrence.Text = this._count.ToString(); _numberOpen++; this._persistedWindowName = "Message Filter Window " + _numberOpen.ToString(); base.MdiParent = clsGlobal.g_objfrmMDIMain; }
private void InitializeComponent() { this.components = new Container(); ComponentResourceManager manager = new ComponentResourceManager(typeof(frmCommMessageFilter)); this.MessageFilterGroupBox = new GroupBox(); this.rtbDisplay = new CommonClass.MyRichTextBox(); this.Column1 = new DataGridViewTextBoxColumn(); this.frmMessageFilterMsgIdTxtBox = new TextBox(); this.frmMessageFilterMsgIdLabel = new Label(); this.frmMessageFilterMatchChkBox = new CheckBox(); this.frmMessageFilterRegExpressionTxtBox = new TextBox(); this.frmCommMessageFilterOccurrence = new Label(); this.menuStrip1 = new MenuStrip(); this.actionToolStripMenuItem = new ToolStripMenuItem(); this.startToolStripMenuItem = new ToolStripMenuItem(); this.pauseToolStripMenuItem = new ToolStripMenuItem(); this.stopToolStripMenuItem = new ToolStripMenuItem(); this.exitToolStripMenuItem = new ToolStripMenuItem(); this.viewModeToolStripMenuItem = new ToolStripMenuItem(); this.viewModeToolStripMenuItem1 = new ToolStripMenuItem(); this.hexToolStripMenuItem = new ToolStripMenuItem(); this.aSCIIToolStripMenuItem = new ToolStripMenuItem(); this.sSBToolStripMenuItem = new ToolStripMenuItem(); this.gP2ToolStripMenuItem = new ToolStripMenuItem(); this.cSVToolStripMenuItem = new ToolStripMenuItem(); this.statusStrip1 = new StatusStrip(); this.frmMessageFilterStatusLabel = new ToolStripStatusLabel(); this.toolTip1 = new ToolTip(this.components); this.toolTip2 = new ToolTip(this.components); this.MessageFilterGroupBox.SuspendLayout(); this.menuStrip1.SuspendLayout(); this.statusStrip1.SuspendLayout(); base.SuspendLayout(); this.MessageFilterGroupBox.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Bottom | AnchorStyles.Top; this.MessageFilterGroupBox.Controls.Add(this.rtbDisplay); this.MessageFilterGroupBox.Location = new Point(0x16, 0x8e); this.MessageFilterGroupBox.Name = "MessageFilterGroupBox"; this.MessageFilterGroupBox.Size = new Size(0x2e6, 0x160); this.MessageFilterGroupBox.TabIndex = 6; this.MessageFilterGroupBox.TabStop = false; this.MessageFilterGroupBox.Text = "Message Filter"; this.rtbDisplay.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Bottom | AnchorStyles.Top; this.rtbDisplay.BackColor = SystemColors.ControlLightLight; this.rtbDisplay.Location = new Point(6, 0x13); this.rtbDisplay.Name = "rtbDisplay"; this.rtbDisplay.ReadOnly = true; this.rtbDisplay.Size = new Size(730, 320); this.rtbDisplay.TabIndex = 5; this.rtbDisplay.Text = ""; this.rtbDisplay.DoubleClick += new EventHandler(this.rtbDisplay_DoubleClick); this.Column1.HeaderText = "Column1"; this.Column1.Name = "Column1"; this.Column1.ReadOnly = true; this.Column1.Width = 0x1388; this.frmMessageFilterMsgIdTxtBox.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Top; this.frmMessageFilterMsgIdTxtBox.Location = new Point(0x1c, 0x31); this.frmMessageFilterMsgIdTxtBox.Name = "frmMessageFilterMsgIdTxtBox"; this.frmMessageFilterMsgIdTxtBox.Size = new Size(730, 20); this.frmMessageFilterMsgIdTxtBox.TabIndex = 1; this.frmMessageFilterMsgIdTxtBox.PreviewKeyDown += new PreviewKeyDownEventHandler(this.frmMessageFilterMsgIdTxtBox_PreviewKeyDown); this.frmMessageFilterMsgIdTxtBox.MouseEnter += new EventHandler(this.frmMessageFilterMsgIdTxtBox_MouseEnter); this.frmMessageFilterMsgIdLabel.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Top; this.frmMessageFilterMsgIdLabel.AutoSize = true; this.frmMessageFilterMsgIdLabel.Location = new Point(0x19, 0x20); this.frmMessageFilterMsgIdLabel.Name = "frmMessageFilterMsgIdLabel"; this.frmMessageFilterMsgIdLabel.Size = new Size(0x194, 13); this.frmMessageFilterMsgIdLabel.TabIndex = 0; this.frmMessageFilterMsgIdLabel.Text = "Message(s) to filter (CHAN ID, MSG ID, SUB ID % CHAN ID, MSG ID, SUB ID % ... )"; this.frmMessageFilterMatchChkBox.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Top; this.frmMessageFilterMatchChkBox.AutoSize = true; this.frmMessageFilterMatchChkBox.Location = new Point(0x1c, 80); this.frmMessageFilterMatchChkBox.Name = "frmMessageFilterMatchChkBox"; this.frmMessageFilterMatchChkBox.Size = new Size(0x9c, 0x11); this.frmMessageFilterMatchChkBox.TabIndex = 2; this.frmMessageFilterMatchChkBox.Text = "Match Regular Expression?"; this.frmMessageFilterMatchChkBox.UseVisualStyleBackColor = true; this.frmMessageFilterMatchChkBox.CheckedChanged += new EventHandler(this.frmMessageFilterMatchChkBox_CheckedChanged); this.frmMessageFilterRegExpressionTxtBox.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Top; this.frmMessageFilterRegExpressionTxtBox.Location = new Point(0x1c, 0x67); this.frmMessageFilterRegExpressionTxtBox.Name = "frmMessageFilterRegExpressionTxtBox"; this.frmMessageFilterRegExpressionTxtBox.Size = new Size(730, 20); this.frmMessageFilterRegExpressionTxtBox.TabIndex = 4; this.frmMessageFilterRegExpressionTxtBox.PreviewKeyDown += new PreviewKeyDownEventHandler(this.frmMessageFilterRegExpressionTxtBox_PreviewKeyDown); this.frmMessageFilterRegExpressionTxtBox.MouseEnter += new EventHandler(this.frmMessageFilterRegExpressionTxtBox_MouseEnter); this.frmCommMessageFilterOccurrence.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Top; this.frmCommMessageFilterOccurrence.AutoSize = true; this.frmCommMessageFilterOccurrence.Location = new Point(0xb8, 0x52); this.frmCommMessageFilterOccurrence.Name = "frmCommMessageFilterOccurrence"; this.frmCommMessageFilterOccurrence.Size = new Size(0x2b, 13); this.frmCommMessageFilterOccurrence.TabIndex = 3; this.frmCommMessageFilterOccurrence.Text = "Match: "; this.menuStrip1.AllowMerge = false; this.menuStrip1.Items.AddRange(new ToolStripItem[] { this.actionToolStripMenuItem, this.viewModeToolStripMenuItem }); this.menuStrip1.Location = new Point(0, 0); this.menuStrip1.Name = "menuStrip1"; this.menuStrip1.Size = new Size(0x313, 0x18); this.menuStrip1.TabIndex = 0; this.menuStrip1.Text = "menuStrip1"; this.actionToolStripMenuItem.DropDownItems.AddRange(new ToolStripItem[] { this.startToolStripMenuItem, this.pauseToolStripMenuItem, this.stopToolStripMenuItem, this.exitToolStripMenuItem }); this.actionToolStripMenuItem.Name = "actionToolStripMenuItem"; this.actionToolStripMenuItem.Size = new Size(0x79, 20); this.actionToolStripMenuItem.Text = "Message Filter &Action"; this.startToolStripMenuItem.Name = "startToolStripMenuItem"; this.startToolStripMenuItem.Size = new Size(0x72, 0x16); this.startToolStripMenuItem.Text = "&Start"; this.startToolStripMenuItem.Click += new EventHandler(this.startToolStripMenuItem_Click); this.pauseToolStripMenuItem.Name = "pauseToolStripMenuItem"; this.pauseToolStripMenuItem.Size = new Size(0x72, 0x16); this.pauseToolStripMenuItem.Text = "&Pause"; this.pauseToolStripMenuItem.Click += new EventHandler(this.pauseToolStripMenuItem_Click); this.stopToolStripMenuItem.Name = "stopToolStripMenuItem"; this.stopToolStripMenuItem.Size = new Size(0x72, 0x16); this.stopToolStripMenuItem.Text = "Sto&p"; this.stopToolStripMenuItem.Click += new EventHandler(this.stopToolStripMenuItem_Click); this.exitToolStripMenuItem.Name = "exitToolStripMenuItem"; this.exitToolStripMenuItem.Size = new Size(0x72, 0x16); this.exitToolStripMenuItem.Text = "E&xit"; this.exitToolStripMenuItem.Click += new EventHandler(this.exitToolStripMenuItem_Click); this.viewModeToolStripMenuItem.DropDownItems.AddRange(new ToolStripItem[] { this.viewModeToolStripMenuItem1 }); this.viewModeToolStripMenuItem.Name = "viewModeToolStripMenuItem"; this.viewModeToolStripMenuItem.Size = new Size(0x71, 20); this.viewModeToolStripMenuItem.Text = "Message Filter &View"; this.viewModeToolStripMenuItem.Click += new EventHandler(this.viewModeToolStripMenuItem_Click); this.viewModeToolStripMenuItem1.DropDownItems.AddRange(new ToolStripItem[] { this.hexToolStripMenuItem, this.aSCIIToolStripMenuItem, this.sSBToolStripMenuItem, this.gP2ToolStripMenuItem, this.cSVToolStripMenuItem }); this.viewModeToolStripMenuItem1.Name = "viewModeToolStripMenuItem1"; this.viewModeToolStripMenuItem1.Size = new Size(0x98, 0x16); this.viewModeToolStripMenuItem1.Text = "View &Mode"; this.viewModeToolStripMenuItem1.DropDownOpened += new EventHandler(this.viewModeToolStripMenuItem1_DropDownOpened); this.hexToolStripMenuItem.Name = "hexToolStripMenuItem"; this.hexToolStripMenuItem.Size = new Size(0x98, 0x16); this.hexToolStripMenuItem.Text = "&Hex"; this.hexToolStripMenuItem.Click += new EventHandler(this.hexToolStripMenuItem_Click); this.aSCIIToolStripMenuItem.Name = "aSCIIToolStripMenuItem"; this.aSCIIToolStripMenuItem.Size = new Size(0x98, 0x16); this.aSCIIToolStripMenuItem.Text = "&ASCII"; this.aSCIIToolStripMenuItem.Click += new EventHandler(this.aSCIIToolStripMenuItem_Click); this.sSBToolStripMenuItem.Name = "sSBToolStripMenuItem"; this.sSBToolStripMenuItem.Size = new Size(0x98, 0x16); this.sSBToolStripMenuItem.Text = "&SSB"; this.sSBToolStripMenuItem.Click += new EventHandler(this.sSBToolStripMenuItem_Click); this.gP2ToolStripMenuItem.Name = "gP2ToolStripMenuItem"; this.gP2ToolStripMenuItem.Size = new Size(0x98, 0x16); this.gP2ToolStripMenuItem.Text = "GP&2"; this.gP2ToolStripMenuItem.Click += new EventHandler(this.gP2ToolStripMenuItem_Click); this.cSVToolStripMenuItem.Name = "cSVToolStripMenuItem"; this.cSVToolStripMenuItem.Size = new Size(0x98, 0x16); this.cSVToolStripMenuItem.Text = "&GPS"; this.cSVToolStripMenuItem.Click += new EventHandler(this.cSVToolStripMenuItem_Click); this.statusStrip1.Items.AddRange(new ToolStripItem[] { this.frmMessageFilterStatusLabel }); this.statusStrip1.Location = new Point(0, 0x1f8); this.statusStrip1.Name = "statusStrip1"; this.statusStrip1.Size = new Size(0x313, 0x16); this.statusStrip1.TabIndex = 6; this.statusStrip1.Text = "statusStrip1"; this.frmMessageFilterStatusLabel.Name = "frmMessageFilterStatusLabel"; this.frmMessageFilterStatusLabel.Size = new Size(110, 0x11); this.frmMessageFilterStatusLabel.Text = "Message Filter Status"; base.AutoScaleDimensions = new SizeF(6f, 13f); base.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScroll = true; base.ClientSize = new Size(0x313, 0x20e); base.Controls.Add(this.statusStrip1); base.Controls.Add(this.frmCommMessageFilterOccurrence); base.Controls.Add(this.frmMessageFilterRegExpressionTxtBox); base.Controls.Add(this.frmMessageFilterMatchChkBox); base.Controls.Add(this.frmMessageFilterMsgIdLabel); base.Controls.Add(this.frmMessageFilterMsgIdTxtBox); base.Controls.Add(this.MessageFilterGroupBox); base.Controls.Add(this.menuStrip1); base.Icon = (Icon)manager.GetObject("$this.Icon"); base.MainMenuStrip = this.menuStrip1; this.MinimumSize = new Size(300, 200); base.Name = "frmCommMessageFilter"; base.ShowInTaskbar = false; base.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide; base.StartPosition = FormStartPosition.Manual; this.Text = "Message(s) Filter"; base.Load += new EventHandler(this.frmCommMessageFilter_Load); base.LocationChanged += new EventHandler(this.frmCommMessageFilter_LocationChanged); base.ResizeEnd += new EventHandler(this.frmCommMessageFilter_ResizeEnd); this.MessageFilterGroupBox.ResumeLayout(false); this.menuStrip1.ResumeLayout(false); this.menuStrip1.PerformLayout(); this.statusStrip1.ResumeLayout(false); this.statusStrip1.PerformLayout(); base.ResumeLayout(false); base.PerformLayout(); }
public virtual void WriteData(CommonClass.MyRichTextBox display, string msg) { }
private void InitializeComponent() { this.components = new Container(); ComponentResourceManager resources = new ComponentResourceManager(typeof(frmCommDebugView)); this.rtbDisplay = new CommonClass.MyRichTextBox(); this.debugViewToolStrip = new ToolStrip(); this.debubViewToolStripPauseBtn = new ToolStripButton(); this.debugViewToolStripFilterBtn = new ToolStripButton(); this.debugViewRegExpressionTxtBox = new TextBox(); this.toolTip1 = new ToolTip(this.components); this.debugViewToolStrip.SuspendLayout(); base.SuspendLayout(); this.rtbDisplay.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Bottom | AnchorStyles.Top; this.rtbDisplay.BackColor = SystemColors.Window; this.rtbDisplay.Location = new Point(0, 0x34); this.rtbDisplay.Name = "rtbDisplay"; this.rtbDisplay.ReadOnly = true; this.rtbDisplay.Size = new Size(530, 0xea); this.rtbDisplay.TabIndex = 1; this.rtbDisplay.Text = ""; this.rtbDisplay.DoubleClick += new EventHandler(this.rtbDisplay_DoubleClick); this.debugViewToolStrip.Items.AddRange(new ToolStripItem[] { this.debubViewToolStripPauseBtn, this.debugViewToolStripFilterBtn }); this.debugViewToolStrip.Location = new Point(0, 0); this.debugViewToolStrip.Name = "debugViewToolStrip"; this.debugViewToolStrip.Size = new Size(530, 0x19); this.debugViewToolStrip.TabIndex = 2; this.debugViewToolStrip.Text = "Debug View Toolbar"; this.debubViewToolStripPauseBtn.DisplayStyle = ToolStripItemDisplayStyle.Image; this.debubViewToolStripPauseBtn.Image = Resources.Pause; this.debubViewToolStripPauseBtn.ImageTransparentColor = Color.Magenta; this.debubViewToolStripPauseBtn.Name = "debubViewToolStripPauseBtn"; this.debubViewToolStripPauseBtn.Size = new Size(0x17, 0x16); this.debubViewToolStripPauseBtn.Text = "Pause"; this.debubViewToolStripPauseBtn.Click += new EventHandler(this.debubViewToolStripPauseBtn_Click); this.debugViewToolStripFilterBtn.DisplayStyle = ToolStripItemDisplayStyle.Image; this.debugViewToolStripFilterBtn.Image = Resources.Filter2HS; this.debugViewToolStripFilterBtn.ImageTransparentColor = Color.Magenta; this.debugViewToolStripFilterBtn.Name = "debugViewToolStripFilterBtn"; this.debugViewToolStripFilterBtn.Size = new Size(0x17, 0x16); this.debugViewToolStripFilterBtn.Text = "Filter"; this.debugViewToolStripFilterBtn.Click += new EventHandler(this.debugViewToolStripFilterBtn_Click); this.debugViewRegExpressionTxtBox.AllowDrop = true; this.debugViewRegExpressionTxtBox.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Bottom | AnchorStyles.Top; this.debugViewRegExpressionTxtBox.Location = new Point(0, 0x1d); this.debugViewRegExpressionTxtBox.Name = "debugViewRegExpressionTxtBox"; this.debugViewRegExpressionTxtBox.Size = new Size(530, 20); this.debugViewRegExpressionTxtBox.TabIndex = 3; this.debugViewRegExpressionTxtBox.Text = "Regular Expression"; this.debugViewRegExpressionTxtBox.PreviewKeyDown += new PreviewKeyDownEventHandler(this.debugViewRegExpressionTxtBox_PreviewKeyDown); this.debugViewRegExpressionTxtBox.MouseEnter += new EventHandler(this.debugViewRegExpressionTxtBox_MouseEnter); base.AutoScaleDimensions = new SizeF(6f, 13f); base.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; base.ClientSize = new Size(530, 0x120); base.Controls.Add(this.debugViewRegExpressionTxtBox); base.Controls.Add(this.debugViewToolStrip); base.Controls.Add(this.rtbDisplay); base.Icon = (Icon)resources.GetObject("$this.Icon"); base.Name = "frmCommDebugView"; base.ShowInTaskbar = false; base.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide; base.StartPosition = FormStartPosition.Manual; this.Text = "Debug View"; base.Load += new EventHandler(this.frmCommDebugView_Load); base.LocationChanged += new EventHandler(this.frmCommDebugView_LocationChanged); base.ResizeEnd += new EventHandler(this.frmCommDebugView_ResizeEnd); this.debugViewToolStrip.ResumeLayout(false); this.debugViewToolStrip.PerformLayout(); base.ResumeLayout(false); base.PerformLayout(); }