diff --git a/App.config b/App.config new file mode 100644 index 0000000..56efbc7 --- /dev/null +++ b/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/FormMain.Designer.cs b/FormMain.Designer.cs new file mode 100644 index 0000000..2e16c05 --- /dev/null +++ b/FormMain.Designer.cs @@ -0,0 +1,1368 @@ +namespace MyNewApp +{ + partial class FormMain + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.groupSettings = new System.Windows.Forms.GroupBox(); + this.TextBoxSettings = new System.Windows.Forms.RichTextBox(); + this.comboBoxPort = new System.Windows.Forms.ComboBox(); + this.buttonDisconnect = new System.Windows.Forms.Button(); + this.buttonConnect = new System.Windows.Forms.Button(); + this.buttonRefresh = new System.Windows.Forms.Button(); + this.groupBoxCOM = new System.Windows.Forms.GroupBox(); + this.COMTextBox = new System.Windows.Forms.RichTextBox(); + this.button00 = new System.Windows.Forms.Button(); + this.colorDialog1 = new System.Windows.Forms.ColorDialog(); + this.button01 = new System.Windows.Forms.Button(); + this.button02 = new System.Windows.Forms.Button(); + this.button03 = new System.Windows.Forms.Button(); + this.button04 = new System.Windows.Forms.Button(); + this.button05 = new System.Windows.Forms.Button(); + this.button06 = new System.Windows.Forms.Button(); + this.button07 = new System.Windows.Forms.Button(); + this.button08 = new System.Windows.Forms.Button(); + this.button09 = new System.Windows.Forms.Button(); + this.button10 = new System.Windows.Forms.Button(); + this.button11 = new System.Windows.Forms.Button(); + this.button12 = new System.Windows.Forms.Button(); + this.button13 = new System.Windows.Forms.Button(); + this.button14 = new System.Windows.Forms.Button(); + this.button15 = new System.Windows.Forms.Button(); + this.butto224 = new System.Windows.Forms.Button(); + this.butto225 = new System.Windows.Forms.Button(); + this.butto226 = new System.Windows.Forms.Button(); + this.butto227 = new System.Windows.Forms.Button(); + this.butto228 = new System.Windows.Forms.Button(); + this.butto229 = new System.Windows.Forms.Button(); + this.butto330 = new System.Windows.Forms.Button(); + this.butto331 = new System.Windows.Forms.Button(); + this.butto223 = new System.Windows.Forms.Button(); + this.butto222 = new System.Windows.Forms.Button(); + this.butto221 = new System.Windows.Forms.Button(); + this.butto220 = new System.Windows.Forms.Button(); + this.butto119 = new System.Windows.Forms.Button(); + this.butto118 = new System.Windows.Forms.Button(); + this.butto117 = new System.Windows.Forms.Button(); + this.butto116 = new System.Windows.Forms.Button(); + this.butto556 = new System.Windows.Forms.Button(); + this.butto557 = new System.Windows.Forms.Button(); + this.butto558 = new System.Windows.Forms.Button(); + this.butto559 = new System.Windows.Forms.Button(); + this.butto660 = new System.Windows.Forms.Button(); + this.butto661 = new System.Windows.Forms.Button(); + this.butto662 = new System.Windows.Forms.Button(); + this.butto663 = new System.Windows.Forms.Button(); + this.butto555 = new System.Windows.Forms.Button(); + this.butto554 = new System.Windows.Forms.Button(); + this.butto553 = new System.Windows.Forms.Button(); + this.butto552 = new System.Windows.Forms.Button(); + this.butto551 = new System.Windows.Forms.Button(); + this.butto550 = new System.Windows.Forms.Button(); + this.butto449 = new System.Windows.Forms.Button(); + this.butto448 = new System.Windows.Forms.Button(); + this.button40 = new System.Windows.Forms.Button(); + this.button41 = new System.Windows.Forms.Button(); + this.button42 = new System.Windows.Forms.Button(); + this.button43 = new System.Windows.Forms.Button(); + this.button44 = new System.Windows.Forms.Button(); + this.button45 = new System.Windows.Forms.Button(); + this.button46 = new System.Windows.Forms.Button(); + this.button47 = new System.Windows.Forms.Button(); + this.butto339 = new System.Windows.Forms.Button(); + this.butto338 = new System.Windows.Forms.Button(); + this.butto337 = new System.Windows.Forms.Button(); + this.butto336 = new System.Windows.Forms.Button(); + this.butto335 = new System.Windows.Forms.Button(); + this.butto334 = new System.Windows.Forms.Button(); + this.butto333 = new System.Windows.Forms.Button(); + this.butto332 = new System.Windows.Forms.Button(); + this.groupBoxColor = new System.Windows.Forms.GroupBox(); + this.ColorFuchsia = new System.Windows.Forms.Button(); + this.ColorSelect = new System.Windows.Forms.Button(); + this.ColorBlue = new System.Windows.Forms.Button(); + this.ColorBlack = new System.Windows.Forms.Button(); + this.ColorAqua = new System.Windows.Forms.Button(); + this.ColorWhite = new System.Windows.Forms.Button(); + this.ColorGreen = new System.Windows.Forms.Button(); + this.ColorRed = new System.Windows.Forms.Button(); + this.ColorYelow = new System.Windows.Forms.Button(); + this.ColorOrange = new System.Windows.Forms.Button(); + this.buttonClear = new System.Windows.Forms.Button(); + this.groupSettings.SuspendLayout(); + this.groupBoxCOM.SuspendLayout(); + this.groupBoxColor.SuspendLayout(); + this.SuspendLayout(); + // + // groupSettings + // + this.groupSettings.Controls.Add(this.TextBoxSettings); + this.groupSettings.Controls.Add(this.comboBoxPort); + this.groupSettings.Controls.Add(this.buttonDisconnect); + this.groupSettings.Controls.Add(this.buttonConnect); + this.groupSettings.Controls.Add(this.buttonRefresh); + this.groupSettings.Location = new System.Drawing.Point(32, 17); + this.groupSettings.Name = "groupSettings"; + this.groupSettings.Size = new System.Drawing.Size(354, 148); + this.groupSettings.TabIndex = 0; + this.groupSettings.TabStop = false; + this.groupSettings.Text = "Settings"; + // + // TextBoxSettings + // + this.TextBoxSettings.BorderStyle = System.Windows.Forms.BorderStyle.None; + this.TextBoxSettings.Location = new System.Drawing.Point(19, 88); + this.TextBoxSettings.Name = "TextBoxSettings"; + this.TextBoxSettings.ScrollBars = System.Windows.Forms.RichTextBoxScrollBars.None; + this.TextBoxSettings.Size = new System.Drawing.Size(311, 47); + this.TextBoxSettings.TabIndex = 4; + this.TextBoxSettings.Text = "Select COM port!"; + // + // comboBoxPort + // + this.comboBoxPort.FormattingEnabled = true; + this.comboBoxPort.Location = new System.Drawing.Point(19, 61); + this.comboBoxPort.Name = "comboBoxPort"; + this.comboBoxPort.Size = new System.Drawing.Size(121, 21); + this.comboBoxPort.TabIndex = 3; + // + // buttonDisconnect + // + this.buttonDisconnect.Location = new System.Drawing.Point(256, 31); + this.buttonDisconnect.Name = "buttonDisconnect"; + this.buttonDisconnect.Size = new System.Drawing.Size(75, 23); + this.buttonDisconnect.TabIndex = 2; + this.buttonDisconnect.Text = "Disconnect"; + this.buttonDisconnect.UseVisualStyleBackColor = true; + this.buttonDisconnect.Click += new System.EventHandler(this.buttonDisconnect_Click); + // + // buttonConnect + // + this.buttonConnect.Location = new System.Drawing.Point(141, 30); + this.buttonConnect.Name = "buttonConnect"; + this.buttonConnect.Size = new System.Drawing.Size(75, 23); + this.buttonConnect.TabIndex = 1; + this.buttonConnect.Text = "Connect!"; + this.buttonConnect.UseVisualStyleBackColor = true; + this.buttonConnect.Click += new System.EventHandler(this.buttonConnect_Click); + // + // buttonRefresh + // + this.buttonRefresh.Location = new System.Drawing.Point(19, 31); + this.buttonRefresh.Name = "buttonRefresh"; + this.buttonRefresh.Size = new System.Drawing.Size(75, 23); + this.buttonRefresh.TabIndex = 0; + this.buttonRefresh.Text = "Refresh"; + this.buttonRefresh.UseVisualStyleBackColor = true; + this.buttonRefresh.Click += new System.EventHandler(this.buttonRefresh_Click); + // + // groupBoxCOM + // + this.groupBoxCOM.Controls.Add(this.COMTextBox); + this.groupBoxCOM.Location = new System.Drawing.Point(32, 181); + this.groupBoxCOM.Name = "groupBoxCOM"; + this.groupBoxCOM.Size = new System.Drawing.Size(354, 154); + this.groupBoxCOM.TabIndex = 1; + this.groupBoxCOM.TabStop = false; + this.groupBoxCOM.Text = "COM port monitor"; + // + // COMTextBox + // + this.COMTextBox.DetectUrls = false; + this.COMTextBox.Font = new System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.COMTextBox.Location = new System.Drawing.Point(19, 28); + this.COMTextBox.Name = "COMTextBox"; + this.COMTextBox.ReadOnly = true; + this.COMTextBox.ScrollBars = System.Windows.Forms.RichTextBoxScrollBars.Vertical; + this.COMTextBox.Size = new System.Drawing.Size(312, 112); + this.COMTextBox.TabIndex = 0; + this.COMTextBox.Text = ""; + // + // button00 + // + this.button00.BackColor = System.Drawing.Color.Black; + this.button00.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.button00.FlatAppearance.BorderColor = System.Drawing.Color.Black; + this.button00.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.button00.Location = new System.Drawing.Point(477, 26); + this.button00.Name = "button00"; + this.button00.Size = new System.Drawing.Size(20, 20); + this.button00.TabIndex = 2; + this.button00.UseVisualStyleBackColor = false; + this.button00.Click += new System.EventHandler(this.Matrix_Click); + // + // colorDialog1 + // + this.colorDialog1.AnyColor = true; + this.colorDialog1.FullOpen = true; + // + // button01 + // + this.button01.BackColor = System.Drawing.Color.Black; + this.button01.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.button01.FlatAppearance.BorderColor = System.Drawing.Color.Black; + this.button01.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.button01.Location = new System.Drawing.Point(477, 52); + this.button01.Name = "button01"; + this.button01.Size = new System.Drawing.Size(20, 20); + this.button01.TabIndex = 3; + this.button01.UseVisualStyleBackColor = false; + this.button01.Click += new System.EventHandler(this.Matrix_Click); + // + // button02 + // + this.button02.BackColor = System.Drawing.Color.Black; + this.button02.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.button02.FlatAppearance.BorderColor = System.Drawing.Color.Black; + this.button02.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.button02.Location = new System.Drawing.Point(477, 78); + this.button02.Name = "button02"; + this.button02.Size = new System.Drawing.Size(20, 20); + this.button02.TabIndex = 4; + this.button02.UseVisualStyleBackColor = false; + this.button02.Click += new System.EventHandler(this.Matrix_Click); + // + // button03 + // + this.button03.BackColor = System.Drawing.Color.Black; + this.button03.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.button03.FlatAppearance.BorderColor = System.Drawing.Color.Black; + this.button03.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.button03.Location = new System.Drawing.Point(477, 104); + this.button03.Name = "button03"; + this.button03.Size = new System.Drawing.Size(20, 20); + this.button03.TabIndex = 5; + this.button03.UseVisualStyleBackColor = false; + this.button03.Click += new System.EventHandler(this.Matrix_Click); + // + // button04 + // + this.button04.BackColor = System.Drawing.Color.Black; + this.button04.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.button04.FlatAppearance.BorderColor = System.Drawing.Color.Black; + this.button04.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.button04.Location = new System.Drawing.Point(477, 132); + this.button04.Name = "button04"; + this.button04.Size = new System.Drawing.Size(20, 20); + this.button04.TabIndex = 6; + this.button04.UseVisualStyleBackColor = false; + this.button04.Click += new System.EventHandler(this.Matrix_Click); + // + // button05 + // + this.button05.BackColor = System.Drawing.Color.Black; + this.button05.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.button05.FlatAppearance.BorderColor = System.Drawing.Color.Black; + this.button05.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.button05.Location = new System.Drawing.Point(477, 158); + this.button05.Name = "button05"; + this.button05.Size = new System.Drawing.Size(20, 20); + this.button05.TabIndex = 7; + this.button05.UseVisualStyleBackColor = false; + this.button05.Click += new System.EventHandler(this.Matrix_Click); + // + // button06 + // + this.button06.BackColor = System.Drawing.Color.Black; + this.button06.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.button06.FlatAppearance.BorderColor = System.Drawing.Color.Black; + this.button06.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.button06.Location = new System.Drawing.Point(477, 184); + this.button06.Name = "button06"; + this.button06.Size = new System.Drawing.Size(20, 20); + this.button06.TabIndex = 8; + this.button06.UseVisualStyleBackColor = false; + this.button06.Click += new System.EventHandler(this.Matrix_Click); + // + // button07 + // + this.button07.BackColor = System.Drawing.Color.Black; + this.button07.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.button07.FlatAppearance.BorderColor = System.Drawing.Color.Black; + this.button07.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.button07.Location = new System.Drawing.Point(477, 210); + this.button07.Name = "button07"; + this.button07.Size = new System.Drawing.Size(20, 20); + this.button07.TabIndex = 9; + this.button07.UseVisualStyleBackColor = false; + this.button07.Click += new System.EventHandler(this.Matrix_Click); + // + // button08 + // + this.button08.BackColor = System.Drawing.Color.Black; + this.button08.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.button08.FlatAppearance.BorderColor = System.Drawing.Color.Black; + this.button08.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.button08.Location = new System.Drawing.Point(503, 210); + this.button08.Name = "button08"; + this.button08.Size = new System.Drawing.Size(20, 20); + this.button08.TabIndex = 17; + this.button08.UseVisualStyleBackColor = false; + this.button08.Click += new System.EventHandler(this.Matrix_Click); + // + // button09 + // + this.button09.BackColor = System.Drawing.Color.Black; + this.button09.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.button09.FlatAppearance.BorderColor = System.Drawing.Color.Black; + this.button09.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.button09.Location = new System.Drawing.Point(503, 184); + this.button09.Name = "button09"; + this.button09.Size = new System.Drawing.Size(20, 20); + this.button09.TabIndex = 16; + this.button09.UseVisualStyleBackColor = false; + this.button09.Click += new System.EventHandler(this.Matrix_Click); + // + // button10 + // + this.button10.BackColor = System.Drawing.Color.Black; + this.button10.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.button10.FlatAppearance.BorderColor = System.Drawing.Color.Black; + this.button10.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.button10.Location = new System.Drawing.Point(503, 158); + this.button10.Name = "button10"; + this.button10.Size = new System.Drawing.Size(20, 20); + this.button10.TabIndex = 15; + this.button10.UseVisualStyleBackColor = false; + this.button10.Click += new System.EventHandler(this.Matrix_Click); + // + // button11 + // + this.button11.BackColor = System.Drawing.Color.Black; + this.button11.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.button11.FlatAppearance.BorderColor = System.Drawing.Color.Black; + this.button11.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.button11.Location = new System.Drawing.Point(503, 132); + this.button11.Name = "button11"; + this.button11.Size = new System.Drawing.Size(20, 20); + this.button11.TabIndex = 14; + this.button11.UseVisualStyleBackColor = false; + this.button11.Click += new System.EventHandler(this.Matrix_Click); + // + // button12 + // + this.button12.BackColor = System.Drawing.Color.Black; + this.button12.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.button12.FlatAppearance.BorderColor = System.Drawing.Color.Black; + this.button12.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.button12.Location = new System.Drawing.Point(503, 104); + this.button12.Name = "button12"; + this.button12.Size = new System.Drawing.Size(20, 20); + this.button12.TabIndex = 13; + this.button12.UseVisualStyleBackColor = false; + this.button12.Click += new System.EventHandler(this.Matrix_Click); + // + // button13 + // + this.button13.BackColor = System.Drawing.Color.Black; + this.button13.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.button13.FlatAppearance.BorderColor = System.Drawing.Color.Black; + this.button13.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.button13.Location = new System.Drawing.Point(503, 78); + this.button13.Name = "button13"; + this.button13.Size = new System.Drawing.Size(20, 20); + this.button13.TabIndex = 12; + this.button13.UseVisualStyleBackColor = false; + this.button13.Click += new System.EventHandler(this.Matrix_Click); + // + // button14 + // + this.button14.BackColor = System.Drawing.Color.Black; + this.button14.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.button14.FlatAppearance.BorderColor = System.Drawing.Color.Black; + this.button14.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.button14.Location = new System.Drawing.Point(503, 52); + this.button14.Name = "button14"; + this.button14.Size = new System.Drawing.Size(20, 20); + this.button14.TabIndex = 11; + this.button14.UseVisualStyleBackColor = false; + this.button14.Click += new System.EventHandler(this.Matrix_Click); + // + // button15 + // + this.button15.BackColor = System.Drawing.Color.Black; + this.button15.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.button15.FlatAppearance.BorderColor = System.Drawing.Color.Black; + this.button15.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.button15.Location = new System.Drawing.Point(503, 26); + this.button15.Name = "button15"; + this.button15.Size = new System.Drawing.Size(20, 20); + this.button15.TabIndex = 10; + this.button15.UseVisualStyleBackColor = false; + this.button15.Click += new System.EventHandler(this.Matrix_Click); + // + // butto224 + // + this.butto224.BackColor = System.Drawing.Color.Black; + this.butto224.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.butto224.FlatAppearance.BorderColor = System.Drawing.Color.Black; + this.butto224.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.butto224.Location = new System.Drawing.Point(554, 210); + this.butto224.Name = "butto224"; + this.butto224.Size = new System.Drawing.Size(20, 20); + this.butto224.TabIndex = 33; + this.butto224.UseVisualStyleBackColor = false; + this.butto224.Click += new System.EventHandler(this.Matrix_Click); + // + // butto225 + // + this.butto225.BackColor = System.Drawing.Color.Black; + this.butto225.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.butto225.FlatAppearance.BorderColor = System.Drawing.Color.Black; + this.butto225.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.butto225.Location = new System.Drawing.Point(554, 184); + this.butto225.Name = "butto225"; + this.butto225.Size = new System.Drawing.Size(20, 20); + this.butto225.TabIndex = 32; + this.butto225.UseVisualStyleBackColor = false; + this.butto225.Click += new System.EventHandler(this.Matrix_Click); + // + // butto226 + // + this.butto226.BackColor = System.Drawing.Color.Black; + this.butto226.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.butto226.FlatAppearance.BorderColor = System.Drawing.Color.Black; + this.butto226.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.butto226.Location = new System.Drawing.Point(554, 158); + this.butto226.Name = "butto226"; + this.butto226.Size = new System.Drawing.Size(20, 20); + this.butto226.TabIndex = 31; + this.butto226.UseVisualStyleBackColor = false; + this.butto226.Click += new System.EventHandler(this.Matrix_Click); + // + // butto227 + // + this.butto227.BackColor = System.Drawing.Color.Black; + this.butto227.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.butto227.FlatAppearance.BorderColor = System.Drawing.Color.Black; + this.butto227.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.butto227.Location = new System.Drawing.Point(554, 132); + this.butto227.Name = "butto227"; + this.butto227.Size = new System.Drawing.Size(20, 20); + this.butto227.TabIndex = 30; + this.butto227.UseVisualStyleBackColor = false; + this.butto227.Click += new System.EventHandler(this.Matrix_Click); + // + // butto228 + // + this.butto228.BackColor = System.Drawing.Color.Black; + this.butto228.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.butto228.FlatAppearance.BorderColor = System.Drawing.Color.Black; + this.butto228.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.butto228.Location = new System.Drawing.Point(554, 104); + this.butto228.Name = "butto228"; + this.butto228.Size = new System.Drawing.Size(20, 20); + this.butto228.TabIndex = 29; + this.butto228.UseVisualStyleBackColor = false; + this.butto228.Click += new System.EventHandler(this.Matrix_Click); + // + // butto229 + // + this.butto229.BackColor = System.Drawing.Color.Black; + this.butto229.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.butto229.FlatAppearance.BorderColor = System.Drawing.Color.Black; + this.butto229.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.butto229.Location = new System.Drawing.Point(554, 78); + this.butto229.Name = "butto229"; + this.butto229.Size = new System.Drawing.Size(20, 20); + this.butto229.TabIndex = 28; + this.butto229.UseVisualStyleBackColor = false; + this.butto229.Click += new System.EventHandler(this.Matrix_Click); + // + // butto330 + // + this.butto330.BackColor = System.Drawing.Color.Black; + this.butto330.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.butto330.FlatAppearance.BorderColor = System.Drawing.Color.Black; + this.butto330.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.butto330.Location = new System.Drawing.Point(554, 52); + this.butto330.Name = "butto330"; + this.butto330.Size = new System.Drawing.Size(20, 20); + this.butto330.TabIndex = 27; + this.butto330.UseVisualStyleBackColor = false; + this.butto330.Click += new System.EventHandler(this.Matrix_Click); + // + // butto331 + // + this.butto331.BackColor = System.Drawing.Color.Black; + this.butto331.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.butto331.FlatAppearance.BorderColor = System.Drawing.Color.Black; + this.butto331.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.butto331.Location = new System.Drawing.Point(554, 26); + this.butto331.Name = "butto331"; + this.butto331.Size = new System.Drawing.Size(20, 20); + this.butto331.TabIndex = 26; + this.butto331.UseVisualStyleBackColor = false; + this.butto331.Click += new System.EventHandler(this.Matrix_Click); + // + // butto223 + // + this.butto223.BackColor = System.Drawing.Color.Black; + this.butto223.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.butto223.FlatAppearance.BorderColor = System.Drawing.Color.Black; + this.butto223.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.butto223.Location = new System.Drawing.Point(528, 210); + this.butto223.Name = "butto223"; + this.butto223.Size = new System.Drawing.Size(20, 20); + this.butto223.TabIndex = 25; + this.butto223.UseVisualStyleBackColor = false; + this.butto223.Click += new System.EventHandler(this.Matrix_Click); + // + // butto222 + // + this.butto222.BackColor = System.Drawing.Color.Black; + this.butto222.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.butto222.FlatAppearance.BorderColor = System.Drawing.Color.Black; + this.butto222.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.butto222.Location = new System.Drawing.Point(528, 184); + this.butto222.Name = "butto222"; + this.butto222.Size = new System.Drawing.Size(20, 20); + this.butto222.TabIndex = 24; + this.butto222.UseVisualStyleBackColor = false; + this.butto222.Click += new System.EventHandler(this.Matrix_Click); + // + // butto221 + // + this.butto221.BackColor = System.Drawing.Color.Black; + this.butto221.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.butto221.FlatAppearance.BorderColor = System.Drawing.Color.Black; + this.butto221.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.butto221.Location = new System.Drawing.Point(528, 158); + this.butto221.Name = "butto221"; + this.butto221.Size = new System.Drawing.Size(20, 20); + this.butto221.TabIndex = 23; + this.butto221.UseVisualStyleBackColor = false; + this.butto221.Click += new System.EventHandler(this.Matrix_Click); + // + // butto220 + // + this.butto220.BackColor = System.Drawing.Color.Black; + this.butto220.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.butto220.FlatAppearance.BorderColor = System.Drawing.Color.Black; + this.butto220.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.butto220.Location = new System.Drawing.Point(528, 132); + this.butto220.Name = "butto220"; + this.butto220.Size = new System.Drawing.Size(20, 20); + this.butto220.TabIndex = 22; + this.butto220.UseVisualStyleBackColor = false; + this.butto220.Click += new System.EventHandler(this.Matrix_Click); + // + // butto119 + // + this.butto119.BackColor = System.Drawing.Color.Black; + this.butto119.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.butto119.FlatAppearance.BorderColor = System.Drawing.Color.Black; + this.butto119.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.butto119.Location = new System.Drawing.Point(528, 104); + this.butto119.Name = "butto119"; + this.butto119.Size = new System.Drawing.Size(20, 20); + this.butto119.TabIndex = 21; + this.butto119.UseVisualStyleBackColor = false; + this.butto119.Click += new System.EventHandler(this.Matrix_Click); + // + // butto118 + // + this.butto118.BackColor = System.Drawing.Color.Black; + this.butto118.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.butto118.FlatAppearance.BorderColor = System.Drawing.Color.Black; + this.butto118.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.butto118.Location = new System.Drawing.Point(528, 78); + this.butto118.Name = "butto118"; + this.butto118.Size = new System.Drawing.Size(20, 20); + this.butto118.TabIndex = 20; + this.butto118.UseVisualStyleBackColor = false; + this.butto118.Click += new System.EventHandler(this.Matrix_Click); + // + // butto117 + // + this.butto117.BackColor = System.Drawing.Color.Black; + this.butto117.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.butto117.FlatAppearance.BorderColor = System.Drawing.Color.Black; + this.butto117.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.butto117.Location = new System.Drawing.Point(528, 52); + this.butto117.Name = "butto117"; + this.butto117.Size = new System.Drawing.Size(20, 20); + this.butto117.TabIndex = 19; + this.butto117.UseVisualStyleBackColor = false; + this.butto117.Click += new System.EventHandler(this.Matrix_Click); + // + // butto116 + // + this.butto116.BackColor = System.Drawing.Color.Black; + this.butto116.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.butto116.FlatAppearance.BorderColor = System.Drawing.Color.Black; + this.butto116.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.butto116.Location = new System.Drawing.Point(528, 26); + this.butto116.Name = "butto116"; + this.butto116.Size = new System.Drawing.Size(20, 20); + this.butto116.TabIndex = 18; + this.butto116.UseVisualStyleBackColor = false; + this.butto116.Click += new System.EventHandler(this.Matrix_Click); + // + // butto556 + // + this.butto556.BackColor = System.Drawing.Color.Black; + this.butto556.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.butto556.FlatAppearance.BorderColor = System.Drawing.Color.Black; + this.butto556.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.butto556.Location = new System.Drawing.Point(655, 210); + this.butto556.Name = "butto556"; + this.butto556.Size = new System.Drawing.Size(20, 20); + this.butto556.TabIndex = 65; + this.butto556.UseVisualStyleBackColor = false; + this.butto556.Click += new System.EventHandler(this.Matrix_Click); + // + // butto557 + // + this.butto557.BackColor = System.Drawing.Color.Black; + this.butto557.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.butto557.FlatAppearance.BorderColor = System.Drawing.Color.Black; + this.butto557.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.butto557.Location = new System.Drawing.Point(655, 184); + this.butto557.Name = "butto557"; + this.butto557.Size = new System.Drawing.Size(20, 20); + this.butto557.TabIndex = 64; + this.butto557.UseVisualStyleBackColor = false; + this.butto557.Click += new System.EventHandler(this.Matrix_Click); + // + // butto558 + // + this.butto558.BackColor = System.Drawing.Color.Black; + this.butto558.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.butto558.FlatAppearance.BorderColor = System.Drawing.Color.Black; + this.butto558.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.butto558.Location = new System.Drawing.Point(655, 158); + this.butto558.Name = "butto558"; + this.butto558.Size = new System.Drawing.Size(20, 20); + this.butto558.TabIndex = 63; + this.butto558.UseVisualStyleBackColor = false; + this.butto558.Click += new System.EventHandler(this.Matrix_Click); + // + // butto559 + // + this.butto559.BackColor = System.Drawing.Color.Black; + this.butto559.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.butto559.FlatAppearance.BorderColor = System.Drawing.Color.Black; + this.butto559.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.butto559.Location = new System.Drawing.Point(655, 132); + this.butto559.Name = "butto559"; + this.butto559.Size = new System.Drawing.Size(20, 20); + this.butto559.TabIndex = 62; + this.butto559.UseVisualStyleBackColor = false; + this.butto559.Click += new System.EventHandler(this.Matrix_Click); + // + // butto660 + // + this.butto660.BackColor = System.Drawing.Color.Black; + this.butto660.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.butto660.FlatAppearance.BorderColor = System.Drawing.Color.Black; + this.butto660.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.butto660.Location = new System.Drawing.Point(655, 104); + this.butto660.Name = "butto660"; + this.butto660.Size = new System.Drawing.Size(20, 20); + this.butto660.TabIndex = 61; + this.butto660.UseVisualStyleBackColor = false; + this.butto660.Click += new System.EventHandler(this.Matrix_Click); + // + // butto661 + // + this.butto661.BackColor = System.Drawing.Color.Black; + this.butto661.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.butto661.FlatAppearance.BorderColor = System.Drawing.Color.Black; + this.butto661.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.butto661.Location = new System.Drawing.Point(655, 78); + this.butto661.Name = "butto661"; + this.butto661.Size = new System.Drawing.Size(20, 20); + this.butto661.TabIndex = 60; + this.butto661.UseVisualStyleBackColor = false; + this.butto661.Click += new System.EventHandler(this.Matrix_Click); + // + // butto662 + // + this.butto662.BackColor = System.Drawing.Color.Black; + this.butto662.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.butto662.FlatAppearance.BorderColor = System.Drawing.Color.Black; + this.butto662.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.butto662.Location = new System.Drawing.Point(655, 52); + this.butto662.Name = "butto662"; + this.butto662.Size = new System.Drawing.Size(20, 20); + this.butto662.TabIndex = 59; + this.butto662.UseVisualStyleBackColor = false; + this.butto662.Click += new System.EventHandler(this.Matrix_Click); + // + // butto663 + // + this.butto663.BackColor = System.Drawing.Color.Black; + this.butto663.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.butto663.FlatAppearance.BorderColor = System.Drawing.Color.Black; + this.butto663.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.butto663.Location = new System.Drawing.Point(655, 26); + this.butto663.Name = "butto663"; + this.butto663.Size = new System.Drawing.Size(20, 20); + this.butto663.TabIndex = 58; + this.butto663.UseVisualStyleBackColor = false; + this.butto663.Click += new System.EventHandler(this.Matrix_Click); + // + // butto555 + // + this.butto555.BackColor = System.Drawing.Color.Black; + this.butto555.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.butto555.FlatAppearance.BorderColor = System.Drawing.Color.Black; + this.butto555.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.butto555.Location = new System.Drawing.Point(629, 210); + this.butto555.Name = "butto555"; + this.butto555.Size = new System.Drawing.Size(20, 20); + this.butto555.TabIndex = 57; + this.butto555.UseVisualStyleBackColor = false; + this.butto555.Click += new System.EventHandler(this.Matrix_Click); + // + // butto554 + // + this.butto554.BackColor = System.Drawing.Color.Black; + this.butto554.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.butto554.FlatAppearance.BorderColor = System.Drawing.Color.Black; + this.butto554.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.butto554.Location = new System.Drawing.Point(629, 184); + this.butto554.Name = "butto554"; + this.butto554.Size = new System.Drawing.Size(20, 20); + this.butto554.TabIndex = 56; + this.butto554.UseVisualStyleBackColor = false; + this.butto554.Click += new System.EventHandler(this.Matrix_Click); + // + // butto553 + // + this.butto553.BackColor = System.Drawing.Color.Black; + this.butto553.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.butto553.FlatAppearance.BorderColor = System.Drawing.Color.Black; + this.butto553.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.butto553.Location = new System.Drawing.Point(629, 158); + this.butto553.Name = "butto553"; + this.butto553.Size = new System.Drawing.Size(20, 20); + this.butto553.TabIndex = 55; + this.butto553.UseVisualStyleBackColor = false; + this.butto553.Click += new System.EventHandler(this.Matrix_Click); + // + // butto552 + // + this.butto552.BackColor = System.Drawing.Color.Black; + this.butto552.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.butto552.FlatAppearance.BorderColor = System.Drawing.Color.Black; + this.butto552.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.butto552.Location = new System.Drawing.Point(629, 132); + this.butto552.Name = "butto552"; + this.butto552.Size = new System.Drawing.Size(20, 20); + this.butto552.TabIndex = 54; + this.butto552.UseVisualStyleBackColor = false; + this.butto552.Click += new System.EventHandler(this.Matrix_Click); + // + // butto551 + // + this.butto551.BackColor = System.Drawing.Color.Black; + this.butto551.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.butto551.FlatAppearance.BorderColor = System.Drawing.Color.Black; + this.butto551.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.butto551.Location = new System.Drawing.Point(629, 104); + this.butto551.Name = "butto551"; + this.butto551.Size = new System.Drawing.Size(20, 20); + this.butto551.TabIndex = 53; + this.butto551.UseVisualStyleBackColor = false; + this.butto551.Click += new System.EventHandler(this.Matrix_Click); + // + // butto550 + // + this.butto550.BackColor = System.Drawing.Color.Black; + this.butto550.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.butto550.FlatAppearance.BorderColor = System.Drawing.Color.Black; + this.butto550.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.butto550.Location = new System.Drawing.Point(629, 78); + this.butto550.Name = "butto550"; + this.butto550.Size = new System.Drawing.Size(20, 20); + this.butto550.TabIndex = 52; + this.butto550.UseVisualStyleBackColor = false; + this.butto550.Click += new System.EventHandler(this.Matrix_Click); + // + // butto449 + // + this.butto449.BackColor = System.Drawing.Color.Black; + this.butto449.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.butto449.FlatAppearance.BorderColor = System.Drawing.Color.Black; + this.butto449.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.butto449.Location = new System.Drawing.Point(629, 52); + this.butto449.Name = "butto449"; + this.butto449.Size = new System.Drawing.Size(20, 20); + this.butto449.TabIndex = 51; + this.butto449.UseVisualStyleBackColor = false; + this.butto449.Click += new System.EventHandler(this.Matrix_Click); + // + // butto448 + // + this.butto448.BackColor = System.Drawing.Color.Black; + this.butto448.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.butto448.FlatAppearance.BorderColor = System.Drawing.Color.Black; + this.butto448.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.butto448.Location = new System.Drawing.Point(629, 26); + this.butto448.Name = "butto448"; + this.butto448.Size = new System.Drawing.Size(20, 20); + this.butto448.TabIndex = 50; + this.butto448.UseVisualStyleBackColor = false; + this.butto448.Click += new System.EventHandler(this.Matrix_Click); + // + // button40 + // + this.button40.BackColor = System.Drawing.Color.Black; + this.button40.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.button40.FlatAppearance.BorderColor = System.Drawing.Color.Black; + this.button40.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.button40.Location = new System.Drawing.Point(604, 210); + this.button40.Name = "button40"; + this.button40.Size = new System.Drawing.Size(20, 20); + this.button40.TabIndex = 49; + this.button40.UseVisualStyleBackColor = false; + this.button40.Click += new System.EventHandler(this.Matrix_Click); + // + // button41 + // + this.button41.BackColor = System.Drawing.Color.Black; + this.button41.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.button41.FlatAppearance.BorderColor = System.Drawing.Color.Black; + this.button41.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.button41.Location = new System.Drawing.Point(604, 184); + this.button41.Name = "button41"; + this.button41.Size = new System.Drawing.Size(20, 20); + this.button41.TabIndex = 48; + this.button41.UseVisualStyleBackColor = false; + this.button41.Click += new System.EventHandler(this.Matrix_Click); + // + // button42 + // + this.button42.BackColor = System.Drawing.Color.Black; + this.button42.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.button42.FlatAppearance.BorderColor = System.Drawing.Color.Black; + this.button42.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.button42.Location = new System.Drawing.Point(604, 158); + this.button42.Name = "button42"; + this.button42.Size = new System.Drawing.Size(20, 20); + this.button42.TabIndex = 47; + this.button42.UseVisualStyleBackColor = false; + this.button42.Click += new System.EventHandler(this.Matrix_Click); + // + // button43 + // + this.button43.BackColor = System.Drawing.Color.Black; + this.button43.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.button43.FlatAppearance.BorderColor = System.Drawing.Color.Black; + this.button43.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.button43.Location = new System.Drawing.Point(604, 132); + this.button43.Name = "button43"; + this.button43.Size = new System.Drawing.Size(20, 20); + this.button43.TabIndex = 46; + this.button43.UseVisualStyleBackColor = false; + this.button43.Click += new System.EventHandler(this.Matrix_Click); + // + // button44 + // + this.button44.BackColor = System.Drawing.Color.Black; + this.button44.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.button44.FlatAppearance.BorderColor = System.Drawing.Color.Black; + this.button44.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.button44.Location = new System.Drawing.Point(604, 104); + this.button44.Name = "button44"; + this.button44.Size = new System.Drawing.Size(20, 20); + this.button44.TabIndex = 45; + this.button44.UseVisualStyleBackColor = false; + this.button44.Click += new System.EventHandler(this.Matrix_Click); + // + // button45 + // + this.button45.BackColor = System.Drawing.Color.Black; + this.button45.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.button45.FlatAppearance.BorderColor = System.Drawing.Color.Black; + this.button45.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.button45.Location = new System.Drawing.Point(604, 78); + this.button45.Name = "button45"; + this.button45.Size = new System.Drawing.Size(20, 20); + this.button45.TabIndex = 44; + this.button45.UseVisualStyleBackColor = false; + this.button45.Click += new System.EventHandler(this.Matrix_Click); + // + // button46 + // + this.button46.BackColor = System.Drawing.Color.Black; + this.button46.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.button46.FlatAppearance.BorderColor = System.Drawing.Color.Black; + this.button46.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.button46.Location = new System.Drawing.Point(604, 52); + this.button46.Name = "button46"; + this.button46.Size = new System.Drawing.Size(20, 20); + this.button46.TabIndex = 43; + this.button46.UseVisualStyleBackColor = false; + this.button46.Click += new System.EventHandler(this.Matrix_Click); + // + // button47 + // + this.button47.BackColor = System.Drawing.Color.Black; + this.button47.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.button47.FlatAppearance.BorderColor = System.Drawing.Color.Black; + this.button47.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.button47.Location = new System.Drawing.Point(604, 26); + this.button47.Name = "button47"; + this.button47.Size = new System.Drawing.Size(20, 20); + this.button47.TabIndex = 42; + this.button47.UseVisualStyleBackColor = false; + this.button47.Click += new System.EventHandler(this.Matrix_Click); + // + // butto339 + // + this.butto339.BackColor = System.Drawing.Color.Black; + this.butto339.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.butto339.FlatAppearance.BorderColor = System.Drawing.Color.Black; + this.butto339.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.butto339.Location = new System.Drawing.Point(578, 210); + this.butto339.Name = "butto339"; + this.butto339.Size = new System.Drawing.Size(20, 20); + this.butto339.TabIndex = 41; + this.butto339.UseVisualStyleBackColor = false; + this.butto339.Click += new System.EventHandler(this.Matrix_Click); + // + // butto338 + // + this.butto338.BackColor = System.Drawing.Color.Black; + this.butto338.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.butto338.FlatAppearance.BorderColor = System.Drawing.Color.Black; + this.butto338.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.butto338.Location = new System.Drawing.Point(578, 184); + this.butto338.Name = "butto338"; + this.butto338.Size = new System.Drawing.Size(20, 20); + this.butto338.TabIndex = 40; + this.butto338.UseVisualStyleBackColor = false; + this.butto338.Click += new System.EventHandler(this.Matrix_Click); + // + // butto337 + // + this.butto337.BackColor = System.Drawing.Color.Black; + this.butto337.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.butto337.FlatAppearance.BorderColor = System.Drawing.Color.Black; + this.butto337.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.butto337.Location = new System.Drawing.Point(578, 158); + this.butto337.Name = "butto337"; + this.butto337.Size = new System.Drawing.Size(20, 20); + this.butto337.TabIndex = 39; + this.butto337.UseVisualStyleBackColor = false; + this.butto337.Click += new System.EventHandler(this.Matrix_Click); + // + // butto336 + // + this.butto336.BackColor = System.Drawing.Color.Black; + this.butto336.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.butto336.FlatAppearance.BorderColor = System.Drawing.Color.Black; + this.butto336.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.butto336.Location = new System.Drawing.Point(578, 132); + this.butto336.Name = "butto336"; + this.butto336.Size = new System.Drawing.Size(20, 20); + this.butto336.TabIndex = 38; + this.butto336.UseVisualStyleBackColor = false; + this.butto336.Click += new System.EventHandler(this.Matrix_Click); + // + // butto335 + // + this.butto335.BackColor = System.Drawing.Color.Black; + this.butto335.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.butto335.FlatAppearance.BorderColor = System.Drawing.Color.Black; + this.butto335.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.butto335.Location = new System.Drawing.Point(578, 104); + this.butto335.Name = "butto335"; + this.butto335.Size = new System.Drawing.Size(20, 20); + this.butto335.TabIndex = 37; + this.butto335.UseVisualStyleBackColor = false; + this.butto335.Click += new System.EventHandler(this.Matrix_Click); + // + // butto334 + // + this.butto334.BackColor = System.Drawing.Color.Black; + this.butto334.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.butto334.FlatAppearance.BorderColor = System.Drawing.Color.Black; + this.butto334.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.butto334.Location = new System.Drawing.Point(578, 78); + this.butto334.Name = "butto334"; + this.butto334.Size = new System.Drawing.Size(20, 20); + this.butto334.TabIndex = 36; + this.butto334.UseVisualStyleBackColor = false; + this.butto334.Click += new System.EventHandler(this.Matrix_Click); + // + // butto333 + // + this.butto333.BackColor = System.Drawing.Color.Black; + this.butto333.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.butto333.FlatAppearance.BorderColor = System.Drawing.Color.Black; + this.butto333.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.butto333.Location = new System.Drawing.Point(578, 52); + this.butto333.Name = "butto333"; + this.butto333.Size = new System.Drawing.Size(20, 20); + this.butto333.TabIndex = 35; + this.butto333.UseVisualStyleBackColor = false; + this.butto333.Click += new System.EventHandler(this.Matrix_Click); + // + // butto332 + // + this.butto332.BackColor = System.Drawing.Color.Black; + this.butto332.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.butto332.FlatAppearance.BorderColor = System.Drawing.Color.Black; + this.butto332.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.butto332.Location = new System.Drawing.Point(578, 26); + this.butto332.Name = "butto332"; + this.butto332.Size = new System.Drawing.Size(20, 20); + this.butto332.TabIndex = 34; + this.butto332.UseVisualStyleBackColor = false; + this.butto332.Click += new System.EventHandler(this.Matrix_Click); + // + // groupBoxColor + // + this.groupBoxColor.Controls.Add(this.ColorFuchsia); + this.groupBoxColor.Controls.Add(this.ColorSelect); + this.groupBoxColor.Controls.Add(this.ColorBlue); + this.groupBoxColor.Controls.Add(this.ColorBlack); + this.groupBoxColor.Controls.Add(this.ColorAqua); + this.groupBoxColor.Controls.Add(this.ColorWhite); + this.groupBoxColor.Controls.Add(this.ColorGreen); + this.groupBoxColor.Controls.Add(this.ColorRed); + this.groupBoxColor.Controls.Add(this.ColorYelow); + this.groupBoxColor.Controls.Add(this.ColorOrange); + this.groupBoxColor.Location = new System.Drawing.Point(410, 249); + this.groupBoxColor.Name = "groupBoxColor"; + this.groupBoxColor.Size = new System.Drawing.Size(323, 86); + this.groupBoxColor.TabIndex = 66; + this.groupBoxColor.TabStop = false; + this.groupBoxColor.Text = "Select Color"; + // + // ColorFuchsia + // + this.ColorFuchsia.BackColor = System.Drawing.Color.Fuchsia; + this.ColorFuchsia.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.ColorFuchsia.FlatAppearance.BorderColor = System.Drawing.Color.Black; + this.ColorFuchsia.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.ColorFuchsia.Location = new System.Drawing.Point(282, 26); + this.ColorFuchsia.Name = "ColorFuchsia"; + this.ColorFuchsia.Size = new System.Drawing.Size(20, 20); + this.ColorFuchsia.TabIndex = 83; + this.ColorFuchsia.UseVisualStyleBackColor = false; + this.ColorFuchsia.Click += new System.EventHandler(this.FixedColor_Click); + // + // ColorSelect + // + this.ColorSelect.Location = new System.Drawing.Point(17, 22); + this.ColorSelect.Name = "ColorSelect"; + this.ColorSelect.Size = new System.Drawing.Size(50, 50); + this.ColorSelect.TabIndex = 0; + this.ColorSelect.UseVisualStyleBackColor = true; + this.ColorSelect.Click += new System.EventHandler(this.ColorSelect_Click); + // + // ColorBlue + // + this.ColorBlue.BackColor = System.Drawing.Color.Blue; + this.ColorBlue.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.ColorBlue.FlatAppearance.BorderColor = System.Drawing.Color.Black; + this.ColorBlue.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.ColorBlue.Location = new System.Drawing.Point(256, 26); + this.ColorBlue.Name = "ColorBlue"; + this.ColorBlue.Size = new System.Drawing.Size(20, 20); + this.ColorBlue.TabIndex = 81; + this.ColorBlue.UseVisualStyleBackColor = false; + this.ColorBlue.Click += new System.EventHandler(this.FixedColor_Click); + // + // ColorBlack + // + this.ColorBlack.BackColor = System.Drawing.Color.Black; + this.ColorBlack.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.ColorBlack.FlatAppearance.BorderColor = System.Drawing.Color.Black; + this.ColorBlack.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.ColorBlack.Location = new System.Drawing.Point(78, 26); + this.ColorBlack.Name = "ColorBlack"; + this.ColorBlack.Size = new System.Drawing.Size(20, 20); + this.ColorBlack.TabIndex = 67; + this.ColorBlack.UseVisualStyleBackColor = false; + this.ColorBlack.Click += new System.EventHandler(this.FixedColor_Click); + // + // ColorAqua + // + this.ColorAqua.BackColor = System.Drawing.Color.Aqua; + this.ColorAqua.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.ColorAqua.FlatAppearance.BorderColor = System.Drawing.Color.Black; + this.ColorAqua.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.ColorAqua.Location = new System.Drawing.Point(230, 26); + this.ColorAqua.Name = "ColorAqua"; + this.ColorAqua.Size = new System.Drawing.Size(20, 20); + this.ColorAqua.TabIndex = 79; + this.ColorAqua.UseVisualStyleBackColor = false; + this.ColorAqua.Click += new System.EventHandler(this.FixedColor_Click); + // + // ColorWhite + // + this.ColorWhite.BackColor = System.Drawing.Color.White; + this.ColorWhite.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.ColorWhite.FlatAppearance.BorderColor = System.Drawing.Color.Black; + this.ColorWhite.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.ColorWhite.Location = new System.Drawing.Point(104, 26); + this.ColorWhite.Name = "ColorWhite"; + this.ColorWhite.Size = new System.Drawing.Size(20, 20); + this.ColorWhite.TabIndex = 69; + this.ColorWhite.UseVisualStyleBackColor = false; + this.ColorWhite.Click += new System.EventHandler(this.FixedColor_Click); + // + // ColorGreen + // + this.ColorGreen.BackColor = System.Drawing.Color.Lime; + this.ColorGreen.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.ColorGreen.FlatAppearance.BorderColor = System.Drawing.Color.Black; + this.ColorGreen.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.ColorGreen.Location = new System.Drawing.Point(205, 26); + this.ColorGreen.Name = "ColorGreen"; + this.ColorGreen.Size = new System.Drawing.Size(20, 20); + this.ColorGreen.TabIndex = 77; + this.ColorGreen.UseVisualStyleBackColor = false; + this.ColorGreen.Click += new System.EventHandler(this.FixedColor_Click); + // + // ColorRed + // + this.ColorRed.BackColor = System.Drawing.Color.Red; + this.ColorRed.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.ColorRed.FlatAppearance.BorderColor = System.Drawing.Color.Black; + this.ColorRed.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.ColorRed.Location = new System.Drawing.Point(129, 26); + this.ColorRed.Name = "ColorRed"; + this.ColorRed.Size = new System.Drawing.Size(20, 20); + this.ColorRed.TabIndex = 71; + this.ColorRed.UseVisualStyleBackColor = false; + this.ColorRed.Click += new System.EventHandler(this.FixedColor_Click); + // + // ColorYelow + // + this.ColorYelow.BackColor = System.Drawing.Color.Yellow; + this.ColorYelow.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.ColorYelow.FlatAppearance.BorderColor = System.Drawing.Color.Black; + this.ColorYelow.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.ColorYelow.Location = new System.Drawing.Point(179, 26); + this.ColorYelow.Name = "ColorYelow"; + this.ColorYelow.Size = new System.Drawing.Size(20, 20); + this.ColorYelow.TabIndex = 75; + this.ColorYelow.UseVisualStyleBackColor = false; + this.ColorYelow.Click += new System.EventHandler(this.FixedColor_Click); + // + // ColorOrange + // + this.ColorOrange.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(0))))); + this.ColorOrange.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.ColorOrange.FlatAppearance.BorderColor = System.Drawing.Color.Black; + this.ColorOrange.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.ColorOrange.Location = new System.Drawing.Point(155, 26); + this.ColorOrange.Name = "ColorOrange"; + this.ColorOrange.Size = new System.Drawing.Size(20, 20); + this.ColorOrange.TabIndex = 73; + this.ColorOrange.UseVisualStyleBackColor = false; + this.ColorOrange.Click += new System.EventHandler(this.FixedColor_Click); + // + // buttonClear + // + this.buttonClear.Location = new System.Drawing.Point(422, 357); + this.buttonClear.Name = "buttonClear"; + this.buttonClear.Size = new System.Drawing.Size(75, 23); + this.buttonClear.TabIndex = 5; + this.buttonClear.Text = "Clear"; + this.buttonClear.UseVisualStyleBackColor = true; + this.buttonClear.Click += new System.EventHandler(this.buttonClear_Click); + // + // FormMain + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(745, 407); + this.Controls.Add(this.buttonClear); + this.Controls.Add(this.groupBoxColor); + this.Controls.Add(this.butto556); + this.Controls.Add(this.butto557); + this.Controls.Add(this.butto558); + this.Controls.Add(this.butto559); + this.Controls.Add(this.butto660); + this.Controls.Add(this.butto661); + this.Controls.Add(this.butto662); + this.Controls.Add(this.butto663); + this.Controls.Add(this.butto555); + this.Controls.Add(this.butto554); + this.Controls.Add(this.butto553); + this.Controls.Add(this.butto552); + this.Controls.Add(this.butto551); + this.Controls.Add(this.butto550); + this.Controls.Add(this.butto449); + this.Controls.Add(this.butto448); + this.Controls.Add(this.button40); + this.Controls.Add(this.button41); + this.Controls.Add(this.button42); + this.Controls.Add(this.button43); + this.Controls.Add(this.button44); + this.Controls.Add(this.button45); + this.Controls.Add(this.button46); + this.Controls.Add(this.button47); + this.Controls.Add(this.butto339); + this.Controls.Add(this.butto338); + this.Controls.Add(this.butto337); + this.Controls.Add(this.butto336); + this.Controls.Add(this.butto335); + this.Controls.Add(this.butto334); + this.Controls.Add(this.butto333); + this.Controls.Add(this.butto332); + this.Controls.Add(this.butto224); + this.Controls.Add(this.butto225); + this.Controls.Add(this.butto226); + this.Controls.Add(this.butto227); + this.Controls.Add(this.butto228); + this.Controls.Add(this.butto229); + this.Controls.Add(this.butto330); + this.Controls.Add(this.butto331); + this.Controls.Add(this.butto223); + this.Controls.Add(this.butto222); + this.Controls.Add(this.butto221); + this.Controls.Add(this.butto220); + this.Controls.Add(this.butto119); + this.Controls.Add(this.butto118); + this.Controls.Add(this.butto117); + this.Controls.Add(this.butto116); + this.Controls.Add(this.button08); + this.Controls.Add(this.button09); + this.Controls.Add(this.button10); + this.Controls.Add(this.button11); + this.Controls.Add(this.button12); + this.Controls.Add(this.button13); + this.Controls.Add(this.button14); + this.Controls.Add(this.button15); + this.Controls.Add(this.button07); + this.Controls.Add(this.button06); + this.Controls.Add(this.button05); + this.Controls.Add(this.button04); + this.Controls.Add(this.button03); + this.Controls.Add(this.button02); + this.Controls.Add(this.button01); + this.Controls.Add(this.button00); + this.Controls.Add(this.groupBoxCOM); + this.Controls.Add(this.groupSettings); + this.Name = "FormMain"; + this.Text = "This is My New App"; + this.groupSettings.ResumeLayout(false); + this.groupBoxCOM.ResumeLayout(false); + this.groupBoxColor.ResumeLayout(false); + this.ResumeLayout(false); + + } + + #endregion + + private System.Windows.Forms.GroupBox groupSettings; + private System.Windows.Forms.RichTextBox TextBoxSettings; + private System.Windows.Forms.ComboBox comboBoxPort; + private System.Windows.Forms.Button buttonDisconnect; + private System.Windows.Forms.Button buttonConnect; + private System.Windows.Forms.Button buttonRefresh; + private System.Windows.Forms.GroupBox groupBoxCOM; + private System.Windows.Forms.RichTextBox COMTextBox; + private System.Windows.Forms.Button button00; + private System.Windows.Forms.Button button01; + private System.Windows.Forms.Button button02; + private System.Windows.Forms.Button button03; + private System.Windows.Forms.Button button04; + private System.Windows.Forms.Button button05; + private System.Windows.Forms.Button button06; + private System.Windows.Forms.Button button07; + private System.Windows.Forms.Button button08; + private System.Windows.Forms.Button button09; + private System.Windows.Forms.Button button10; + private System.Windows.Forms.Button button11; + private System.Windows.Forms.Button button12; + private System.Windows.Forms.Button button13; + private System.Windows.Forms.Button button14; + private System.Windows.Forms.Button button15; + private System.Windows.Forms.Button butto224; + private System.Windows.Forms.Button butto225; + private System.Windows.Forms.Button butto226; + private System.Windows.Forms.Button butto227; + private System.Windows.Forms.Button butto228; + private System.Windows.Forms.Button butto229; + private System.Windows.Forms.Button butto330; + private System.Windows.Forms.Button butto331; + private System.Windows.Forms.Button butto223; + private System.Windows.Forms.Button butto222; + private System.Windows.Forms.Button butto221; + private System.Windows.Forms.Button butto220; + private System.Windows.Forms.Button butto119; + private System.Windows.Forms.Button butto118; + private System.Windows.Forms.Button butto117; + private System.Windows.Forms.Button butto116; + private System.Windows.Forms.Button butto556; + private System.Windows.Forms.Button butto557; + private System.Windows.Forms.Button butto558; + private System.Windows.Forms.Button butto559; + private System.Windows.Forms.Button butto660; + private System.Windows.Forms.Button butto661; + private System.Windows.Forms.Button butto662; + private System.Windows.Forms.Button butto663; + private System.Windows.Forms.Button butto555; + private System.Windows.Forms.Button butto554; + private System.Windows.Forms.Button butto553; + private System.Windows.Forms.Button butto552; + private System.Windows.Forms.Button butto551; + private System.Windows.Forms.Button butto550; + private System.Windows.Forms.Button butto449; + private System.Windows.Forms.Button butto448; + private System.Windows.Forms.Button button40; + private System.Windows.Forms.Button button41; + private System.Windows.Forms.Button button42; + private System.Windows.Forms.Button button43; + private System.Windows.Forms.Button button44; + private System.Windows.Forms.Button button45; + private System.Windows.Forms.Button button46; + private System.Windows.Forms.Button button47; + private System.Windows.Forms.Button butto339; + private System.Windows.Forms.Button butto338; + private System.Windows.Forms.Button butto337; + private System.Windows.Forms.Button butto336; + private System.Windows.Forms.Button butto335; + private System.Windows.Forms.Button butto334; + private System.Windows.Forms.Button butto333; + private System.Windows.Forms.Button butto332; + private System.Windows.Forms.GroupBox groupBoxColor; + private System.Windows.Forms.Button ColorFuchsia; + private System.Windows.Forms.Button ColorSelect; + private System.Windows.Forms.Button ColorBlue; + private System.Windows.Forms.Button ColorBlack; + private System.Windows.Forms.Button ColorAqua; + private System.Windows.Forms.Button ColorWhite; + private System.Windows.Forms.Button ColorGreen; + private System.Windows.Forms.Button ColorRed; + private System.Windows.Forms.Button ColorYelow; + private System.Windows.Forms.Button ColorOrange; + internal System.Windows.Forms.ColorDialog colorDialog1; + private System.Windows.Forms.Button buttonClear; + } +} + diff --git a/FormMain.cs b/FormMain.cs new file mode 100644 index 0000000..6805cbe --- /dev/null +++ b/FormMain.cs @@ -0,0 +1,304 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; +using System.IO; +using System.IO.Ports; +using System.Text.RegularExpressions; +using System.Collections; +using System.Collections.Specialized; + +namespace MyNewApp +{ + public partial class FormMain : Form + { + SerialPort mySerialPort; + //PerformanceCounter ramCounter; + + public FormMain() + { + + InitializeComponent(); + + + this.FormClosing += new FormClosingEventHandler(myForm_FormClosing); + + var ports = SerialPort.GetPortNames(); + comboBoxPort.DataSource = ports; + + mySerialPort = new SerialPort(); + mySerialPort.DataReceived += new SerialDataReceivedEventHandler(MySerialPort_DataReceived); + } + void myForm_FormClosing(object sender, FormClosingEventArgs e) + { + mySerialPort.Close(); + } + delegate void SetTextCallback(Form f, Control ctrl, string text); + /// + /// Set text property of various controls + /// + /// The calling form + /// + /// + public static void SetText(Form form, Control ctrl, string text) + { + // InvokeRequired required compares the thread ID of the + // calling thread to the thread ID of the creating thread. + // If these threads are different, it returns true. + if (ctrl.InvokeRequired) + { + SetTextCallback d = new SetTextCallback(SetText); + form.Invoke(d, new object[] { form, ctrl, text }); + } + else + { + ctrl.Text = text ; + } + } + + public static void AddTextIn(Form form, Control ctrl, string text) + { + // InvokeRequired required compares the thread ID of the + // calling thread to the thread ID of the creating thread. + // If these threads are different, it returns true. + if (ctrl.InvokeRequired) + { + SetTextCallback d = new SetTextCallback(AddTextIn); + form.Invoke(d, new object[] { form, ctrl, text }); + } + else + { + ctrl.Text = ctrl.Text + "-->" + text + "\n" ; + } + } + + public static void AddTextOut(Form form, Control ctrl, string text) + { + // InvokeRequired required compares the thread ID of the + // calling thread to the thread ID of the creating thread. + // If these threads are different, it returns true. + if (ctrl.InvokeRequired) + { + SetTextCallback d = new SetTextCallback(AddTextOut); + form.Invoke(d, new object[] { form, ctrl, text }); + } + else + { + ctrl.Text = ctrl.Text + "<--" + text + "\n"; + } + } + + + private void buttonConnect_Click(object sender, EventArgs e) + { + if (String.IsNullOrEmpty(comboBoxPort.Text)) + { + SetText(this, TextBoxSettings, "Please select a COM port from drop-down menu! Press Refresh button to refresh the list of available COM ports."); + } + else + { + try + { + if (mySerialPort.IsOpen) + { + mySerialPort.Close(); + } + mySerialPort.PortName = comboBoxPort.Text; + mySerialPort.Open(); + if (mySerialPort.IsOpen) + { + SetText(this, TextBoxSettings, "Connected to " + comboBoxPort.Text); + } + } + catch (IOException ex) + { + SetText(this, TextBoxSettings, ex.Message); + } + } + } + private void buttonDisconnect_Click(object sender, EventArgs e) + { + try + { + if (mySerialPort.IsOpen) + { + mySerialPort.Close(); + SetText(this, TextBoxSettings, "COM port disconnected!"); + } + } + catch (IOException ex) + { + SetText(this, TextBoxSettings, ex.Message); + } + + } + private void buttonRefresh_Click(object sender, EventArgs e) + { + var ports = SerialPort.GetPortNames(); + comboBoxPort.DataSource = ports; + } + private void MySerialPort_DataReceived(object sender, SerialDataReceivedEventArgs e) + { + try + { + string rxString = mySerialPort.ReadExisting(); + byte[] txBuffer = new byte[64]; + AddTextIn(this, COMTextBox, rxString); + switch (rxString[0]) + { + case 'b': + + //SetText(this, COMTextBoxIn, rxString); + break; + case 'v': + + break; + case 'f': + + break; + } + } + catch (IOException ex) + { + SetText(this, TextBoxSettings, ex.Message); + } + } + + // all Color buttons: + private void PrintColor(Control ctrl) + { + // gets last 2 button name characters + var str = ctrl.Name.ToString(); + // Get first three characters. + // string sub = input.Substring(0, 3); + str = str.Substring(str.Length - 2); + str = "b" + str + ctrl.BackColor.R.ToString("D3") + ctrl.BackColor.G.ToString("D3") + ctrl.BackColor.B.ToString("D3"); + + + if (mySerialPort.IsOpen) + { + AddTextOut(this, COMTextBox, str); + mySerialPort.Write( str + "\n"); + //mySerialPort.Close(); + } + else { + SetText(this, TextBoxSettings, "First connect to COM port!"); + } + + } + + private void ColorSelect_Click(object sender, System.EventArgs e) + { + ColorDialog MyDialog = new ColorDialog(); + // Keeps the user from selecting a custom color. + MyDialog.AllowFullOpen = true; + // Allows the user to get help. (The default is false.) + MyDialog.ShowHelp = true; + // Sets the initial color select to the current text color. + MyDialog.Color = ColorSelect.BackColor; + + // Update the text box color if the user clicks OK + if (MyDialog.ShowDialog() == DialogResult.OK) + { + ColorSelect.BackColor = MyDialog.Color; + PrintColor(ColorSelect); + } + } + private void FixedColor_Click(object sender, System.EventArgs e) + { + Button btnClick = (Button)sender; + ColorSelect.BackColor = btnClick.BackColor; + //PrintColor(ColorSelect); + } + private void Matrix_Click(object sender, System.EventArgs e) + { + Button btnClick = (Button)sender; + var butname = sender as Button; + btnClick.BackColor = ColorSelect.BackColor; + PrintColor(btnClick); + } + + private void buttonClear_Click(object sender, EventArgs e) + { + if (mySerialPort.IsOpen) + { + mySerialPort.Write("c\n"); + SetText(this, COMTextBox, ""); + // clear buttons + button00.BackColor = Color.Black; + button01.BackColor = Color.Black; + button02.BackColor = Color.Black; + button03.BackColor = Color.Black; + button04.BackColor = Color.Black; + button05.BackColor = Color.Black; + button06.BackColor = Color.Black; + button07.BackColor = Color.Black; + button08.BackColor = Color.Black; + button09.BackColor = Color.Black; + button10.BackColor = Color.Black; + button11.BackColor = Color.Black; + button12.BackColor = Color.Black; + button13.BackColor = Color.Black; + button14.BackColor = Color.Black; + button15.BackColor = Color.Black; + butto224.BackColor = Color.Black; + butto225.BackColor = Color.Black; + butto226.BackColor = Color.Black; + butto227.BackColor = Color.Black; + butto228.BackColor = Color.Black; + butto229.BackColor = Color.Black; + butto330.BackColor = Color.Black; + butto331.BackColor = Color.Black; + butto223.BackColor = Color.Black; + butto222.BackColor = Color.Black; + butto221.BackColor = Color.Black; + butto220.BackColor = Color.Black; + butto119.BackColor = Color.Black; + butto118.BackColor = Color.Black; + butto117.BackColor = Color.Black; + butto116.BackColor = Color.Black; + butto556.BackColor = Color.Black; + butto557.BackColor = Color.Black; + butto558.BackColor = Color.Black; + butto559.BackColor = Color.Black; + butto660.BackColor = Color.Black; + butto661.BackColor = Color.Black; + butto662.BackColor = Color.Black; + butto663.BackColor = Color.Black; + butto555.BackColor = Color.Black; + butto554.BackColor = Color.Black; + butto553.BackColor = Color.Black; + butto552.BackColor = Color.Black; + butto551.BackColor = Color.Black; + butto550.BackColor = Color.Black; + butto449.BackColor = Color.Black; + butto448.BackColor = Color.Black; + button40.BackColor = Color.Black; + button41.BackColor = Color.Black; + button42.BackColor = Color.Black; + button43.BackColor = Color.Black; + button44.BackColor = Color.Black; + button45.BackColor = Color.Black; + button46.BackColor = Color.Black; + button47.BackColor = Color.Black; + butto339.BackColor = Color.Black; + butto338.BackColor = Color.Black; + butto337.BackColor = Color.Black; + butto336.BackColor = Color.Black; + butto335.BackColor = Color.Black; + butto334.BackColor = Color.Black; + butto333.BackColor = Color.Black; + butto332.BackColor = Color.Black; + } + else + { + SetText(this, TextBoxSettings, "First connect to COM port!"); + } + } + } +} diff --git a/FormMain.resx b/FormMain.resx new file mode 100644 index 0000000..aa0ca0f --- /dev/null +++ b/FormMain.resx @@ -0,0 +1,123 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 17, 17 + + \ No newline at end of file diff --git a/MyNewApp.csproj b/MyNewApp.csproj new file mode 100644 index 0000000..c4680f9 --- /dev/null +++ b/MyNewApp.csproj @@ -0,0 +1,83 @@ + + + + + Debug + AnyCPU + {AAF3B5AB-5D66-4124-A093-FA6153E6FFAE} + WinExe + MyNewApp + MyNewApp + v4.7.2 + 512 + true + true + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + Form + + + FormMain.cs + + + + + FormMain.cs + + + ResXFileCodeGenerator + Resources.Designer.cs + Designer + + + True + Resources.resx + + + SettingsSingleFileGenerator + Settings.Designer.cs + + + True + Settings.settings + True + + + + + + + \ No newline at end of file diff --git a/MyNewApp.sln b/MyNewApp.sln new file mode 100644 index 0000000..13749c9 --- /dev/null +++ b/MyNewApp.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.30011.22 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MyNewApp", "MyNewApp.csproj", "{AAF3B5AB-5D66-4124-A093-FA6153E6FFAE}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {AAF3B5AB-5D66-4124-A093-FA6153E6FFAE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {AAF3B5AB-5D66-4124-A093-FA6153E6FFAE}.Debug|Any CPU.Build.0 = Debug|Any CPU + {AAF3B5AB-5D66-4124-A093-FA6153E6FFAE}.Release|Any CPU.ActiveCfg = Release|Any CPU + {AAF3B5AB-5D66-4124-A093-FA6153E6FFAE}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {942BDF01-7A10-4003-8D3A-8382B11CE14A} + EndGlobalSection +EndGlobal diff --git a/Program.cs b/Program.cs new file mode 100644 index 0000000..b2c85a5 --- /dev/null +++ b/Program.cs @@ -0,0 +1,22 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace MyNewApp +{ + static class Program + { + /// + /// The main entry point for the application. + /// + [STAThread] + static void Main() + { + Application.EnableVisualStyles(); + Application.SetCompatibleTextRenderingDefault(false); + Application.Run(new FormMain()); + } + } +} diff --git a/Properties/AssemblyInfo.cs b/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..1c032e2 --- /dev/null +++ b/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("MyNewApp")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("MyNewApp")] +[assembly: AssemblyCopyright("Copyright © 2020")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("aaf3b5ab-5d66-4124-a093-fa6153e6ffae")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/Properties/Resources.Designer.cs b/Properties/Resources.Designer.cs new file mode 100644 index 0000000..ac01a16 --- /dev/null +++ b/Properties/Resources.Designer.cs @@ -0,0 +1,71 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace MyNewApp.Properties +{ + + + /// + /// A strongly-typed resource class, for looking up localized strings, etc. + /// + // This class was auto-generated by the StronglyTypedResourceBuilder + // class via a tool like ResGen or Visual Studio. + // To add or remove a member, edit your .ResX file then rerun ResGen + // with the /str option, or rebuild your VS project. + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + internal class Resources + { + + private static global::System.Resources.ResourceManager resourceMan; + + private static global::System.Globalization.CultureInfo resourceCulture; + + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + internal Resources() + { + } + + /// + /// Returns the cached ResourceManager instance used by this class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Resources.ResourceManager ResourceManager + { + get + { + if ((resourceMan == null)) + { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("MyNewApp.Properties.Resources", typeof(Resources).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + /// + /// Overrides the current thread's CurrentUICulture property for all + /// resource lookups using this strongly typed resource class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Globalization.CultureInfo Culture + { + get + { + return resourceCulture; + } + set + { + resourceCulture = value; + } + } + } +} diff --git a/Properties/Resources.resx b/Properties/Resources.resx new file mode 100644 index 0000000..af7dbeb --- /dev/null +++ b/Properties/Resources.resx @@ -0,0 +1,117 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/Properties/Settings.Designer.cs b/Properties/Settings.Designer.cs new file mode 100644 index 0000000..917b16e --- /dev/null +++ b/Properties/Settings.Designer.cs @@ -0,0 +1,30 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace MyNewApp.Properties +{ + + + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")] + internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase + { + + private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); + + public static Settings Default + { + get + { + return defaultInstance; + } + } + } +} diff --git a/Properties/Settings.settings b/Properties/Settings.settings new file mode 100644 index 0000000..3964565 --- /dev/null +++ b/Properties/Settings.settings @@ -0,0 +1,7 @@ + + + + + + +