private Microsoft.VisualBasic.PowerPacks.ShapeContainer newLineShape(int x1, int y1, int x2, int y2, string name, string text, DashStyle dashStyle, int borderWidth) { Microsoft.VisualBasic.PowerPacks.ShapeContainer shapeContainer1 = new Microsoft.VisualBasic.PowerPacks.ShapeContainer(); Microsoft.VisualBasic.PowerPacks.LineShape lineShape1 = new Microsoft.VisualBasic.PowerPacks.LineShape(); shapeContainer1.Location = new System.Drawing.Point(3, 17); shapeContainer1.Margin = new System.Windows.Forms.Padding(0); shapeContainer1.Name = "shapeContainer1"; shapeContainer1.Shapes.AddRange(new Microsoft.VisualBasic.PowerPacks.Shape[] { lineShape1 }); shapeContainer1.Size = new System.Drawing.Size(244, 230); shapeContainer1.TabIndex = 0; shapeContainer1.TabStop = false; // // lineShape1 // lineShape1.BorderStyle = dashStyle; lineShape1.BorderWidth = borderWidth; lineShape1.Name = "lineShape1"; lineShape1.X1 = x1; lineShape1.X2 = x2; lineShape1.Y1 = y1; lineShape1.Y2 = y2; return(shapeContainer1); }
private void increase_button_Click(object sender, EventArgs e) { // Increment x co-ordinate of the sensors to the right for (int x = 0; x < sensorLst.Count; x++) { Microsoft.VisualBasic.PowerPacks.OvalShape currSensor = sensorLst[x]; // Check if passes upper limit of x = 1130, if true break. if (currSensor.Left + 20 > 1130) { break; } else { currSensor.Left += 20; } } // Increment x co-ordinate of the lines to match the sensors for (int x = 0; x < rows; x++) { for (int y = 0; y < cols; y++) { Microsoft.VisualBasic.PowerPacks.LineShape currLine = linesLst[x, y]; // Check if at upper limit of x = 1139, if true break. if (currLine.X2 + 20 > 1139) { break; } else { currLine.X2 += 20; } } } }
private async void start_op_Click(object sender, EventArgs e) { // clear window button_all_off_Click(sender, e); // Turn on one emitter in order while only one can be on at a time int currEmitter = 0; while (true) { // Turn off lines that don't belong to the current emitter for (int i = 0; i < rows; i++) { for (int j = 0; j < cols; j++) { Microsoft.VisualBasic.PowerPacks.LineShape currLine = linesLst[i, j]; currLine.Visible = false; } } // Turn on the current emitter lines for (int p = 0; p < cols; p++) { Microsoft.VisualBasic.PowerPacks.LineShape currLine = linesLst[currEmitter, p]; currLine.Visible = true; } // exit condition check if (exitFlag == true) { break; } await Task.Delay(1000); // next emitter if (currEmitter + 1 <= 7) { currEmitter = currEmitter + 1; } else { currEmitter = 0; } if (exitFlag == true) { break; } } // reset the exitFlag exitFlag = false; // -- button_all_ON_Click(sender, e); }
private void default_button_Click(object sender, EventArgs e) { // Change location of all sensors to 1130, max fit for (int x = 0; x < sensorLst.Count; x++) { Microsoft.VisualBasic.PowerPacks.OvalShape currLine = sensorLst[x]; currLine.Left = 1130; } // Change x2 of all lines to 1139 to match the sensors for (int x = 0; x < rows; x++) { for (int y = 0; y < cols; y++) { Microsoft.VisualBasic.PowerPacks.LineShape currLine = linesLst[x, y]; currLine.X2 = 1139; } } }
// Turn OFF all emitters private void button_all_off_Click(object sender, EventArgs e) { // Change "visible" of all emitters to false; for (int r = 0; r < rows; r++) { for (int c = 0; c < cols; c++) { Microsoft.VisualBasic.PowerPacks.LineShape currLine = linesLst[r, c]; currLine.Visible = false; } } /* * for (int x = 0; x < linesLst.Count; x++) * { * Microsoft.VisualBasic.PowerPacks.LineShape currLine = linesLst[x]; * currLine.Visible = false; * } */ }
private void decrease_button_Click(object sender, EventArgs e) { // Decrement x co-ordinate of the sensors to the left for (int x = 0; x < sensorLst.Count; x++) { Microsoft.VisualBasic.PowerPacks.OvalShape currSensor = sensorLst[x]; // Check if passes Lower limit of x = 18, if true break. if (currSensor.Left - 20 < 18) { break; } else { currSensor.Left -= 20; } } // Decrement x co-ordinate of the lines to match the sensors for (int x = 0; x < rows; x++) { for (int y = 0; y < cols; y++) { Microsoft.VisualBasic.PowerPacks.LineShape currLine = linesLst[x, y]; // Check if passes lower limit of x = 18, if true break. if (currLine.X2 - 20 < 27) { break; } else { currLine.X2 -= 20; } } } }
private void checkQ_Tick(object sender, EventArgs e) { if (myQueue.Count != 0) { byte[] bytes = myQueue.Dequeue(); Console.WriteLine("Received Queue Data from Multicast.\n"); uint header = BitConverter.ToUInt32(bytes, MCIDX_HEADER + 4); //add 4 because there is a 4-byte byte count before the body Console.WriteLine("Header = " + header); uint time = BitConverter.ToUInt32(bytes, MCIDX_TIME_T + 4); Console.WriteLine("Time = " + header); float xvalue = BitConverter.ToSingle(bytes, MCIDX_X_INTERCEPT + 4); Console.WriteLine("x intercept = " + xvalue); float yvalue = BitConverter.ToSingle(bytes, MCIDX_Y_INTERCEPT + 4); Console.WriteLine("x intercept = " + yvalue); uint[] sensor_state = new uint[8]; for (int i = 0; i < 8; i++) { sensor_state[i] = BitConverter.ToUInt32(bytes, MCIDX_IR0_SENSOR_ST + (i * 4) + 4); Console.WriteLine("ir #" + i + " sensor = " + sensor_state[i]); } for (int led = 0; led < 8; led++) { for (int sens = 0; sens < 8; sens++) // 8 sensors { int mask = (1 << sens); int bit = (int)(sensor_state[led] & mask) & 0xff; if (bit == 0) { Microsoft.VisualBasic.PowerPacks.LineShape currLine = linesLst[led, sens]; currLine.Visible = true; } } } /* * byte[] all_pairs = new byte[32]; * * // Only pair sensor information for each emitter * Buffer.BlockCopy(bytes, 20, all_pairs, 0, 32); * int emitter_byte_offset = 4; * int sensor_offset; * * // Toggle correct lines, "i" is the emitter * * Console.WriteLine(" pairs on form ------"); * // Loop for number of emitters * for (int i = 0; i < rows; i++) * { * sensor_offset = 0; * // Loop for number of bytes for one emitter, which is also the number of possible sensors. * for (int j = 0; j < 4; j++) * { * byte pairs = all_pairs[j + (i * emitter_byte_offset)]; * // Loop for checking bit by bit in a byte * for( int k = 0; k < 8; k ++){ * var bit = pairs & (1 << j); * if (bit == 0) * { * Console.WriteLine("Emitter: " + i + " with off sensor: " + j + sensor_offset); * Microsoft.VisualBasic.PowerPacks.LineShape currLine = linesLst[i, j + sensor_offset]; * currLine.Visible = true; * } * } * sensor_offset = sensor_offset + 8; * } * * sensor_state[i] = BitConverter.ToUInt32(bytes, MCIDX_IR0_SENSOR_ST + (i * 4) + 4); * Console.WriteLine("\n"); * } * Console.WriteLine(" pairs end -----"); * */ } else { // nothing } }
private void traserparafrente(object sender, MouseEventArgs e) { if (this.Cursor == Cursors.Hand) { if (objOrigem != sender) { Panel painel = (Panel) objOrigem; Panel painel2 = (Panel)sender; this.Cursor = Cursors.Default; Microsoft.VisualBasic.PowerPacks.LineShape linha = new Microsoft.VisualBasic.PowerPacks.LineShape(); linha.ContextMenuStrip = contextMenuStripObjetos; ShapeContainer shapeContainer = new ShapeContainer(); shapeContainer.Shapes.Add(linha); linha.X1 = painel.Location.X + painel.Size.Width; linha.X2 = painel2.Location.X; linha.Y1 = painel.Location.Y + 4; linha.Y2 = painel2.Location.Y + 3; panel1.Controls.Add(shapeContainer); /* Graphics g = panel1.CreateGraphics(); Pen pen = new Pen(Color.Red); g.DrawLine(pen, painel.Location.X, painel.Location.Y, painel2.Location.X, painel2.Location.Y); g.Dispose(); */ } } else { Panel painel = (Panel)sender; painel.BringToFront(); } }
private void InitializeComponent() { this._PanelAccounts = new Shellscape.UI.Controls.Preferences.PreferencesPanel(); this._LabelAccountIntro = new System.Windows.Forms.Label(); this._ButtonNewAccount = new System.Windows.Forms.Button(); this._PanelAppearance = new Shellscape.UI.Controls.Preferences.PreferencesPanel(); this._CheckToast = new System.Windows.Forms.CheckBox(); this._CheckTray = new System.Windows.Forms.CheckBox(); this._CheckFlash = new System.Windows.Forms.CheckBox(); this._LabelLanguage = new System.Windows.Forms.Label(); this._ComboLanguage = new System.Windows.Forms.ComboBox(); this.shapeContainer2 = new Microsoft.VisualBasic.PowerPacks.ShapeContainer(); this.lineShape2 = new Microsoft.VisualBasic.PowerPacks.LineShape(); this._PanelNewAccount = new GmailNotifierPlus.Controls.AccountPanel(); this._CheckUpdates = new System.Windows.Forms.CheckBox(); this._LabelSound = new System.Windows.Forms.Label(); this._LabelInterval = new System.Windows.Forms.Label(); this._LabelMinutes = new System.Windows.Forms.Label(); this._TextInterval = new Shellscape.UI.Controls.NumericTextBox(); this._ComboSound = new System.Windows.Forms.ComboBox(); this._ButtonBrowse = new System.Windows.Forms.Button(); this.lineShape1 = new Microsoft.VisualBasic.PowerPacks.LineShape(); this.shapeContainer1 = new Microsoft.VisualBasic.PowerPacks.ShapeContainer(); this.lineShape3 = new Microsoft.VisualBasic.PowerPacks.LineShape(); this._PanelGeneral.SuspendLayout(); this._PanelParent.SuspendLayout(); this._PanelAccounts.SuspendLayout(); this._PanelAppearance.SuspendLayout(); this.SuspendLayout(); // // _PanelGeneral // this._PanelGeneral.Controls.Add(this._ButtonBrowse); this._PanelGeneral.Controls.Add(this._ComboSound); this._PanelGeneral.Controls.Add(this._TextInterval); this._PanelGeneral.Controls.Add(this._LabelMinutes); this._PanelGeneral.Controls.Add(this._LabelInterval); this._PanelGeneral.Controls.Add(this._LabelSound); this._PanelGeneral.Controls.Add(this._CheckUpdates); this._PanelGeneral.Controls.Add(this.shapeContainer1); // // _PanelParent // this._PanelParent.Controls.Add(this._PanelAppearance); this._PanelParent.Controls.Add(this._PanelAccounts); this._PanelParent.Controls.Add(this._PanelNewAccount); this._PanelParent.Controls.SetChildIndex(this._PanelNewAccount, 0); this._PanelParent.Controls.SetChildIndex(this._PanelGeneral, 0); this._PanelParent.Controls.SetChildIndex(this._PanelAccounts, 0); this._PanelParent.Controls.SetChildIndex(this._PanelAppearance, 0); // // _PanelAccounts // this._PanelAccounts.BackColor = System.Drawing.Color.Transparent; this._PanelAccounts.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(119)))), ((int)(((byte)(119)))), ((int)(((byte)(119))))); this._PanelAccounts.ControlBackColor = System.Drawing.Color.White; this._PanelAccounts.Controls.Add(this._LabelAccountIntro); this._PanelAccounts.Controls.Add(this._ButtonNewAccount); this._PanelAccounts.Dock = System.Windows.Forms.DockStyle.Fill; this._PanelAccounts.DrawHeader = true; this._PanelAccounts.Font = new System.Drawing.Font("Segoe UI", 9F); this._PanelAccounts.HeaderColorFrom = System.Drawing.Color.FromArgb(((int)(((byte)(254)))), ((int)(((byte)(254)))), ((int)(((byte)(254))))); this._PanelAccounts.HeaderColorTo = System.Drawing.Color.FromArgb(((int)(((byte)(228)))), ((int)(((byte)(228)))), ((int)(((byte)(228))))); this._PanelAccounts.HeaderForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(100)))), ((int)(((byte)(100)))), ((int)(((byte)(100))))); this._PanelAccounts.HeaderHeight = 39; this._PanelAccounts.HeaderImage = null; this._PanelAccounts.HeaderPadding = new System.Windows.Forms.Padding(10, 5, 10, 5); this._PanelAccounts.HeaderText = "Manage your accounts"; this._PanelAccounts.Location = new System.Drawing.Point(12, 12); this._PanelAccounts.Margin = new System.Windows.Forms.Padding(12, 0, 0, 0); this._PanelAccounts.Name = "_PanelAccounts"; this._PanelAccounts.Padding = new System.Windows.Forms.Padding(10, 45, 10, 10); this._PanelAccounts.SeperatorColor = System.Drawing.Color.FromArgb(((int)(((byte)(200)))), ((int)(((byte)(200)))), ((int)(((byte)(200))))); this._PanelAccounts.Size = new System.Drawing.Size(500, 394); this._PanelAccounts.TabIndex = 3; // // _LabelAccountIntro // this._LabelAccountIntro.AutoSize = true; this._LabelAccountIntro.Location = new System.Drawing.Point(13, 45); this._LabelAccountIntro.MaximumSize = new System.Drawing.Size(450, 0); this._LabelAccountIntro.Name = "_LabelAccountIntro"; this._LabelAccountIntro.Size = new System.Drawing.Size(436, 30); this._LabelAccountIntro.TabIndex = 1; this._LabelAccountIntro.Text = "Click an account to the left to manage your individual accounts. Click the button" + " below to add a new account."; // // _ButtonNewAccount // this._ButtonNewAccount.AutoSize = true; this._ButtonNewAccount.Location = new System.Drawing.Point(292, 92); this._ButtonNewAccount.Name = "_ButtonNewAccount"; this._ButtonNewAccount.Size = new System.Drawing.Size(170, 30); this._ButtonNewAccount.TabIndex = 0; this._ButtonNewAccount.Text = "Add New Account"; this._ButtonNewAccount.UseVisualStyleBackColor = true; // // _PanelAppearance // this._PanelAppearance.BackColor = System.Drawing.Color.Transparent; this._PanelAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(119)))), ((int)(((byte)(119)))), ((int)(((byte)(119))))); this._PanelAppearance.ControlBackColor = System.Drawing.Color.White; this._PanelAppearance.Controls.Add(this._CheckToast); this._PanelAppearance.Controls.Add(this._CheckTray); this._PanelAppearance.Controls.Add(this._CheckFlash); this._PanelAppearance.Controls.Add(this._LabelLanguage); this._PanelAppearance.Controls.Add(this._ComboLanguage); this._PanelAppearance.Controls.Add(this.shapeContainer2); this._PanelAppearance.Dock = System.Windows.Forms.DockStyle.Fill; this._PanelAppearance.DrawHeader = true; this._PanelAppearance.Font = new System.Drawing.Font("Segoe UI", 9F); this._PanelAppearance.HeaderColorFrom = System.Drawing.Color.FromArgb(((int)(((byte)(254)))), ((int)(((byte)(254)))), ((int)(((byte)(254))))); this._PanelAppearance.HeaderColorTo = System.Drawing.Color.FromArgb(((int)(((byte)(228)))), ((int)(((byte)(228)))), ((int)(((byte)(228))))); this._PanelAppearance.HeaderForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(100)))), ((int)(((byte)(100)))), ((int)(((byte)(100))))); this._PanelAppearance.HeaderHeight = 39; this._PanelAppearance.HeaderImage = null; this._PanelAppearance.HeaderPadding = new System.Windows.Forms.Padding(10, 5, 10, 5); this._PanelAppearance.HeaderText = ""; this._PanelAppearance.Location = new System.Drawing.Point(12, 12); this._PanelAppearance.Margin = new System.Windows.Forms.Padding(12, 0, 0, 0); this._PanelAppearance.Name = "_PanelAppearance"; this._PanelAppearance.Padding = new System.Windows.Forms.Padding(10, 45, 10, 10); this._PanelAppearance.SeperatorColor = System.Drawing.Color.FromArgb(((int)(((byte)(200)))), ((int)(((byte)(200)))), ((int)(((byte)(200))))); this._PanelAppearance.Size = new System.Drawing.Size(500, 394); this._PanelAppearance.TabIndex = 4; // // _CheckToast // this._CheckToast.AutoSize = true; this._CheckToast.Location = new System.Drawing.Point(15, 141); this._CheckToast.Name = "_CheckToast"; this._CheckToast.Size = new System.Drawing.Size(231, 19); this._CheckToast.TabIndex = 3; this._CheckToast.Text = "Show Toast notifications for new Email"; this._CheckToast.UseVisualStyleBackColor = true; // // _CheckTray // this._CheckTray.AutoSize = true; this._CheckTray.Location = new System.Drawing.Point(15, 116); this._CheckTray.Name = "_CheckTray"; this._CheckTray.Size = new System.Drawing.Size(201, 19); this._CheckTray.TabIndex = 2; this._CheckTray.Text = "Show Email count in System Tray"; this._CheckTray.UseVisualStyleBackColor = true; // // _CheckFlash // this._CheckFlash.AutoSize = true; this._CheckFlash.Location = new System.Drawing.Point(15, 91); this._CheckFlash.Name = "_CheckFlash"; this._CheckFlash.Size = new System.Drawing.Size(172, 19); this._CheckFlash.TabIndex = 1; this._CheckFlash.Text = "Flash Taskbar for new Email"; this._CheckFlash.UseVisualStyleBackColor = true; // // _LabelLanguage // this._LabelLanguage.AutoSize = true; this._LabelLanguage.Location = new System.Drawing.Point(11, 51); this._LabelLanguage.Name = "_LabelLanguage"; this._LabelLanguage.Size = new System.Drawing.Size(100, 15); this._LabelLanguage.TabIndex = 48; this._LabelLanguage.Text = "Display language:"; // // _ComboLanguage // this._ComboLanguage.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this._ComboLanguage.FlatStyle = System.Windows.Forms.FlatStyle.System; this._ComboLanguage.FormattingEnabled = true; this._ComboLanguage.Location = new System.Drawing.Point(117, 48); this._ComboLanguage.Name = "_ComboLanguage"; this._ComboLanguage.Size = new System.Drawing.Size(134, 23); this._ComboLanguage.TabIndex = 0; // // shapeContainer2 // this.shapeContainer2.Location = new System.Drawing.Point(10, 45); this.shapeContainer2.Margin = new System.Windows.Forms.Padding(0); this.shapeContainer2.Name = "shapeContainer2"; this.shapeContainer2.Shapes.AddRange(new Microsoft.VisualBasic.PowerPacks.Shape[] { this.lineShape2 }); this.shapeContainer2.Size = new System.Drawing.Size(480, 339); this.shapeContainer2.TabIndex = 50; this.shapeContainer2.TabStop = false; // // lineShape2 // this.lineShape2.BorderColor = System.Drawing.Color.Red; this.lineShape2.Name = "lineShape2"; this.lineShape2.X1 = -6; this.lineShape2.X2 = 294; this.lineShape2.Y1 = 35; this.lineShape2.Y2 = 35; // // _PanelNewAccount // this._PanelNewAccount.Account = null; this._PanelNewAccount.BackColor = System.Drawing.Color.Transparent; this._PanelNewAccount.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(119)))), ((int)(((byte)(119)))), ((int)(((byte)(119))))); this._PanelNewAccount.ControlBackColor = System.Drawing.Color.White; this._PanelNewAccount.Dock = System.Windows.Forms.DockStyle.Fill; this._PanelNewAccount.DrawHeader = true; this._PanelNewAccount.Font = new System.Drawing.Font("Segoe UI", 9F); this._PanelNewAccount.HeaderColorFrom = System.Drawing.Color.FromArgb(((int)(((byte)(254)))), ((int)(((byte)(254)))), ((int)(((byte)(254))))); this._PanelNewAccount.HeaderColorTo = System.Drawing.Color.FromArgb(((int)(((byte)(228)))), ((int)(((byte)(228)))), ((int)(((byte)(228))))); this._PanelNewAccount.HeaderForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(100)))), ((int)(((byte)(100)))), ((int)(((byte)(100))))); this._PanelNewAccount.HeaderHeight = 39; this._PanelNewAccount.HeaderImage = null; this._PanelNewAccount.HeaderPadding = new System.Windows.Forms.Padding(10, 5, 10, 5); this._PanelNewAccount.HeaderText = "Add a New Account"; this._PanelNewAccount.Location = new System.Drawing.Point(12, 12); this._PanelNewAccount.Margin = new System.Windows.Forms.Padding(12, 0, 0, 0); this._PanelNewAccount.Name = "_PanelNewAccount"; this._PanelNewAccount.Padding = new System.Windows.Forms.Padding(2, 45, 2, 2); this._PanelNewAccount.SeperatorColor = System.Drawing.Color.FromArgb(((int)(((byte)(200)))), ((int)(((byte)(200)))), ((int)(((byte)(200))))); this._PanelNewAccount.Size = new System.Drawing.Size(500, 394); this._PanelNewAccount.TabIndex = 5; // // _CheckUpdates // this._CheckUpdates.AutoSize = true; this._CheckUpdates.Location = new System.Drawing.Point(12, 165); this._CheckUpdates.Name = "_CheckUpdates"; this._CheckUpdates.Size = new System.Drawing.Size(123, 19); this._CheckUpdates.TabIndex = 51; this._CheckUpdates.Text = "Check for Updates"; this._CheckUpdates.UseVisualStyleBackColor = true; // // _LabelSound // this._LabelSound.AutoSize = true; this._LabelSound.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this._LabelSound.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(51)))), ((int)(((byte)(153))))); this._LabelSound.Location = new System.Drawing.Point(8, 48); this._LabelSound.Name = "_LabelSound"; this._LabelSound.Size = new System.Drawing.Size(39, 21); this._LabelSound.TabIndex = 52; this._LabelSound.Text = "Title"; // // _LabelInterval // this._LabelInterval.AutoSize = true; this._LabelInterval.Location = new System.Drawing.Point(12, 123); this._LabelInterval.Name = "_LabelInterval"; this._LabelInterval.Size = new System.Drawing.Size(106, 15); this._LabelInterval.TabIndex = 53; this._LabelInterval.Text = "Check Email every:"; // // _LabelMinutes // this._LabelMinutes.AutoSize = true; this._LabelMinutes.Location = new System.Drawing.Point(157, 123); this._LabelMinutes.Name = "_LabelMinutes"; this._LabelMinutes.Size = new System.Drawing.Size(58, 15); this._LabelMinutes.TabIndex = 54; this._LabelMinutes.Text = "minute(s)"; // // _TextInterval // this._TextInterval.AllowNegativeValues = true; this._TextInterval.Location = new System.Drawing.Point(124, 122); this._TextInterval.Name = "_TextInterval"; this._TextInterval.Size = new System.Drawing.Size(27, 23); this._TextInterval.TabIndex = 55; this._TextInterval.Text = "1"; this._TextInterval.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; // // _ComboSound // this._ComboSound.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this._ComboSound.FlatStyle = System.Windows.Forms.FlatStyle.System; this._ComboSound.FormattingEnabled = true; this._ComboSound.Location = new System.Drawing.Point(12, 80); this._ComboSound.Name = "_ComboSound"; this._ComboSound.Size = new System.Drawing.Size(164, 23); this._ComboSound.TabIndex = 56; // // _ButtonBrowse // this._ButtonBrowse.AutoSize = true; this._ButtonBrowse.Enabled = false; this._ButtonBrowse.FlatStyle = System.Windows.Forms.FlatStyle.System; this._ButtonBrowse.Location = new System.Drawing.Point(182, 79); this._ButtonBrowse.MinimumSize = new System.Drawing.Size(65, 23); this._ButtonBrowse.Name = "_ButtonBrowse"; this._ButtonBrowse.Size = new System.Drawing.Size(68, 26); this._ButtonBrowse.TabIndex = 57; this._ButtonBrowse.Text = "Browse..."; this._ButtonBrowse.UseVisualStyleBackColor = true; // // lineShape1 // this.lineShape1.BorderColor = System.Drawing.Color.Red; this.lineShape1.Name = "lineShape1"; this.lineShape1.X1 = -3; this.lineShape1.X2 = 297; this.lineShape1.Y1 = 67; this.lineShape1.Y2 = 67; // // shapeContainer1 // this.shapeContainer1.Location = new System.Drawing.Point(10, 45); this.shapeContainer1.Margin = new System.Windows.Forms.Padding(0); this.shapeContainer1.Name = "shapeContainer1"; this.shapeContainer1.Shapes.AddRange(new Microsoft.VisualBasic.PowerPacks.Shape[] { this.lineShape3, this.lineShape1 }); this.shapeContainer1.Size = new System.Drawing.Size(480, 339); this.shapeContainer1.TabIndex = 58; this.shapeContainer1.TabStop = false; // // lineShape3 // this.lineShape3.BorderColor = System.Drawing.Color.Red; this.lineShape3.Name = "lineShape3"; this.lineShape3.X1 = 1; this.lineShape3.X2 = 301; this.lineShape3.Y1 = 109; this.lineShape3.Y2 = 109; // // Preferences // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.ClientSize = new System.Drawing.Size(724, 412); this.Name = "Preferences"; this._PanelGeneral.ResumeLayout(false); this._PanelGeneral.PerformLayout(); this._PanelParent.ResumeLayout(false); this._PanelAccounts.ResumeLayout(false); this._PanelAccounts.PerformLayout(); this._PanelAppearance.ResumeLayout(false); this._PanelAppearance.PerformLayout(); this.ResumeLayout(false); }
private void InitializeComponent() { this._PanelAccounts = new Shellscape.UI.Controls.Preferences.PreferencesPanel(); this._LabelAccountIntro = new System.Windows.Forms.Label(); this._ButtonNewAccount = new System.Windows.Forms.Button(); this._PanelAppearance = new Shellscape.UI.Controls.Preferences.PreferencesPanel(); this._CheckToast = new System.Windows.Forms.CheckBox(); this._CheckTray = new System.Windows.Forms.CheckBox(); this._CheckFlash = new System.Windows.Forms.CheckBox(); this._LabelLanguage = new System.Windows.Forms.Label(); this._ComboLanguage = new System.Windows.Forms.ComboBox(); this.shapeContainer2 = new Microsoft.VisualBasic.PowerPacks.ShapeContainer(); this.lineShape2 = new Microsoft.VisualBasic.PowerPacks.LineShape(); this._PanelNewAccount = new GmailNotifierPlus.Controls.AccountPanel(); this._CheckUpdates = new System.Windows.Forms.CheckBox(); this._LabelSound = new System.Windows.Forms.Label(); this._LabelInterval = new System.Windows.Forms.Label(); this._LabelMinutes = new System.Windows.Forms.Label(); this._TextInterval = new Shellscape.UI.Controls.NumericTextBox(); this._ComboSound = new System.Windows.Forms.ComboBox(); this._ButtonBrowse = new System.Windows.Forms.Button(); this.lineShape1 = new Microsoft.VisualBasic.PowerPacks.LineShape(); this.shapeContainer1 = new Microsoft.VisualBasic.PowerPacks.ShapeContainer(); this.lineShape3 = new Microsoft.VisualBasic.PowerPacks.LineShape(); this._PanelGeneral.SuspendLayout(); this._PanelParent.SuspendLayout(); this._PanelAccounts.SuspendLayout(); this._PanelAppearance.SuspendLayout(); this.SuspendLayout(); // // _PanelGeneral // this._PanelGeneral.Controls.Add(this._ButtonBrowse); this._PanelGeneral.Controls.Add(this._ComboSound); this._PanelGeneral.Controls.Add(this._TextInterval); this._PanelGeneral.Controls.Add(this._LabelMinutes); this._PanelGeneral.Controls.Add(this._LabelInterval); this._PanelGeneral.Controls.Add(this._LabelSound); this._PanelGeneral.Controls.Add(this._CheckUpdates); this._PanelGeneral.Controls.Add(this.shapeContainer1); // // _PanelParent // this._PanelParent.Controls.Add(this._PanelAppearance); this._PanelParent.Controls.Add(this._PanelAccounts); this._PanelParent.Controls.Add(this._PanelNewAccount); this._PanelParent.Controls.SetChildIndex(this._PanelNewAccount, 0); this._PanelParent.Controls.SetChildIndex(this._PanelGeneral, 0); this._PanelParent.Controls.SetChildIndex(this._PanelAccounts, 0); this._PanelParent.Controls.SetChildIndex(this._PanelAppearance, 0); // // _PanelAccounts // this._PanelAccounts.BackColor = System.Drawing.Color.Transparent; this._PanelAccounts.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(119)))), ((int)(((byte)(119)))), ((int)(((byte)(119))))); this._PanelAccounts.ControlBackColor = System.Drawing.Color.White; this._PanelAccounts.Controls.Add(this._LabelAccountIntro); this._PanelAccounts.Controls.Add(this._ButtonNewAccount); this._PanelAccounts.Dock = System.Windows.Forms.DockStyle.Fill; this._PanelAccounts.DrawHeader = true; this._PanelAccounts.Font = new System.Drawing.Font("Segoe UI", 9F); this._PanelAccounts.HeaderColorFrom = System.Drawing.Color.FromArgb(((int)(((byte)(254)))), ((int)(((byte)(254)))), ((int)(((byte)(254))))); this._PanelAccounts.HeaderColorTo = System.Drawing.Color.FromArgb(((int)(((byte)(228)))), ((int)(((byte)(228)))), ((int)(((byte)(228))))); this._PanelAccounts.HeaderForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(100)))), ((int)(((byte)(100)))), ((int)(((byte)(100))))); this._PanelAccounts.HeaderHeight = 39; this._PanelAccounts.HeaderImage = null; this._PanelAccounts.HeaderPadding = new System.Windows.Forms.Padding(10, 5, 10, 5); this._PanelAccounts.HeaderText = "Manage your accounts"; this._PanelAccounts.Location = new System.Drawing.Point(12, 12); this._PanelAccounts.Margin = new System.Windows.Forms.Padding(12, 0, 0, 0); this._PanelAccounts.Name = "_PanelAccounts"; this._PanelAccounts.Padding = new System.Windows.Forms.Padding(10, 45, 10, 10); this._PanelAccounts.SeperatorColor = System.Drawing.Color.FromArgb(((int)(((byte)(200)))), ((int)(((byte)(200)))), ((int)(((byte)(200))))); this._PanelAccounts.Size = new System.Drawing.Size(500, 394); this._PanelAccounts.TabIndex = 3; // // _LabelAccountIntro // this._LabelAccountIntro.AutoSize = true; this._LabelAccountIntro.Location = new System.Drawing.Point(13, 45); this._LabelAccountIntro.MaximumSize = new System.Drawing.Size(450, 0); this._LabelAccountIntro.Name = "_LabelAccountIntro"; this._LabelAccountIntro.Size = new System.Drawing.Size(436, 30); this._LabelAccountIntro.TabIndex = 1; this._LabelAccountIntro.Text = "Click an account to the left to manage your individual accounts. Click the button" + " below to add a new account."; // // _ButtonNewAccount // this._ButtonNewAccount.AutoSize = true; this._ButtonNewAccount.Location = new System.Drawing.Point(292, 92); this._ButtonNewAccount.Name = "_ButtonNewAccount"; this._ButtonNewAccount.Size = new System.Drawing.Size(170, 30); this._ButtonNewAccount.TabIndex = 0; this._ButtonNewAccount.Text = "Add New Account"; this._ButtonNewAccount.UseVisualStyleBackColor = true; // // _PanelAppearance // this._PanelAppearance.BackColor = System.Drawing.Color.Transparent; this._PanelAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(119)))), ((int)(((byte)(119)))), ((int)(((byte)(119))))); this._PanelAppearance.ControlBackColor = System.Drawing.Color.White; this._PanelAppearance.Controls.Add(this._CheckToast); this._PanelAppearance.Controls.Add(this._CheckTray); this._PanelAppearance.Controls.Add(this._CheckFlash); this._PanelAppearance.Controls.Add(this._LabelLanguage); this._PanelAppearance.Controls.Add(this._ComboLanguage); this._PanelAppearance.Controls.Add(this.shapeContainer2); this._PanelAppearance.Dock = System.Windows.Forms.DockStyle.Fill; this._PanelAppearance.DrawHeader = true; this._PanelAppearance.Font = new System.Drawing.Font("Segoe UI", 9F); this._PanelAppearance.HeaderColorFrom = System.Drawing.Color.FromArgb(((int)(((byte)(254)))), ((int)(((byte)(254)))), ((int)(((byte)(254))))); this._PanelAppearance.HeaderColorTo = System.Drawing.Color.FromArgb(((int)(((byte)(228)))), ((int)(((byte)(228)))), ((int)(((byte)(228))))); this._PanelAppearance.HeaderForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(100)))), ((int)(((byte)(100)))), ((int)(((byte)(100))))); this._PanelAppearance.HeaderHeight = 39; this._PanelAppearance.HeaderImage = null; this._PanelAppearance.HeaderPadding = new System.Windows.Forms.Padding(10, 5, 10, 5); this._PanelAppearance.HeaderText = ""; this._PanelAppearance.Location = new System.Drawing.Point(12, 12); this._PanelAppearance.Margin = new System.Windows.Forms.Padding(12, 0, 0, 0); this._PanelAppearance.Name = "_PanelAppearance"; this._PanelAppearance.Padding = new System.Windows.Forms.Padding(10, 45, 10, 10); this._PanelAppearance.SeperatorColor = System.Drawing.Color.FromArgb(((int)(((byte)(200)))), ((int)(((byte)(200)))), ((int)(((byte)(200))))); this._PanelAppearance.Size = new System.Drawing.Size(500, 394); this._PanelAppearance.TabIndex = 4; // // _CheckToast // this._CheckToast.AutoSize = true; this._CheckToast.Location = new System.Drawing.Point(15, 141); this._CheckToast.Name = "_CheckToast"; this._CheckToast.Size = new System.Drawing.Size(231, 19); this._CheckToast.TabIndex = 3; this._CheckToast.Text = "Show Toast notifications for new Email"; this._CheckToast.UseVisualStyleBackColor = true; // // _CheckTray // this._CheckTray.AutoSize = true; this._CheckTray.Location = new System.Drawing.Point(15, 116); this._CheckTray.Name = "_CheckTray"; this._CheckTray.Size = new System.Drawing.Size(201, 19); this._CheckTray.TabIndex = 2; this._CheckTray.Text = "Show Email count in System Tray"; this._CheckTray.UseVisualStyleBackColor = true; // // _CheckFlash // this._CheckFlash.AutoSize = true; this._CheckFlash.Location = new System.Drawing.Point(15, 91); this._CheckFlash.Name = "_CheckFlash"; this._CheckFlash.Size = new System.Drawing.Size(172, 19); this._CheckFlash.TabIndex = 1; this._CheckFlash.Text = "Flash Taskbar for new Email"; this._CheckFlash.UseVisualStyleBackColor = true; // // _LabelLanguage // this._LabelLanguage.AutoSize = true; this._LabelLanguage.Location = new System.Drawing.Point(11, 51); this._LabelLanguage.Name = "_LabelLanguage"; this._LabelLanguage.Size = new System.Drawing.Size(100, 15); this._LabelLanguage.TabIndex = 48; this._LabelLanguage.Text = "Display language:"; // // _ComboLanguage // this._ComboLanguage.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this._ComboLanguage.FlatStyle = System.Windows.Forms.FlatStyle.System; this._ComboLanguage.FormattingEnabled = true; this._ComboLanguage.Location = new System.Drawing.Point(117, 48); this._ComboLanguage.Name = "_ComboLanguage"; this._ComboLanguage.Size = new System.Drawing.Size(134, 23); this._ComboLanguage.TabIndex = 0; // // shapeContainer2 // this.shapeContainer2.Location = new System.Drawing.Point(10, 45); this.shapeContainer2.Margin = new System.Windows.Forms.Padding(0); this.shapeContainer2.Name = "shapeContainer2"; this.shapeContainer2.Shapes.AddRange(new Microsoft.VisualBasic.PowerPacks.Shape[] { this.lineShape2}); this.shapeContainer2.Size = new System.Drawing.Size(480, 339); this.shapeContainer2.TabIndex = 50; this.shapeContainer2.TabStop = false; // // lineShape2 // this.lineShape2.BorderColor = System.Drawing.Color.Red; this.lineShape2.Name = "lineShape2"; this.lineShape2.X1 = -6; this.lineShape2.X2 = 294; this.lineShape2.Y1 = 35; this.lineShape2.Y2 = 35; // // _PanelNewAccount // this._PanelNewAccount.Account = null; this._PanelNewAccount.BackColor = System.Drawing.Color.Transparent; this._PanelNewAccount.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(119)))), ((int)(((byte)(119)))), ((int)(((byte)(119))))); this._PanelNewAccount.ControlBackColor = System.Drawing.Color.White; this._PanelNewAccount.Dock = System.Windows.Forms.DockStyle.Fill; this._PanelNewAccount.DrawHeader = true; this._PanelNewAccount.Font = new System.Drawing.Font("Segoe UI", 9F); this._PanelNewAccount.HeaderColorFrom = System.Drawing.Color.FromArgb(((int)(((byte)(254)))), ((int)(((byte)(254)))), ((int)(((byte)(254))))); this._PanelNewAccount.HeaderColorTo = System.Drawing.Color.FromArgb(((int)(((byte)(228)))), ((int)(((byte)(228)))), ((int)(((byte)(228))))); this._PanelNewAccount.HeaderForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(100)))), ((int)(((byte)(100)))), ((int)(((byte)(100))))); this._PanelNewAccount.HeaderHeight = 39; this._PanelNewAccount.HeaderImage = null; this._PanelNewAccount.HeaderPadding = new System.Windows.Forms.Padding(10, 5, 10, 5); this._PanelNewAccount.HeaderText = "Add a New Account"; this._PanelNewAccount.Location = new System.Drawing.Point(12, 12); this._PanelNewAccount.Margin = new System.Windows.Forms.Padding(12, 0, 0, 0); this._PanelNewAccount.Name = "_PanelNewAccount"; this._PanelNewAccount.Padding = new System.Windows.Forms.Padding(2, 45, 2, 2); this._PanelNewAccount.SeperatorColor = System.Drawing.Color.FromArgb(((int)(((byte)(200)))), ((int)(((byte)(200)))), ((int)(((byte)(200))))); this._PanelNewAccount.Size = new System.Drawing.Size(500, 394); this._PanelNewAccount.TabIndex = 5; // // _CheckUpdates // this._CheckUpdates.AutoSize = true; this._CheckUpdates.Location = new System.Drawing.Point(12, 165); this._CheckUpdates.Name = "_CheckUpdates"; this._CheckUpdates.Size = new System.Drawing.Size(123, 19); this._CheckUpdates.TabIndex = 51; this._CheckUpdates.Text = "Check for Updates"; this._CheckUpdates.UseVisualStyleBackColor = true; // // _LabelSound // this._LabelSound.AutoSize = true; this._LabelSound.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this._LabelSound.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(51)))), ((int)(((byte)(153))))); this._LabelSound.Location = new System.Drawing.Point(8, 48); this._LabelSound.Name = "_LabelSound"; this._LabelSound.Size = new System.Drawing.Size(39, 21); this._LabelSound.TabIndex = 52; this._LabelSound.Text = "Title"; // // _LabelInterval // this._LabelInterval.AutoSize = true; this._LabelInterval.Location = new System.Drawing.Point(12, 123); this._LabelInterval.Name = "_LabelInterval"; this._LabelInterval.Size = new System.Drawing.Size(106, 15); this._LabelInterval.TabIndex = 53; this._LabelInterval.Text = "Check Email every:"; // // _LabelMinutes // this._LabelMinutes.AutoSize = true; this._LabelMinutes.Location = new System.Drawing.Point(157, 123); this._LabelMinutes.Name = "_LabelMinutes"; this._LabelMinutes.Size = new System.Drawing.Size(58, 15); this._LabelMinutes.TabIndex = 54; this._LabelMinutes.Text = "minute(s)"; // // _TextInterval // this._TextInterval.AllowNegativeValues = true; this._TextInterval.Location = new System.Drawing.Point(124, 122); this._TextInterval.Name = "_TextInterval"; this._TextInterval.Size = new System.Drawing.Size(27, 23); this._TextInterval.TabIndex = 55; this._TextInterval.Text = "1"; this._TextInterval.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; // // _ComboSound // this._ComboSound.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this._ComboSound.FlatStyle = System.Windows.Forms.FlatStyle.System; this._ComboSound.FormattingEnabled = true; this._ComboSound.Location = new System.Drawing.Point(12, 80); this._ComboSound.Name = "_ComboSound"; this._ComboSound.Size = new System.Drawing.Size(164, 23); this._ComboSound.TabIndex = 56; // // _ButtonBrowse // this._ButtonBrowse.AutoSize = true; this._ButtonBrowse.Enabled = false; this._ButtonBrowse.FlatStyle = System.Windows.Forms.FlatStyle.System; this._ButtonBrowse.Location = new System.Drawing.Point(182, 79); this._ButtonBrowse.MinimumSize = new System.Drawing.Size(65, 23); this._ButtonBrowse.Name = "_ButtonBrowse"; this._ButtonBrowse.Size = new System.Drawing.Size(68, 26); this._ButtonBrowse.TabIndex = 57; this._ButtonBrowse.Text = "Browse..."; this._ButtonBrowse.UseVisualStyleBackColor = true; // // lineShape1 // this.lineShape1.BorderColor = System.Drawing.Color.Red; this.lineShape1.Name = "lineShape1"; this.lineShape1.X1 = -3; this.lineShape1.X2 = 297; this.lineShape1.Y1 = 67; this.lineShape1.Y2 = 67; // // shapeContainer1 // this.shapeContainer1.Location = new System.Drawing.Point(10, 45); this.shapeContainer1.Margin = new System.Windows.Forms.Padding(0); this.shapeContainer1.Name = "shapeContainer1"; this.shapeContainer1.Shapes.AddRange(new Microsoft.VisualBasic.PowerPacks.Shape[] { this.lineShape3, this.lineShape1}); this.shapeContainer1.Size = new System.Drawing.Size(480, 339); this.shapeContainer1.TabIndex = 58; this.shapeContainer1.TabStop = false; // // lineShape3 // this.lineShape3.BorderColor = System.Drawing.Color.Red; this.lineShape3.Name = "lineShape3"; this.lineShape3.X1 = 1; this.lineShape3.X2 = 301; this.lineShape3.Y1 = 109; this.lineShape3.Y2 = 109; // // Preferences // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.ClientSize = new System.Drawing.Size(724, 412); this.Name = "Preferences"; this._PanelGeneral.ResumeLayout(false); this._PanelGeneral.PerformLayout(); this._PanelParent.ResumeLayout(false); this._PanelAccounts.ResumeLayout(false); this._PanelAccounts.PerformLayout(); this._PanelAppearance.ResumeLayout(false); this._PanelAppearance.PerformLayout(); this.ResumeLayout(false); }