private void buttonAddButton_Click(object sender, EventArgs e) { if (String.IsNullOrEmpty(textBoxDescription.Text)) { MessageBox.Show("Please enter a description"); textBoxDescription.Focus(); return; } if (String.IsNullOrEmpty(textBoxDefaultQuantity.Text)) { MessageBox.Show("Please enter a Quantity"); textBoxDescription.Focus(); return; } Sol_QuantityButton sol_QuantityButton = new Sol_QuantityButton(); //try //{ // sol_QuantityButton.WorkStationID = Convert.ToInt32(comboBoxWorkStation.SelectedValue.ToString()); //} //catch //{ // sol_QuantityButton.WorkStationID = 1; //} sol_QuantityButton.WorkStationID = -1; sol_QuantityButton.ControlType = 1; sol_QuantityButton.Description = textBoxDescription.Text; try { sol_QuantityButton.DefaultQuantity = Convert.ToInt32(textBoxDefaultQuantity.Text); } catch { sol_QuantityButton.DefaultQuantity = 1; } sol_QuantityButton.CategoryID = 0;// comboBoxCategory.SelectedIndex; sol_QuantityButton.LocationX = 0; sol_QuantityButton.LocationY = 0; sol_QuantityButton.Width = 0; sol_QuantityButton.Height = 0; sol_QuantityButton.Font = "[Font: Name=Microsoft Sans Serif, Size=7.8, Units=3, GdiCharSet=0, GdiVerticalFont=False]"; sol_QuantityButton.FontStyle = "Regular"; //sol_QuantityButton.ForeColor = label5.ForeColor.ToArgb().ToString("x"); //sol_QuantityButton.BackColor = label5.BackColor.ToArgb().ToString("x"); sol_QuantityButton_Sp.Insert(sol_QuantityButton); ReadControlsQuantity(); }
/// <summary> /// Selects all records from the sol_QuantityButtons table. /// </summary> public virtual List <Sol_QuantityButton> SelectAll() { using (SqlDataReader dataReader = SqlClientUtility.ExecuteReader(connectionStringName, CommandType.StoredProcedure, "sol_QuantityButtons_SelectAll")) { List <Sol_QuantityButton> sol_QuantityButtonList = new List <Sol_QuantityButton>(); while (dataReader.Read()) { Sol_QuantityButton sol_QuantityButton = MakeSol_QuantityButton(dataReader); sol_QuantityButtonList.Add(sol_QuantityButton); } return(sol_QuantityButtonList); } }
/// <summary> /// Creates a new instance of the sol_QuantityButtons class and populates it with data from the specified SqlDataReader. /// </summary> protected virtual Sol_QuantityButton MakeSol_QuantityButton(SqlDataReader dataReader) { Sol_QuantityButton sol_QuantityButton = new Sol_QuantityButton(); sol_QuantityButton.QuantityButtonID = SqlClientUtility.GetInt32(dataReader, "QuantityButtonID", 0); sol_QuantityButton.WorkStationID = SqlClientUtility.GetInt32(dataReader, "WorkStationID", 0); sol_QuantityButton.ControlType = SqlClientUtility.GetByte(dataReader, "ControlType", 0x00); sol_QuantityButton.Description = SqlClientUtility.GetString(dataReader, "Description", String.Empty); sol_QuantityButton.DefaultQuantity = SqlClientUtility.GetInt32(dataReader, "DefaultQuantity", 0); sol_QuantityButton.CategoryID = SqlClientUtility.GetInt32(dataReader, "CategoryID", 0); sol_QuantityButton.LocationX = SqlClientUtility.GetInt32(dataReader, "LocationX", 0); sol_QuantityButton.LocationY = SqlClientUtility.GetInt32(dataReader, "LocationY", 0); sol_QuantityButton.Width = SqlClientUtility.GetInt32(dataReader, "Width", 0); sol_QuantityButton.Height = SqlClientUtility.GetInt32(dataReader, "Height", 0); sol_QuantityButton.Font = SqlClientUtility.GetString(dataReader, "Font", String.Empty); sol_QuantityButton.FontStyle = SqlClientUtility.GetString(dataReader, "FontStyle", String.Empty); sol_QuantityButton.ForeColor = SqlClientUtility.GetString(dataReader, "ForeColor", String.Empty); sol_QuantityButton.BackColor = SqlClientUtility.GetString(dataReader, "BackColor", String.Empty); return(sol_QuantityButton); }
/// <summary> /// Saves a record to the sol_QuantityButtons table. /// </summary> public virtual void Insert(Sol_QuantityButton sol_QuantityButton) { ValidationUtility.ValidateArgument("sol_QuantityButton", sol_QuantityButton); SqlParameter[] parameters = new SqlParameter[] { new SqlParameter("@WorkStationID", sol_QuantityButton.WorkStationID), new SqlParameter("@ControlType", sol_QuantityButton.ControlType), new SqlParameter("@Description", sol_QuantityButton.Description), new SqlParameter("@DefaultQuantity", sol_QuantityButton.DefaultQuantity), new SqlParameter("@CategoryID", sol_QuantityButton.CategoryID), new SqlParameter("@LocationX", sol_QuantityButton.LocationX), new SqlParameter("@LocationY", sol_QuantityButton.LocationY), new SqlParameter("@Width", sol_QuantityButton.Width), new SqlParameter("@Height", sol_QuantityButton.Height), new SqlParameter("@Font", sol_QuantityButton.Font), new SqlParameter("@FontStyle", sol_QuantityButton.FontStyle), new SqlParameter("@ForeColor", sol_QuantityButton.ForeColor), new SqlParameter("@BackColor", sol_QuantityButton.BackColor) }; sol_QuantityButton.QuantityButtonID = (int)SqlClientUtility.ExecuteScalar(connectionStringName, CommandType.StoredProcedure, "sol_QuantityButtons_Insert", parameters); }
//read controls for workstation private void ReadControlsQuantity() { panelQuantityButtons.Controls.Clear(); sol_QuantityButtonList = new List <Sol_QuantityButton>(); Sol_QuantityButton sol_QuantityButton = new Sol_QuantityButton(); sol_QuantityButton_Sp = new Sol_QuantityButton_Sp(Properties.Settings.Default.WsirDbConnectionString); //sol_QuantityButtonList = sol_QuantityButton_Sp._SelectAllByWorkStationID(/*Convert.ToInt32(comboBoxWorkStation.SelectedValue.ToString())*/-1); sol_QuantityButtonList = sol_QuantityButton_Sp.SelectAll(); this.arrayListItems = new ArrayList(); this.arrayListControls = new ArrayList(); int numberOfButtons = 1; int scrollBardLength = 20; int separationLength = 20; decimal ajuste = 0.95m; decimal ajusteHeight = 0.79m; int buttonWidth = (panelQuantityButtons.Size.Width - separationLength - scrollBardLength) / numberOfButtons, buttonHeight = 76; // 55; buttonWidth = (int)(buttonWidth * ajuste); buttonHeight = (int)(buttonHeight * ajusteHeight); //int buttonWidth = 100, buttonHeight = 62; int separatorX = 10, separatorY = 10; int locationX = panelQuantityButtons.Location.X, locationY = panelQuantityButtons.Location.Y; int col = 0; int i = 0; foreach (Sol_QuantityButton cb in sol_QuantityButtonList) { arrayListControls.Add(cb); switch (cb.ControlType) { case 1: //Button if (i == 0) { locationY -= separatorY; } this.arrayListItems.Add(new System.Windows.Forms.Button()); ((System.Windows.Forms.Button) this.arrayListItems[i]).Location = new System.Drawing.Point( //panel1.Location.X + cb.LocationX, //panel1.Location.Y + cb.LocationY locationX + separatorX, locationY + separatorY ); locationX += buttonWidth + separatorX; col++; if (col > 0) { col = 0; locationX = panelQuantityButtons.Location.X; locationY += buttonHeight + separatorY; } ((System.Windows.Forms.Button) this.arrayListItems[i]).Name = "Button_" + Convert.ToString(i); ((System.Windows.Forms.Button) this.arrayListItems[i]).Size = new System.Drawing.Size(buttonWidth, buttonHeight); //cb.Width, cb.Height); ((System.Windows.Forms.Button) this.arrayListItems[i]).TabIndex = i + 2; ((System.Windows.Forms.Button) this.arrayListItems[i]).Text = cb.Description.Trim(); //((System.Windows.Forms.Button)this.arrayListItems[i]).BackColor = SystemColors.Control; ((System.Windows.Forms.Button) this.arrayListItems[i]).Font = Funciones.FontParser(cb.Font, cb.FontStyle); ((System.Windows.Forms.Button) this.arrayListItems[i]).ForeColor = Funciones.ColorParser(cb.ForeColor); ((System.Windows.Forms.Button) this.arrayListItems[i]).BackColor = Funciones.ColorParser(cb.BackColor); ((System.Windows.Forms.Button) this.arrayListItems[i]).Click += new System.EventHandler(this.buttonQuantity_Click); //this.Controls.Add(((System.Windows.Forms.Button)this.arrayListItems[i])); panelQuantityButtons.Controls.Add(((System.Windows.Forms.Button) this.arrayListItems[i++])); break; } } //panel1.SendToBack(); }
private void CreateTableLayoutPanelView2() { this.tableLayoutPanelView2 = new System.Windows.Forms.TableLayoutPanel(); this.panelTableLayoutPanelView2_KeyPad = new System.Windows.Forms.Panel(); this.labelClear = new System.Windows.Forms.Label(); this.labelPad = new System.Windows.Forms.Label(); this.labeBackSpace = new System.Windows.Forms.Label(); this.labelX02 = new System.Windows.Forms.Label(); this.labelX01 = new System.Windows.Forms.Label(); this.label0 = new System.Windows.Forms.Label(); this.label3 = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label(); this.label1 = new System.Windows.Forms.Label(); this.label6 = new System.Windows.Forms.Label(); this.label5 = new System.Windows.Forms.Label(); this.label4 = new System.Windows.Forms.Label(); this.label9 = new System.Windows.Forms.Label(); this.label8 = new System.Windows.Forms.Label(); this.label7 = new System.Windows.Forms.Label(); this.labelX = new System.Windows.Forms.Label(); this.labelPadTotal = new System.Windows.Forms.Label(); this.panelTableLayoutPanelView2_Buttons = new System.Windows.Forms.Panel(); this.tableLayoutPanelView2.SuspendLayout(); this.panelTableLayoutPanelView2_KeyPad.SuspendLayout(); this.SuspendLayout(); // // tableLayoutPanelView2 // //this.tableLayoutPanelView2.BackColor = System.Drawing.SystemColors.WindowText;// .WindowFrame; this.tableLayoutPanelView2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(52)))), ((int)(((byte)(56))))); this.tableLayoutPanelView2.Dock = System.Windows.Forms.DockStyle.Fill; this.tableLayoutPanelView2.ColumnCount = 2; float size1 = 0F; float size2 = 0F; int col1 = 0; int col2 = 0; //if (Main.Sol_ControlInfo.NumericKeyPadPosition == 0) //right //{ size1 = CategoryButtons.buttonContainerWidth; // 245F; size2 = 367F; col1 = 1; col2 = 0; //} //else //{ // size1 = 367F; // size2 = CategoryButtons.buttonContainerWidth; // 245F; // col1 = 0; // col2 = 1; //} this.tableLayoutPanelView2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, size1)); this.tableLayoutPanelView2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, size2)); this.tableLayoutPanelView2.Controls.Add(this.panelTableLayoutPanelView2_KeyPad, col1, 0); this.tableLayoutPanelView2.Controls.Add(this.panelTableLayoutPanelView2_Buttons, col2, 0); this.tableLayoutPanelView2.Location = new System.Drawing.Point(199, 173); this.tableLayoutPanelView2.Name = "tableLayoutPanelView2"; this.tableLayoutPanelView2.Padding = new System.Windows.Forms.Padding(0, 10, 0, 0); this.tableLayoutPanelView2.RowCount = 1; this.tableLayoutPanelView2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); this.tableLayoutPanelView2.Size = new System.Drawing.Size(612, 482); this.tableLayoutPanelView2.TabIndex = 12; // // panelTableLayoutPanelView2Left // this.panelTableLayoutPanelView2_KeyPad.BackgroundImage = global::Solum.Properties.Resources.NumericKeyPad1; this.panelTableLayoutPanelView2_KeyPad.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; this.panelTableLayoutPanelView2_KeyPad.Controls.Add(this.labelClear); this.panelTableLayoutPanelView2_KeyPad.Controls.Add(this.labelPad); this.panelTableLayoutPanelView2_KeyPad.Controls.Add(this.labeBackSpace); this.panelTableLayoutPanelView2_KeyPad.Controls.Add(this.labelX01); this.panelTableLayoutPanelView2_KeyPad.Controls.Add(this.labelX02); this.panelTableLayoutPanelView2_KeyPad.Controls.Add(this.label0); this.panelTableLayoutPanelView2_KeyPad.Controls.Add(this.label3); this.panelTableLayoutPanelView2_KeyPad.Controls.Add(this.label2); this.panelTableLayoutPanelView2_KeyPad.Controls.Add(this.label1); this.panelTableLayoutPanelView2_KeyPad.Controls.Add(this.label6); this.panelTableLayoutPanelView2_KeyPad.Controls.Add(this.label5); this.panelTableLayoutPanelView2_KeyPad.Controls.Add(this.label4); this.panelTableLayoutPanelView2_KeyPad.Controls.Add(this.label9); this.panelTableLayoutPanelView2_KeyPad.Controls.Add(this.label8); this.panelTableLayoutPanelView2_KeyPad.Controls.Add(this.label7); this.panelTableLayoutPanelView2_KeyPad.Controls.Add(this.labelX); this.panelTableLayoutPanelView2_KeyPad.Controls.Add(this.labelPadTotal); this.panelTableLayoutPanelView2_KeyPad.Dock = System.Windows.Forms.DockStyle.Fill; this.panelTableLayoutPanelView2_KeyPad.Location = new System.Drawing.Point(3, 3); this.panelTableLayoutPanelView2_KeyPad.Name = "panelTableLayoutPanelView2Left"; this.panelTableLayoutPanelView2_KeyPad.Size = new System.Drawing.Size(361, 476); this.panelTableLayoutPanelView2_KeyPad.TabIndex = 0; // // labelClear // this.labelClear.BackColor = System.Drawing.Color.Transparent; this.labelClear.Cursor = System.Windows.Forms.Cursors.Hand; this.labelClear.Location = new System.Drawing.Point(250, 4); this.labelClear.Name = "labelClear"; this.labelClear.Size = new System.Drawing.Size(102, 64); this.labelClear.TabIndex = 17; this.labelClear.Click += new System.EventHandler(this.labelClear_Click); // // labelPadTotal // this.labelPadTotal.BackColor = System.Drawing.Color.Transparent; this.labelPadTotal.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.labelPadTotal.Location = new System.Drawing.Point(16, 3); this.labelPadTotal.Name = "labelPadTotal"; this.labelPadTotal.Size = new System.Drawing.Size(220, 29); this.labelPadTotal.TabIndex = 23; this.labelPadTotal.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // labelPad // this.labelPad.BackColor = System.Drawing.Color.Transparent; this.labelPad.Font = new System.Drawing.Font("Microsoft Sans Serif", 24F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.labelPad.Location = new System.Drawing.Point(16, 33); this.labelPad.Name = "labelPad"; this.labelPad.Size = new System.Drawing.Size(220, 30); this.labelPad.TabIndex = 16; this.labelPad.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // labeBackSpace // this.labeBackSpace.BackColor = System.Drawing.Color.Transparent; this.labeBackSpace.Cursor = System.Windows.Forms.Cursors.Hand; this.labeBackSpace.Location = new System.Drawing.Point(248, 81); this.labeBackSpace.Name = "labeBackSpace"; this.labeBackSpace.Size = new System.Drawing.Size(102, 64); this.labeBackSpace.TabIndex = 15; this.labeBackSpace.Click += new System.EventHandler(this.labelBackSpace_Click); // // labelX01 // //Sol_QuantityButton sol_QuantityButton = new Sol_QuantityButton(); if (sol_QuantityButton_Sp == null) { sol_QuantityButton_Sp = new Sol_QuantityButton_Sp(Properties.Settings.Default.WsirDbConnectionString); } List <Sol_QuantityButton> sol_QuantityButtonList; sol_QuantityButtonList = sol_QuantityButton_Sp.SelectAll(); //string[] str = new string[2]; //foreach (Sol_EmployeeLookup emp in sol_EmployeeLookupList) //{ Sol_QuantityButton sol_QuantityButton = null; if (sol_QuantityButtonList != null) { if (sol_QuantityButtonList.Count > 0) { sol_QuantityButton = sol_QuantityButtonList[0]; } } if (sol_QuantityButton == null) { sol_QuantityButton = new Sol_QuantityButton(); sol_QuantityButton.Description = "2x"; sol_QuantityButton.DefaultQuantity = 2; } this.labelX01.Text = sol_QuantityButton.Description; //this.labelX02.ImageIndex = sol_QuantityButton.DefaultQuantity; //i'm using imageIndex to stored defaultQuantity this.labelX01.Font = new System.Drawing.Font("Microsoft Sans Serif", 14F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.labelX01.ForeColor = System.Drawing.Color.WhiteSmoke; this.labelX01.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.labelX01.BackColor = System.Drawing.Color.Transparent; this.labelX01.Cursor = System.Windows.Forms.Cursors.Hand; this.labelX01.Location = new System.Drawing.Point(14, 81); this.labelX01.Name = "labelX" + sol_QuantityButton.DefaultQuantity.ToString(); this.labelX01.Size = new System.Drawing.Size(102, 64); this.labelX01.TabIndex = 14; this.labelX01.Click += new System.EventHandler(this.labelX_Click); //this.labelX02_Click); // // labelX02 // sol_QuantityButton = null; if (sol_QuantityButtonList != null) { if (sol_QuantityButtonList.Count > 1) { sol_QuantityButton = sol_QuantityButtonList[1]; } } if (sol_QuantityButton == null) { sol_QuantityButton = new Sol_QuantityButton(); sol_QuantityButton.Description = "6x"; sol_QuantityButton.DefaultQuantity = 6; } this.labelX02.Text = sol_QuantityButton.Description; //this.labelX02.ImageIndex = sol_QuantityButton.DefaultQuantity; //i'm using imageIndex to stored defaultQuantity this.labelX02.Font = new System.Drawing.Font("Microsoft Sans Serif", 14F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.labelX02.ForeColor = System.Drawing.Color.WhiteSmoke; this.labelX02.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.labelX02.BackColor = System.Drawing.Color.Transparent; this.labelX02.Cursor = System.Windows.Forms.Cursors.Hand; this.labelX02.Location = new System.Drawing.Point(129, 81); this.labelX02.Name = "labelX" + sol_QuantityButton.DefaultQuantity.ToString(); this.labelX02.Size = new System.Drawing.Size(102, 64); this.labelX02.TabIndex = 13; this.labelX02.Click += new System.EventHandler(this.labelX_Click); //this.labelX01_Click); // // label0 // this.label0.BackColor = System.Drawing.Color.Transparent; this.label0.Cursor = System.Windows.Forms.Cursors.Hand; this.label0.Location = new System.Drawing.Point(10, 422); this.label0.Name = "label0"; this.label0.Size = new System.Drawing.Size(220, 70); this.label0.TabIndex = 12; this.label0.Click += new System.EventHandler(this.label0_Click); this.label0.DoubleClick += new System.EventHandler(this.label0_Click); // // label3 // this.label3.BackColor = System.Drawing.Color.Transparent; this.label3.Cursor = System.Windows.Forms.Cursors.Hand; this.label3.Location = new System.Drawing.Point(246, 336); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(102, 67); this.label3.TabIndex = 11; this.label3.Click += new System.EventHandler(this.label0_Click); this.label3.DoubleClick += new System.EventHandler(this.label0_Click); // // label2 // this.label2.BackColor = System.Drawing.Color.Transparent; this.label2.Cursor = System.Windows.Forms.Cursors.Hand; this.label2.Location = new System.Drawing.Point(129, 336); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(102, 67); this.label2.TabIndex = 10; this.label2.Click += new System.EventHandler(this.label0_Click); this.label2.DoubleClick += new System.EventHandler(this.label0_Click); // // label1 // this.label1.BackColor = System.Drawing.Color.Transparent; this.label1.Cursor = System.Windows.Forms.Cursors.Hand; this.label1.Location = new System.Drawing.Point(11, 336); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(102, 67); this.label1.TabIndex = 9; this.label1.Click += new System.EventHandler(this.label0_Click); this.label1.DoubleClick += new System.EventHandler(this.label0_Click); // // label6 // this.label6.BackColor = System.Drawing.Color.Transparent; this.label6.Cursor = System.Windows.Forms.Cursors.Hand; this.label6.Location = new System.Drawing.Point(247, 252); this.label6.Name = "label6"; this.label6.Size = new System.Drawing.Size(102, 67); this.label6.TabIndex = 8; this.label6.Click += new System.EventHandler(this.label0_Click); this.label6.DoubleClick += new System.EventHandler(this.label0_Click); // // label5 // this.label5.BackColor = System.Drawing.Color.Transparent; this.label5.Cursor = System.Windows.Forms.Cursors.Hand; this.label5.Location = new System.Drawing.Point(129, 252); this.label5.Name = "label5"; this.label5.Size = new System.Drawing.Size(102, 67); this.label5.TabIndex = 7; this.label5.Click += new System.EventHandler(this.label0_Click); this.label5.DoubleClick += new System.EventHandler(this.label0_Click); // // label4 // this.label4.BackColor = System.Drawing.Color.Transparent; this.label4.Cursor = System.Windows.Forms.Cursors.Hand; this.label4.Location = new System.Drawing.Point(11, 252); this.label4.Name = "label4"; this.label4.Size = new System.Drawing.Size(102, 67); this.label4.TabIndex = 6; this.label4.Click += new System.EventHandler(this.label0_Click); this.label4.DoubleClick += new System.EventHandler(this.label0_Click); // // label9 // this.label9.BackColor = System.Drawing.Color.Transparent; this.label9.Cursor = System.Windows.Forms.Cursors.Hand; this.label9.Location = new System.Drawing.Point(248, 165); this.label9.Name = "label9"; this.label9.Size = new System.Drawing.Size(102, 67); this.label9.TabIndex = 5; this.label9.Click += new System.EventHandler(this.label0_Click); this.label9.DoubleClick += new System.EventHandler(this.label0_Click); // // label8 // this.label8.BackColor = System.Drawing.Color.Transparent; this.label8.Cursor = System.Windows.Forms.Cursors.Hand; this.label8.Location = new System.Drawing.Point(130, 164); //134, 157 this.label8.Name = "label8"; this.label8.Size = new System.Drawing.Size(102, 67); //98,57 this.label8.TabIndex = 4; this.label8.Click += new System.EventHandler(this.label0_Click); this.label8.DoubleClick += new System.EventHandler(this.label0_Click); // // label7 // this.label7.BackColor = System.Drawing.Color.Transparent; this.label7.Cursor = System.Windows.Forms.Cursors.Hand; this.label7.Location = new System.Drawing.Point(11, 165); //15, 158 this.label7.Name = "label7"; this.label7.Size = new System.Drawing.Size(102, 67); //98, 57 this.label7.TabIndex = 3; this.label7.Click += new System.EventHandler(this.label0_Click); this.label7.DoubleClick += new System.EventHandler(this.label0_Click); // // labelX // this.labelX.BackgroundImage = global::Solum.Properties.Resources.OrangeButton; this.labelX.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom; this.labelX.Font = new System.Drawing.Font("Microsoft Sans Serif", 18F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.labelX.ForeColor = System.Drawing.Color.White; this.labelX.Location = new System.Drawing.Point(250, 424); this.labelX.Name = "labelX"; this.labelX.Size = new System.Drawing.Size(102, 67); this.labelX.TabIndex = 22; this.labelX.Text = "X"; this.labelX.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.labelX.Click += new System.EventHandler(this.labelXMultiply_Click); // // panelTableLayoutPanelView2Right // this.panelTableLayoutPanelView2_Buttons.Dock = System.Windows.Forms.DockStyle.Fill; this.panelTableLayoutPanelView2_Buttons.Location = new System.Drawing.Point(370, 3); this.panelTableLayoutPanelView2_Buttons.Name = "panelTableLayoutPanelView2Right"; //this.panelTableLayoutPanelView2_Buttons.Size = new System.Drawing.Size(239, 476); this.panelTableLayoutPanelView2_Buttons.Size = new System.Drawing.Size(CategoryButtons.buttonContainerWidth, CategoryButtons.buttonContainerHeight); this.panelTableLayoutPanelView2_Buttons.TabIndex = 1; this.panelTableLayoutPanelView2_Buttons.AutoScroll = true; // // Form1 // //this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F); //this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; //this.ClientSize = new System.Drawing.Size(959, 716); //this.Controls.Add(this.tableLayoutPanelView2); //this.Name = "Form1"; //this.Text = "Form1"; //this.Load += new System.EventHandler(this.Form1_Load); this.panelView.Controls.Add(this.tableLayoutPanelView2); this.tableLayoutPanelView2.ResumeLayout(false); this.panelTableLayoutPanelView2_KeyPad.ResumeLayout(false); this.ResumeLayout(false); }