private void init_separetors_cols() { int numbers = 0; if (saves != null) { numbers = saves.Count; } colsSeparetors = new List <Bunifu.Framework.UI.BunifuSeparator>(); for (int i = 0; i < TITLES.Length + 1; i++) { Bunifu.Framework.UI.BunifuSeparator c = new Bunifu.Framework.UI.BunifuSeparator(); c.BackColor = Color.Transparent; c.AutoSize = false; c.LineColor = Color.Snow; c.LineThickness = 1; c.Vertical = true; c.Width = COL_SPACE; c.Height = HEIGHT_ROW; colsSeparetors.Add(c); if (i == 0) { c.Location = new Point(0, 0); } else { c.Location = new Point(titles[i - 1].Location.X + titles[i - 1].Width, 0); } panel.Controls.Add(c); c.SendToBack(); } }
private void init_separetors_rows() { int totalWidth = getWidthTable(); int numbersSavements = 0; if (saves != null) { numbersSavements = saves.Count; } rowsSeparetors = new List <Bunifu.Framework.UI.BunifuSeparator>(); for (int i = 0; i < numbersSavements + 1; i++) { Bunifu.Framework.UI.BunifuSeparator r = new Bunifu.Framework.UI.BunifuSeparator(); r.BackColor = Color.Transparent; r.AutoSize = false; r.LineColor = Color.Snow; r.LineThickness = 2; r.Vertical = false; r.Width = totalWidth; r.Height = ROW_SPACE; if (i < numbersSavements) { rowsSeparetors.Add(r); r.Location = new Point(0, saves[i].panel.Location.Y + saves[i].panel.Height); } else { rowsSeparetors.Insert(0, r); r.Location = new Point(0, HEIGHT_ROW); } panel.Controls.Add(r); r.BringToFront(); } updateList(); }
public OrderedDictionary getgymsnamesAndid(int managerid, Panel panel, Bunifu.Framework.UI.BunifuSeparator memeber_line, Bunifu.Framework.UI.BunifuTextbox txt_search) { hshTable = new OrderedDictionary(); this.line_member = memeber_line; this.txt_search = txt_search; try { com.CommandText = "exec getgymsnames @manager_id"; com.Parameters.Clear(); com.Parameters.Add("@manager_id", SqlDbType.NVarChar, 50).Value = managerid; com.Connection.Open(); SqlDataReader reader = com.ExecuteReader(); while (reader.Read()) { hshTable.Add(reader[1].ToString(), (int)reader[0]); l1[i] = new Label(); l1[i].Location = new System.Drawing.Point(x, 0); l1[i].Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); l1[i].Text = reader[1].ToString(); l1[i].Click += new EventHandler(button_Click); panel.Controls.Add(l1[i]); panel.AutoSize = true; l1[i].AutoSize = true; panel.Show(); panel.Refresh(); i++; x = x + 200; noofcontrols++; } //dataGridView1.DataSource = sequence; } finally { com.Connection.Close(); } return(hshTable); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormChangePassword)); this.txtUsername = new System.Windows.Forms.TextBox(); this.txtCurPassword = new System.Windows.Forms.TextBox(); this.txtNewPassword = new System.Windows.Forms.TextBox(); this.txtConfirmPassword = new System.Windows.Forms.TextBox(); this.btnOK = new System.Windows.Forms.Button(); this.btnCancel = new System.Windows.Forms.Button(); this.panel1 = new System.Windows.Forms.Panel(); this.label8 = new System.Windows.Forms.Label(); this.bunifuSeparator1 = new Bunifu.Framework.UI.BunifuSeparator(); this.tabControl1 = new System.Windows.Forms.TabControl(); this.tabPage1 = new System.Windows.Forms.TabPage(); this.bunifuSeparator7 = new Bunifu.Framework.UI.BunifuSeparator(); this.bunifuSeparator6 = new Bunifu.Framework.UI.BunifuSeparator(); this.bunifuSeparator5 = new Bunifu.Framework.UI.BunifuSeparator(); this.pictureBox1 = new System.Windows.Forms.PictureBox(); this.label5 = new System.Windows.Forms.Label(); this.label6 = new System.Windows.Forms.Label(); this.bunifuSeparator3 = new Bunifu.Framework.UI.BunifuSeparator(); this.label7 = new System.Windows.Forms.Label(); this.label9 = new System.Windows.Forms.Label(); this.bunifuDragControl1 = new Bunifu.Framework.UI.BunifuDragControl(this.components); this.tabControl1.SuspendLayout(); this.tabPage1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit(); this.SuspendLayout(); // // txtUsername // this.txtUsername.Location = new System.Drawing.Point(169, 16); this.txtUsername.Name = "txtUsername"; this.txtUsername.Size = new System.Drawing.Size(160, 20); this.txtUsername.TabIndex = 4; // // txtCurPassword // this.txtCurPassword.Location = new System.Drawing.Point(169, 47); this.txtCurPassword.Name = "txtCurPassword"; this.txtCurPassword.PasswordChar = '*'; this.txtCurPassword.Size = new System.Drawing.Size(160, 20); this.txtCurPassword.TabIndex = 5; // // txtNewPassword // this.txtNewPassword.Location = new System.Drawing.Point(169, 77); this.txtNewPassword.Name = "txtNewPassword"; this.txtNewPassword.PasswordChar = '*'; this.txtNewPassword.Size = new System.Drawing.Size(160, 20); this.txtNewPassword.TabIndex = 6; // // txtConfirmPassword // this.txtConfirmPassword.Location = new System.Drawing.Point(169, 106); this.txtConfirmPassword.Name = "txtConfirmPassword"; this.txtConfirmPassword.PasswordChar = '*'; this.txtConfirmPassword.Size = new System.Drawing.Size(160, 20); this.txtConfirmPassword.TabIndex = 7; // // btnOK // this.btnOK.DialogResult = System.Windows.Forms.DialogResult.OK; this.btnOK.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnOK.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(173)))), ((int)(((byte)(239))))); this.btnOK.Location = new System.Drawing.Point(169, 160); this.btnOK.Name = "btnOK"; this.btnOK.Size = new System.Drawing.Size(80, 24); this.btnOK.TabIndex = 8; this.btnOK.Text = "OK"; this.btnOK.Click += new System.EventHandler(this.btnOK_Click); // // btnCancel // this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.btnCancel.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnCancel.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(173)))), ((int)(((byte)(239))))); this.btnCancel.Location = new System.Drawing.Point(255, 160); this.btnCancel.Name = "btnCancel"; this.btnCancel.Size = new System.Drawing.Size(80, 24); this.btnCancel.TabIndex = 9; this.btnCancel.Text = "Cancel"; // // panel1 // this.panel1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(173)))), ((int)(((byte)(239))))); this.panel1.Dock = System.Windows.Forms.DockStyle.Top; this.panel1.Location = new System.Drawing.Point(0, 0); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(398, 15); this.panel1.TabIndex = 25; // // label8 // this.label8.AutoSize = true; this.label8.Location = new System.Drawing.Point(33, 28); this.label8.Name = "label8"; this.label8.Size = new System.Drawing.Size(83, 13); this.label8.TabIndex = 27; this.label8.Text = "Account Setting"; // // bunifuSeparator1 // this.bunifuSeparator1.BackColor = System.Drawing.Color.Transparent; this.bunifuSeparator1.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(192))))); this.bunifuSeparator1.LineThickness = 1; this.bunifuSeparator1.Location = new System.Drawing.Point(12, 44); this.bunifuSeparator1.Name = "bunifuSeparator1"; this.bunifuSeparator1.Size = new System.Drawing.Size(370, 2); this.bunifuSeparator1.TabIndex = 28; this.bunifuSeparator1.Transparency = 255; this.bunifuSeparator1.Vertical = false; // // tabControl1 // this.tabControl1.Controls.Add(this.tabPage1); this.tabControl1.Location = new System.Drawing.Point(12, 52); this.tabControl1.Name = "tabControl1"; this.tabControl1.SelectedIndex = 0; this.tabControl1.Size = new System.Drawing.Size(374, 216); this.tabControl1.TabIndex = 29; // // tabPage1 // this.tabPage1.BackColor = System.Drawing.Color.White; this.tabPage1.Controls.Add(this.bunifuSeparator7); this.tabPage1.Controls.Add(this.bunifuSeparator6); this.tabPage1.Controls.Add(this.bunifuSeparator5); this.tabPage1.Controls.Add(this.label5); this.tabPage1.Controls.Add(this.btnCancel); this.tabPage1.Controls.Add(this.label6); this.tabPage1.Controls.Add(this.btnOK); this.tabPage1.Controls.Add(this.bunifuSeparator3); this.tabPage1.Controls.Add(this.txtConfirmPassword); this.tabPage1.Controls.Add(this.label7); this.tabPage1.Controls.Add(this.txtNewPassword); this.tabPage1.Controls.Add(this.label9); this.tabPage1.Controls.Add(this.txtCurPassword); this.tabPage1.Controls.Add(this.txtUsername); this.tabPage1.Location = new System.Drawing.Point(4, 22); this.tabPage1.Name = "tabPage1"; this.tabPage1.Padding = new System.Windows.Forms.Padding(3); this.tabPage1.Size = new System.Drawing.Size(366, 190); this.tabPage1.TabIndex = 0; this.tabPage1.Text = "Change the password"; // // bunifuSeparator7 // this.bunifuSeparator7.BackColor = System.Drawing.Color.Transparent; this.bunifuSeparator7.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(192))))); this.bunifuSeparator7.LineThickness = 2; this.bunifuSeparator7.Location = new System.Drawing.Point(169, 130); this.bunifuSeparator7.Name = "bunifuSeparator7"; this.bunifuSeparator7.Size = new System.Drawing.Size(160, 1); this.bunifuSeparator7.TabIndex = 19; this.bunifuSeparator7.Transparency = 255; this.bunifuSeparator7.Vertical = false; // // bunifuSeparator6 // this.bunifuSeparator6.BackColor = System.Drawing.Color.Transparent; this.bunifuSeparator6.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(192))))); this.bunifuSeparator6.LineThickness = 2; this.bunifuSeparator6.Location = new System.Drawing.Point(169, 100); this.bunifuSeparator6.Name = "bunifuSeparator6"; this.bunifuSeparator6.Size = new System.Drawing.Size(160, 1); this.bunifuSeparator6.TabIndex = 18; this.bunifuSeparator6.Transparency = 255; this.bunifuSeparator6.Vertical = false; // // bunifuSeparator5 // this.bunifuSeparator5.BackColor = System.Drawing.Color.Transparent; this.bunifuSeparator5.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(192))))); this.bunifuSeparator5.LineThickness = 2; this.bunifuSeparator5.Location = new System.Drawing.Point(169, 70); this.bunifuSeparator5.Name = "bunifuSeparator5"; this.bunifuSeparator5.Size = new System.Drawing.Size(160, 1); this.bunifuSeparator5.TabIndex = 17; this.bunifuSeparator5.Transparency = 255; this.bunifuSeparator5.Vertical = false; // // pictureBox1 // this.pictureBox1.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox1.Image"))); this.pictureBox1.Location = new System.Drawing.Point(12, 21); this.pictureBox1.Name = "pictureBox1"; this.pictureBox1.Size = new System.Drawing.Size(20, 20); this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; this.pictureBox1.TabIndex = 16; this.pictureBox1.TabStop = false; // // label5 // this.label5.ForeColor = System.Drawing.Color.Gray; this.label5.Location = new System.Drawing.Point(33, 20); this.label5.Name = "label5"; this.label5.Size = new System.Drawing.Size(104, 16); this.label5.TabIndex = 1; this.label5.Text = "Account name :"; this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // label6 // this.label6.ForeColor = System.Drawing.Color.Gray; this.label6.Location = new System.Drawing.Point(33, 51); this.label6.Name = "label6"; this.label6.Size = new System.Drawing.Size(104, 16); this.label6.TabIndex = 2; this.label6.Text = "Current password :"******"bunifuSeparator3"; this.bunifuSeparator3.Size = new System.Drawing.Size(160, 1); this.bunifuSeparator3.TabIndex = 12; this.bunifuSeparator3.Transparency = 255; this.bunifuSeparator3.Vertical = false; // // label7 // this.label7.ForeColor = System.Drawing.Color.Gray; this.label7.Location = new System.Drawing.Point(33, 81); this.label7.Name = "label7"; this.label7.Size = new System.Drawing.Size(104, 16); this.label7.TabIndex = 3; this.label7.Text = "New passwords :"; this.label7.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // label9 // this.label9.ForeColor = System.Drawing.Color.Gray; this.label9.Location = new System.Drawing.Point(33, 111); this.label9.Name = "label9"; this.label9.Size = new System.Drawing.Size(109, 16); this.label9.TabIndex = 0; this.label9.Text = "Confirm password :"******"$this.Icon"))); this.MaximizeBox = false; this.MinimizeBox = false; this.Name = "FormChangePassword"; this.Text = "Thay đổi mật khẩu"; this.Closing += new System.ComponentModel.CancelEventHandler(this.FormChangePassword_Closing); this.tabControl1.ResumeLayout(false); this.tabPage1.ResumeLayout(false); this.tabPage1.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit(); this.ResumeLayout(false); this.PerformLayout(); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormSelectContact)); this.txtContact = new System.Windows.Forms.TextBox(); this.btnOK = new System.Windows.Forms.Button(); this.btnCancel = new System.Windows.Forms.Button(); this.bunifuSeparator1 = new Bunifu.Framework.UI.BunifuSeparator(); this.pictureBox2 = new System.Windows.Forms.PictureBox(); this.panel1 = new System.Windows.Forms.Panel(); this.label2 = new System.Windows.Forms.Label(); this.bunifuDragControl1 = new Bunifu.Framework.UI.BunifuDragControl(this.components); ((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).BeginInit(); this.SuspendLayout(); // // txtContact // this.txtContact.Location = new System.Drawing.Point(56, 62); this.txtContact.Name = "txtContact"; this.txtContact.Size = new System.Drawing.Size(233, 20); this.txtContact.TabIndex = 1; // // btnOK // this.btnOK.DialogResult = System.Windows.Forms.DialogResult.OK; this.btnOK.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnOK.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(173)))), ((int)(((byte)(239))))); this.btnOK.Location = new System.Drawing.Point(123, 96); this.btnOK.Name = "btnOK"; this.btnOK.Size = new System.Drawing.Size(80, 24); this.btnOK.TabIndex = 2; this.btnOK.Text = "OK"; // // btnCancel // this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.btnCancel.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnCancel.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(173)))), ((int)(((byte)(239))))); this.btnCancel.Location = new System.Drawing.Point(209, 96); this.btnCancel.Name = "btnCancel"; this.btnCancel.Size = new System.Drawing.Size(80, 24); this.btnCancel.TabIndex = 3; this.btnCancel.Text = "Cancel"; // // bunifuSeparator1 // this.bunifuSeparator1.BackColor = System.Drawing.Color.Transparent; this.bunifuSeparator1.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(192))))); this.bunifuSeparator1.LineThickness = 1; this.bunifuSeparator1.Location = new System.Drawing.Point(20, 47); this.bunifuSeparator1.Name = "bunifuSeparator1"; this.bunifuSeparator1.Size = new System.Drawing.Size(260, 10); this.bunifuSeparator1.TabIndex = 29; this.bunifuSeparator1.Transparency = 255; this.bunifuSeparator1.Vertical = false; // // pictureBox2 // this.pictureBox2.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox2.Image"))); this.pictureBox2.Location = new System.Drawing.Point(20, 24); this.pictureBox2.Name = "pictureBox2"; this.pictureBox2.Size = new System.Drawing.Size(20, 20); this.pictureBox2.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; this.pictureBox2.TabIndex = 28; this.pictureBox2.TabStop = false; // // panel1 // this.panel1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(173)))), ((int)(((byte)(239))))); this.panel1.Dock = System.Windows.Forms.DockStyle.Top; this.panel1.Location = new System.Drawing.Point(0, 0); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(301, 15); this.panel1.TabIndex = 27; // // label2 // this.label2.Location = new System.Drawing.Point(53, 28); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(199, 16); this.label2.TabIndex = 26; this.label2.Text = "The name you need to manipulate:"; // // bunifuDragControl1 // this.bunifuDragControl1.Fixed = true; this.bunifuDragControl1.Horizontal = true; this.bunifuDragControl1.TargetControl = this; this.bunifuDragControl1.Vertical = true; // // FormSelectContact // this.AcceptButton = this.btnOK; this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.CancelButton = this.btnCancel; this.ClientSize = new System.Drawing.Size(301, 136); this.Controls.Add(this.bunifuSeparator1); this.Controls.Add(this.pictureBox2); this.Controls.Add(this.panel1); this.Controls.Add(this.label2); this.Controls.Add(this.btnCancel); this.Controls.Add(this.btnOK); this.Controls.Add(this.txtContact); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.Name = "FormSelectContact"; this.ShowInTaskbar = false; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; this.Text = "Nhập tên bạn bè cần thao tác"; ((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).EndInit(); this.ResumeLayout(false); this.PerformLayout(); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormAddContact)); this.txtContact = new System.Windows.Forms.TextBox(); this.btnAdd = new System.Windows.Forms.Button(); this.btnCancel = new System.Windows.Forms.Button(); this.bunifuSeparator1 = new Bunifu.Framework.UI.BunifuSeparator(); this.pictureBox2 = new System.Windows.Forms.PictureBox(); this.label2 = new System.Windows.Forms.Label(); this.panel1 = new System.Windows.Forms.Panel(); this.bunifuDragControl1 = new Bunifu.Framework.UI.BunifuDragControl(this.components); ((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).BeginInit(); this.SuspendLayout(); // // txtContact // this.txtContact.Location = new System.Drawing.Point(82, 69); this.txtContact.Name = "txtContact"; this.txtContact.Size = new System.Drawing.Size(208, 20); this.txtContact.TabIndex = 1; // // btnAdd // this.btnAdd.DialogResult = System.Windows.Forms.DialogResult.OK; this.btnAdd.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnAdd.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(173)))), ((int)(((byte)(239))))); this.btnAdd.Location = new System.Drawing.Point(106, 105); this.btnAdd.Name = "btnAdd"; this.btnAdd.Size = new System.Drawing.Size(88, 24); this.btnAdd.TabIndex = 2; this.btnAdd.Text = "Add"; this.btnAdd.Click += new System.EventHandler(this.btnAdd_Click); // // btnCancel // this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.btnCancel.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnCancel.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(173)))), ((int)(((byte)(239))))); this.btnCancel.Location = new System.Drawing.Point(202, 105); this.btnCancel.Name = "btnCancel"; this.btnCancel.Size = new System.Drawing.Size(88, 24); this.btnCancel.TabIndex = 3; this.btnCancel.Text = "Cancel"; // // bunifuSeparator1 // this.bunifuSeparator1.BackColor = System.Drawing.Color.Transparent; this.bunifuSeparator1.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(192))))); this.bunifuSeparator1.LineThickness = 1; this.bunifuSeparator1.Location = new System.Drawing.Point(11, 53); this.bunifuSeparator1.Name = "bunifuSeparator1"; this.bunifuSeparator1.Size = new System.Drawing.Size(299, 10); this.bunifuSeparator1.TabIndex = 26; this.bunifuSeparator1.Transparency = 255; this.bunifuSeparator1.Vertical = false; // // pictureBox2 // this.pictureBox2.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox2.Image"))); this.pictureBox2.Location = new System.Drawing.Point(11, 30); this.pictureBox2.Name = "pictureBox2"; this.pictureBox2.Size = new System.Drawing.Size(20, 20); this.pictureBox2.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; this.pictureBox2.TabIndex = 25; this.pictureBox2.TabStop = false; // // label2 // this.label2.Location = new System.Drawing.Point(37, 34); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(168, 16); this.label2.TabIndex = 24; this.label2.Text = "The name you need to add:"; // // panel1 // this.panel1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(173)))), ((int)(((byte)(239))))); this.panel1.Dock = System.Windows.Forms.DockStyle.Top; this.panel1.Location = new System.Drawing.Point(0, 0); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(321, 15); this.panel1.TabIndex = 27; // // bunifuDragControl1 // this.bunifuDragControl1.Fixed = true; this.bunifuDragControl1.Horizontal = true; this.bunifuDragControl1.TargetControl = this; this.bunifuDragControl1.Vertical = true; // // FormAddContact // this.AcceptButton = this.btnAdd; this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.CancelButton = this.btnCancel; this.ClientSize = new System.Drawing.Size(321, 154); this.Controls.Add(this.panel1); this.Controls.Add(this.bunifuSeparator1); this.Controls.Add(this.pictureBox2); this.Controls.Add(this.label2); this.Controls.Add(this.btnCancel); this.Controls.Add(this.btnAdd); this.Controls.Add(this.txtContact); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.MaximizeBox = false; this.MinimizeBox = false; this.Name = "FormAddContact"; this.ShowIcon = false; this.ShowInTaskbar = false; this.Text = "Thêm bạn bè"; this.Closing += new System.ComponentModel.CancelEventHandler(this.FormAddContact_Closing); ((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).EndInit(); this.ResumeLayout(false); this.PerformLayout(); }
private void InitializeComponent() { var resources = new System.ComponentModel.ComponentResourceManager(typeof(FrmAdjustBagsInventoryQty)); var BorderEdges5 = new Bunifu.UI.WinForms.BunifuButton.BunifuButton.BorderEdges(); var StateProperties9 = new Bunifu.UI.WinForms.BunifuButton.BunifuButton.StateProperties(); var StateProperties10 = new Bunifu.UI.WinForms.BunifuButton.BunifuButton.StateProperties(); _closeFlatButton = new Bunifu.Framework.UI.BunifuFlatButton(); _closeFlatButton.Click += new EventHandler(closeFlatButton_Click); Label17 = new Label(); _cboAjustmentTyoe = new ComboBox(); _cboAjustmentTyoe.SelectedIndexChanged += new EventHandler(cboAjustmentTyoe_SelectedIndexChanged); Label7 = new Label(); Label1 = new Label(); _nudQuantity = new NumericUpDown(); _nudQuantity.ValueChanged += new EventHandler(nudQuantity_ValueChanged); _btnSave = new Bunifu.UI.WinForms.BunifuButton.BunifuButton(); _btnSave.Click += new EventHandler(btnSave_Click); lblPlusMinus = new Label(); BunifuSeparator1 = new Bunifu.Framework.UI.BunifuSeparator(); lblRemaining = new Label(); lblQtyUsed = new Label(); Label3 = new Label(); Label4 = new Label(); lblTotal = new Label(); Label5 = new Label(); GroupBox1 = new GroupBox(); pnlAdjust = new Panel(); Label9 = new Label(); _rbDecrease = new Bunifu.UI.WinForms.BunifuRadioButton(); _rbDecrease.Click += new EventHandler(rbIncrease_Click); Label8 = new Label(); _rbIncrease = new Bunifu.UI.WinForms.BunifuRadioButton(); _rbIncrease.Click += new EventHandler(rbIncrease_Click); pnlBooking = new Panel(); Label2 = new Label(); cboBookingNumber = new ComboBox(); Label6 = new Label(); lblWarning = new Label(); Label10 = new Label(); _cboBagLocation = new ComboBox(); _cboBagLocation.SelectedIndexChanged += new EventHandler(cboBagLocation_SelectedIndexChanged); ((System.ComponentModel.ISupportInitialize)_nudQuantity).BeginInit(); GroupBox1.SuspendLayout(); pnlAdjust.SuspendLayout(); pnlBooking.SuspendLayout(); SuspendLayout(); // // closeFlatButton // _closeFlatButton.Active = false; _closeFlatButton.Activecolor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); _closeFlatButton.Anchor = AnchorStyles.Top | AnchorStyles.Right; _closeFlatButton.BackColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); _closeFlatButton.BackgroundImageLayout = ImageLayout.Stretch; _closeFlatButton.BorderRadius = 0; _closeFlatButton.ButtonText = "🗙"; _closeFlatButton.Cursor = Cursors.Hand; _closeFlatButton.DisabledColor = Color.Gray; _closeFlatButton.Font = new Font("Segoe UI", 10.0f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); _closeFlatButton.Iconcolor = Color.Transparent; _closeFlatButton.Iconimage = null; _closeFlatButton.Iconimage_right = null; _closeFlatButton.Iconimage_right_Selected = null; _closeFlatButton.Iconimage_Selected = null; _closeFlatButton.IconMarginLeft = 0; _closeFlatButton.IconMarginRight = 0; _closeFlatButton.IconRightVisible = true; _closeFlatButton.IconRightZoom = 0d; _closeFlatButton.IconVisible = true; _closeFlatButton.IconZoom = 90.0d; _closeFlatButton.IsTab = false; _closeFlatButton.Location = new Point(567, 0); _closeFlatButton.Margin = new Padding(7, 9, 7, 9); _closeFlatButton.Name = "_closeFlatButton"; _closeFlatButton.Normalcolor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); _closeFlatButton.OnHovercolor = Color.Gray; _closeFlatButton.OnHoverTextColor = Color.White; _closeFlatButton.selected = false; _closeFlatButton.Size = new Size(39, 33); _closeFlatButton.TabIndex = 173; _closeFlatButton.Text = "🗙"; _closeFlatButton.TextAlign = ContentAlignment.MiddleCenter; _closeFlatButton.Textcolor = Color.White; _closeFlatButton.TextFont = new Font("Microsoft Sans Serif", 18.0f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); // // Label17 // Label17.BackColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); Label17.Dock = DockStyle.Top; Label17.Font = new Font("Segoe UI", 10.0f, FontStyle.Bold, GraphicsUnit.Point, Conversions.ToByte(0)); Label17.ForeColor = Color.White; Label17.Location = new Point(0, 0); Label17.Margin = new Padding(4, 0, 4, 0); Label17.Name = "Label17"; Label17.Size = new Size(606, 33); Label17.TabIndex = 172; Label17.TextAlign = ContentAlignment.MiddleCenter; // // cboAjustmentTyoe // _cboAjustmentTyoe.DropDownStyle = ComboBoxStyle.DropDownList; _cboAjustmentTyoe.Font = new Font("Microsoft Sans Serif", 11.0f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); _cboAjustmentTyoe.FormattingEnabled = true; _cboAjustmentTyoe.Location = new Point(162, 164); _cboAjustmentTyoe.Margin = new Padding(4, 5, 4, 5); _cboAjustmentTyoe.Name = "_cboAjustmentTyoe"; _cboAjustmentTyoe.Size = new Size(164, 26); _cboAjustmentTyoe.TabIndex = 174; // // Label7 // Label7.AutoSize = true; Label7.Font = new Font("Segoe UI Semibold", 14.25f, FontStyle.Bold, GraphicsUnit.Point, Conversions.ToByte(0)); Label7.ForeColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(192)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(0))); Label7.Location = new Point(21, 42); Label7.Name = "Label7"; Label7.Size = new Size(232, 25); Label7.TabIndex = 175; Label7.Text = "Adjust inventory quantity"; // // Label1 // Label1.AutoSize = true; Label1.Location = new Point(53, 99); Label1.Name = "Label1"; Label1.Size = new Size(103, 20); Label1.TabIndex = 177; Label1.Text = "Quantity used:"; // // nudQuantity // _nudQuantity.Font = new Font("Segoe UI", 12.0f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); _nudQuantity.Location = new Point(162, 92); _nudQuantity.Maximum = new decimal(new int[] { 10000, 0, 0, 0 }); _nudQuantity.Name = "_nudQuantity"; _nudQuantity.Size = new Size(96, 29); _nudQuantity.TabIndex = 178; // // btnSave // _btnSave.AllowToggling = false; _btnSave.Anchor = AnchorStyles.Bottom | AnchorStyles.Left; _btnSave.AnimationSpeed = 200; _btnSave.AutoGenerateColors = false; _btnSave.BackColor = Color.Transparent; _btnSave.BackColor1 = Color.Teal; _btnSave.BackgroundImage = (Image)resources.GetObject("btnSave.BackgroundImage"); _btnSave.BorderStyle = Bunifu.UI.WinForms.BunifuButton.BunifuButton.BorderStyles.Solid; _btnSave.ButtonText = "Save"; _btnSave.ButtonTextMarginLeft = 0; _btnSave.ColorContrastOnClick = 45; _btnSave.ColorContrastOnHover = 45; _btnSave.Cursor = Cursors.Hand; BorderEdges5.BottomLeft = true; BorderEdges5.BottomRight = true; BorderEdges5.TopLeft = true; BorderEdges5.TopRight = true; _btnSave.CustomizableEdges = BorderEdges5; _btnSave.DialogResult = DialogResult.None; _btnSave.DisabledBorderColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(191)), Conversions.ToInteger(Conversions.ToByte(191)), Conversions.ToInteger(Conversions.ToByte(191))); _btnSave.DisabledFillColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(204)), Conversions.ToInteger(Conversions.ToByte(204)), Conversions.ToInteger(Conversions.ToByte(204))); _btnSave.DisabledForecolor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(168)), Conversions.ToInteger(Conversions.ToByte(160)), Conversions.ToInteger(Conversions.ToByte(168))); _btnSave.Enabled = false; _btnSave.FocusState = Bunifu.UI.WinForms.BunifuButton.BunifuButton.ButtonStates.Pressed; _btnSave.Font = new Font("Segoe UI Semibold", 9.75f); _btnSave.ForeColor = Color.White; _btnSave.IconLeftCursor = Cursors.Hand; _btnSave.IconMarginLeft = 11; _btnSave.IconPadding = 10; _btnSave.IconRightCursor = Cursors.Hand; _btnSave.IdleBorderColor = Color.Teal; _btnSave.IdleBorderRadius = 3; _btnSave.IdleBorderThickness = 1; _btnSave.IdleFillColor = Color.Teal; _btnSave.IdleIconLeftImage = null; _btnSave.IdleIconRightImage = null; _btnSave.IndicateFocus = false; _btnSave.Location = new Point(252, 264); _btnSave.Margin = new Padding(2); _btnSave.Name = "_btnSave"; StateProperties9.BorderColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(105)), Conversions.ToInteger(Conversions.ToByte(181)), Conversions.ToInteger(Conversions.ToByte(255))); StateProperties9.BorderRadius = 3; StateProperties9.BorderStyle = Bunifu.UI.WinForms.BunifuButton.BunifuButton.BorderStyles.Solid; StateProperties9.BorderThickness = 1; StateProperties9.FillColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(0)), Conversions.ToInteger(Conversions.ToByte(192)), Conversions.ToInteger(Conversions.ToByte(192))); StateProperties9.ForeColor = Color.White; StateProperties9.IconLeftImage = null; StateProperties9.IconRightImage = null; _btnSave.onHoverState = StateProperties9; StateProperties10.BorderColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(40)), Conversions.ToInteger(Conversions.ToByte(96)), Conversions.ToInteger(Conversions.ToByte(144))); StateProperties10.BorderRadius = 3; StateProperties10.BorderStyle = Bunifu.UI.WinForms.BunifuButton.BunifuButton.BorderStyles.Solid; StateProperties10.BorderThickness = 1; StateProperties10.FillColor = Color.Teal; StateProperties10.ForeColor = Color.White; StateProperties10.IconLeftImage = null; StateProperties10.IconRightImage = null; _btnSave.OnPressedState = StateProperties10; _btnSave.Size = new Size(99, 34); _btnSave.TabIndex = 179; _btnSave.TextAlign = ContentAlignment.MiddleCenter; _btnSave.TextMarginLeft = 0; _btnSave.UseDefaultRadiusAndThickness = true; // // lblPlusMinus // lblPlusMinus.AutoSize = true; lblPlusMinus.Font = new Font("Segoe UI", 13.0f, FontStyle.Bold, GraphicsUnit.Point, Conversions.ToByte(0)); lblPlusMinus.Location = new Point(116, 38); lblPlusMinus.Name = "lblPlusMinus"; lblPlusMinus.Size = new Size(19, 25); lblPlusMinus.TabIndex = 180; lblPlusMinus.Text = "-"; // // BunifuSeparator1 // BunifuSeparator1.BackColor = Color.Transparent; BunifuSeparator1.LineColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(105)), Conversions.ToInteger(Conversions.ToByte(105)), Conversions.ToInteger(Conversions.ToByte(105))); BunifuSeparator1.LineThickness = 3; BunifuSeparator1.Location = new Point(144, 60); BunifuSeparator1.Margin = new Padding(4, 5, 4, 5); BunifuSeparator1.Name = "BunifuSeparator1"; BunifuSeparator1.Size = new Size(73, 12); BunifuSeparator1.TabIndex = 181; BunifuSeparator1.Transparency = 255; BunifuSeparator1.Vertical = false; // // lblRemaining // lblRemaining.Font = new Font("Segoe UI", 13.0f, FontStyle.Bold, GraphicsUnit.Point, Conversions.ToByte(0)); lblRemaining.Location = new Point(142, 16); lblRemaining.Name = "lblRemaining"; lblRemaining.Size = new Size(73, 24); lblRemaining.TabIndex = 182; lblRemaining.TextAlign = ContentAlignment.MiddleCenter; // // lblQtyUsed // lblQtyUsed.Font = new Font("Segoe UI", 13.0f, FontStyle.Bold, GraphicsUnit.Point, Conversions.ToByte(0)); lblQtyUsed.ForeColor = Color.DarkRed; lblQtyUsed.Location = new Point(142, 40); lblQtyUsed.Name = "lblQtyUsed"; lblQtyUsed.Size = new Size(73, 26); lblQtyUsed.TabIndex = 183; lblQtyUsed.TextAlign = ContentAlignment.MiddleCenter; // // Label3 // Label3.Location = new Point(6, 39); Label3.Name = "Label3"; Label3.Size = new Size(104, 27); Label3.TabIndex = 184; Label3.Text = "Quantity used:"; Label3.TextAlign = ContentAlignment.MiddleRight; // // Label4 // Label4.Location = new Point(6, 13); Label4.Name = "Label4"; Label4.Size = new Size(104, 27); Label4.TabIndex = 185; Label4.Text = "Remaining:"; Label4.TextAlign = ContentAlignment.MiddleRight; // // lblTotal // lblTotal.Font = new Font("Segoe UI", 13.0f, FontStyle.Bold, GraphicsUnit.Point, Conversions.ToByte(0)); lblTotal.Location = new Point(142, 75); lblTotal.Name = "lblTotal"; lblTotal.Size = new Size(73, 20); lblTotal.TabIndex = 186; lblTotal.TextAlign = ContentAlignment.MiddleCenter; // // Label5 // Label5.Location = new Point(6, 72); Label5.Name = "Label5"; Label5.Size = new Size(104, 27); Label5.TabIndex = 187; Label5.Text = "Total:"; Label5.TextAlign = ContentAlignment.MiddleRight; // // GroupBox1 // GroupBox1.Controls.Add(lblRemaining); GroupBox1.Controls.Add(lblQtyUsed); GroupBox1.Controls.Add(Label4); GroupBox1.Controls.Add(Label5); GroupBox1.Controls.Add(lblPlusMinus); GroupBox1.Controls.Add(lblTotal); GroupBox1.Controls.Add(BunifuSeparator1); GroupBox1.Controls.Add(Label3); GroupBox1.Location = new Point(354, 95); GroupBox1.Name = "GroupBox1"; GroupBox1.Size = new Size(240, 109); GroupBox1.TabIndex = 188; GroupBox1.TabStop = false; // // pnlAdjust // pnlAdjust.Controls.Add(Label9); pnlAdjust.Controls.Add(_rbDecrease); pnlAdjust.Controls.Add(Label8); pnlAdjust.Controls.Add(_rbIncrease); pnlAdjust.Location = new Point(80, 193); pnlAdjust.Name = "pnlAdjust"; pnlAdjust.Size = new Size(246, 58); pnlAdjust.TabIndex = 189; pnlAdjust.Visible = false; // // Label9 // Label9.AutoSize = true; Label9.Location = new Point(30, 29); Label9.Name = "Label9"; Label9.Size = new Size(162, 20); Label9.TabIndex = 179; Label9.Text = "DECREASE INVENTORY"; // // rbDecrease // _rbDecrease.Checked = false; _rbDecrease.Location = new Point(3, 28); _rbDecrease.Name = "_rbDecrease"; _rbDecrease.OutlineColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(192)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(0))); _rbDecrease.RadioColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(192)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(0))); _rbDecrease.Size = new Size(21, 21); _rbDecrease.TabIndex = 178; _rbDecrease.Text = null; // // Label8 // Label8.AutoSize = true; Label8.Location = new Point(30, 4); Label8.Name = "Label8"; Label8.Size = new Size(158, 20); Label8.TabIndex = 177; Label8.Text = "INCREASE INVENTORY"; // // rbIncrease // _rbIncrease.Checked = true; _rbIncrease.Location = new Point(3, 3); _rbIncrease.Name = "_rbIncrease"; _rbIncrease.OutlineColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(192)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(0))); _rbIncrease.RadioColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(192)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(0))); _rbIncrease.Size = new Size(21, 21); _rbIncrease.TabIndex = 0; _rbIncrease.Text = null; // // pnlBooking // pnlBooking.Controls.Add(Label2); pnlBooking.Controls.Add(cboBookingNumber); pnlBooking.Location = new Point(28, 194); pnlBooking.Name = "pnlBooking"; pnlBooking.Size = new Size(303, 58); pnlBooking.TabIndex = 190; pnlBooking.Visible = false; // // Label2 // Label2.AutoSize = true; Label2.Location = new Point(3, 3); Label2.Name = "Label2"; Label2.Size = new Size(125, 20); Label2.TabIndex = 177; Label2.Text = "Booking Number:"; // // cboBookingNumber // cboBookingNumber.Font = new Font("Microsoft Sans Serif", 11.0f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); cboBookingNumber.FormattingEnabled = true; cboBookingNumber.Location = new Point(134, 1); cboBookingNumber.Margin = new Padding(4, 5, 4, 5); cboBookingNumber.Name = "cboBookingNumber"; cboBookingNumber.Size = new Size(169, 26); cboBookingNumber.TabIndex = 175; // // Label6 // Label6.AutoSize = true; Label6.Location = new Point(34, 167); Label6.Name = "Label6"; Label6.Size = new Size(121, 20); Label6.TabIndex = 176; Label6.Text = "Adjustment type:"; // // lblWarning // lblWarning.Font = new Font("Segoe UI", 11.25f, FontStyle.Bold, GraphicsUnit.Point, Conversions.ToByte(0)); lblWarning.ForeColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(192)), Conversions.ToInteger(Conversions.ToByte(0)), Conversions.ToInteger(Conversions.ToByte(0))); lblWarning.Location = new Point(178, 67); lblWarning.Name = "lblWarning"; lblWarning.Size = new Size(378, 20); lblWarning.TabIndex = 191; lblWarning.TextAlign = ContentAlignment.MiddleCenter; // // Label10 // Label10.AutoSize = true; Label10.Location = new Point(53, 134); Label10.Name = "Label10"; Label10.Size = new Size(99, 20); Label10.TabIndex = 193; Label10.Text = "Bag Location:"; // // cboBagLocation // _cboBagLocation.DropDownStyle = ComboBoxStyle.DropDownList; _cboBagLocation.Font = new Font("Microsoft Sans Serif", 11.0f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); _cboBagLocation.FormattingEnabled = true; _cboBagLocation.Location = new Point(162, 129); _cboBagLocation.Margin = new Padding(4, 5, 4, 5); _cboBagLocation.Name = "_cboBagLocation"; _cboBagLocation.Size = new Size(164, 26); _cboBagLocation.TabIndex = 192; // // FrmAdjustBagsInventoryQty // AutoScaleDimensions = new SizeF(8.0f, 20.0f); AutoScaleMode = AutoScaleMode.Font; BackColor = Color.White; ClientSize = new Size(606, 309); Controls.Add(Label7); Controls.Add(Label10); Controls.Add(_cboBagLocation); Controls.Add(lblWarning); Controls.Add(pnlBooking); Controls.Add(pnlAdjust); Controls.Add(GroupBox1); Controls.Add(_btnSave); Controls.Add(_nudQuantity); Controls.Add(Label1); Controls.Add(Label6); Controls.Add(_cboAjustmentTyoe); Controls.Add(_closeFlatButton); Controls.Add(Label17); Font = new Font("Segoe UI", 11.25f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); FormBorderStyle = FormBorderStyle.None; Margin = new Padding(4, 5, 4, 5); Name = "FrmAdjustBagsInventoryQty"; Text = "FrmAdjustBagsInventoryQty"; ((System.ComponentModel.ISupportInitialize)_nudQuantity).EndInit(); GroupBox1.ResumeLayout(false); GroupBox1.PerformLayout(); pnlAdjust.ResumeLayout(false); pnlAdjust.PerformLayout(); pnlBooking.ResumeLayout(false); pnlBooking.PerformLayout(); Load += new EventHandler(FrmAdjustBagsInventoryQty_Load); ResumeLayout(false); PerformLayout(); }
private void InitializeComponent() { var resources = new System.ComponentModel.ComponentResourceManager(typeof(FrmUseInvQty)); var BorderEdges1 = new Bunifu.UI.WinForms.BunifuButton.BunifuButton.BorderEdges(); var StateProperties1 = new Bunifu.UI.WinForms.BunifuButton.BunifuButton.StateProperties(); var StateProperties2 = new Bunifu.UI.WinForms.BunifuButton.BunifuButton.StateProperties(); btnSave = new Bunifu.UI.WinForms.BunifuButton.BunifuButton(); closeFlatButton = new Bunifu.Framework.UI.BunifuFlatButton(); Label17 = new Label(); Label7 = new Label(); Label10 = new Label(); cboBagLocation = new ComboBox(); GroupBox1 = new GroupBox(); lblRemaining = new Label(); lblQtyUsed = new Label(); Label4 = new Label(); Label5 = new Label(); lblPlusMinus = new Label(); lblTotal = new Label(); BunifuSeparator1 = new Bunifu.Framework.UI.BunifuSeparator(); Label3 = new Label(); nudQuantity = new NumericUpDown(); Label1 = new Label(); Label6 = new Label(); cboAjustmentTyoe = new ComboBox(); pnlBooking = new Panel(); Label2 = new Label(); cboBookingNumber = new ComboBox(); pnlAdjust = new Panel(); Label9 = new Label(); rbDecrease = new Bunifu.UI.WinForms.BunifuRadioButton(); Label8 = new Label(); rbIncrease = new Bunifu.UI.WinForms.BunifuRadioButton(); GroupBox1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)nudQuantity).BeginInit(); pnlBooking.SuspendLayout(); pnlAdjust.SuspendLayout(); SuspendLayout(); // // btnSave // btnSave.AllowToggling = false; btnSave.Anchor = AnchorStyles.Bottom | AnchorStyles.Left; btnSave.AnimationSpeed = 200; btnSave.AutoGenerateColors = false; btnSave.BackColor = Color.Transparent; btnSave.BackColor1 = Color.Teal; btnSave.BackgroundImage = (Image)resources.GetObject("btnSave.BackgroundImage"); btnSave.BorderStyle = Bunifu.UI.WinForms.BunifuButton.BunifuButton.BorderStyles.Solid; btnSave.ButtonText = "Save"; btnSave.ButtonTextMarginLeft = 0; btnSave.ColorContrastOnClick = 45; btnSave.ColorContrastOnHover = 45; btnSave.Cursor = Cursors.Hand; BorderEdges1.BottomLeft = true; BorderEdges1.BottomRight = true; BorderEdges1.TopLeft = true; BorderEdges1.TopRight = true; btnSave.CustomizableEdges = BorderEdges1; btnSave.DialogResult = DialogResult.None; btnSave.DisabledBorderColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(191)), Conversions.ToInteger(Conversions.ToByte(191)), Conversions.ToInteger(Conversions.ToByte(191))); btnSave.DisabledFillColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(204)), Conversions.ToInteger(Conversions.ToByte(204)), Conversions.ToInteger(Conversions.ToByte(204))); btnSave.DisabledForecolor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(168)), Conversions.ToInteger(Conversions.ToByte(160)), Conversions.ToInteger(Conversions.ToByte(168))); btnSave.Enabled = false; btnSave.FocusState = Bunifu.UI.WinForms.BunifuButton.BunifuButton.ButtonStates.Pressed; btnSave.Font = new Font("Segoe UI Semibold", 9.75f); btnSave.ForeColor = Color.White; btnSave.IconLeftCursor = Cursors.Hand; btnSave.IconMarginLeft = 11; btnSave.IconPadding = 10; btnSave.IconRightCursor = Cursors.Hand; btnSave.IdleBorderColor = Color.Teal; btnSave.IdleBorderRadius = 3; btnSave.IdleBorderThickness = 1; btnSave.IdleFillColor = Color.Teal; btnSave.IdleIconLeftImage = null; btnSave.IdleIconRightImage = null; btnSave.IndicateFocus = false; btnSave.Location = new Point(273, 264); btnSave.Margin = new Padding(3, 2, 3, 2); btnSave.Name = "btnSave"; StateProperties1.BorderColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(105)), Conversions.ToInteger(Conversions.ToByte(181)), Conversions.ToInteger(Conversions.ToByte(255))); StateProperties1.BorderRadius = 3; StateProperties1.BorderStyle = Bunifu.UI.WinForms.BunifuButton.BunifuButton.BorderStyles.Solid; StateProperties1.BorderThickness = 1; StateProperties1.FillColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(0)), Conversions.ToInteger(Conversions.ToByte(192)), Conversions.ToInteger(Conversions.ToByte(192))); StateProperties1.ForeColor = Color.White; StateProperties1.IconLeftImage = null; StateProperties1.IconRightImage = null; btnSave.onHoverState = StateProperties1; StateProperties2.BorderColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(40)), Conversions.ToInteger(Conversions.ToByte(96)), Conversions.ToInteger(Conversions.ToByte(144))); StateProperties2.BorderRadius = 3; StateProperties2.BorderStyle = Bunifu.UI.WinForms.BunifuButton.BunifuButton.BorderStyles.Solid; StateProperties2.BorderThickness = 1; StateProperties2.FillColor = Color.Teal; StateProperties2.ForeColor = Color.White; StateProperties2.IconLeftImage = null; StateProperties2.IconRightImage = null; btnSave.OnPressedState = StateProperties2; btnSave.Size = new Size(89, 42); btnSave.TabIndex = 182; btnSave.TextAlign = ContentAlignment.MiddleCenter; btnSave.TextMarginLeft = 0; btnSave.UseDefaultRadiusAndThickness = true; // // closeFlatButton // closeFlatButton.Active = false; closeFlatButton.Activecolor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); closeFlatButton.Anchor = AnchorStyles.Top | AnchorStyles.Right; closeFlatButton.BackColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); closeFlatButton.BackgroundImageLayout = ImageLayout.Stretch; closeFlatButton.BorderRadius = 0; closeFlatButton.ButtonText = "🗙"; closeFlatButton.Cursor = Cursors.Hand; closeFlatButton.DisabledColor = Color.Gray; closeFlatButton.Font = new Font("Segoe UI", 10.0f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); closeFlatButton.Iconcolor = Color.Transparent; closeFlatButton.Iconimage = null; closeFlatButton.Iconimage_right = null; closeFlatButton.Iconimage_right_Selected = null; closeFlatButton.Iconimage_Selected = null; closeFlatButton.IconMarginLeft = 0; closeFlatButton.IconMarginRight = 0; closeFlatButton.IconRightVisible = true; closeFlatButton.IconRightZoom = 0d; closeFlatButton.IconVisible = true; closeFlatButton.IconZoom = 90.0d; closeFlatButton.IsTab = false; closeFlatButton.Location = new Point(595, 0); closeFlatButton.Margin = new Padding(9, 11, 9, 11); closeFlatButton.Name = "closeFlatButton"; closeFlatButton.Normalcolor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); closeFlatButton.OnHovercolor = Color.Gray; closeFlatButton.OnHoverTextColor = Color.White; closeFlatButton.selected = false; closeFlatButton.Size = new Size(43, 35); closeFlatButton.TabIndex = 181; closeFlatButton.Text = "🗙"; closeFlatButton.TextAlign = ContentAlignment.MiddleCenter; closeFlatButton.Textcolor = Color.White; closeFlatButton.TextFont = new Font("Microsoft Sans Serif", 18.0f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); // // Label17 // Label17.BackColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); Label17.Dock = DockStyle.Top; Label17.Font = new Font("Segoe UI", 10.0f, FontStyle.Bold, GraphicsUnit.Point, Conversions.ToByte(0)); Label17.ForeColor = Color.White; Label17.Location = new Point(0, 0); Label17.Margin = new Padding(5, 0, 5, 0); Label17.Name = "Label17"; Label17.Size = new Size(638, 35); Label17.TabIndex = 180; Label17.TextAlign = ContentAlignment.MiddleCenter; // // Label7 // Label7.AutoSize = true; Label7.Font = new Font("Segoe UI Semibold", 14.25f, FontStyle.Bold, GraphicsUnit.Point, Conversions.ToByte(0)); Label7.ForeColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(192)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(0))); Label7.Location = new Point(16, 53); Label7.Margin = new Padding(4, 0, 4, 0); Label7.Name = "Label7"; Label7.Size = new Size(185, 25); Label7.TabIndex = 183; Label7.Text = "Adjust grain storage"; // // Label10 // Label10.AutoSize = true; Label10.Location = new Point(30, 131); Label10.Margin = new Padding(4, 0, 4, 0); Label10.Name = "Label10"; Label10.Size = new Size(105, 17); Label10.TabIndex = 200; Label10.Text = "Grain Location:"; // // cboBagLocation // cboBagLocation.DropDownStyle = ComboBoxStyle.DropDownList; cboBagLocation.Font = new Font("Microsoft Sans Serif", 11.0f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); cboBagLocation.FormattingEnabled = true; cboBagLocation.Location = new Point(144, 126); cboBagLocation.Margin = new Padding(5, 6, 5, 6); cboBagLocation.Name = "cboBagLocation"; cboBagLocation.Size = new Size(172, 26); cboBagLocation.TabIndex = 199; // // GroupBox1 // GroupBox1.Controls.Add(lblRemaining); GroupBox1.Controls.Add(lblQtyUsed); GroupBox1.Controls.Add(Label4); GroupBox1.Controls.Add(Label5); GroupBox1.Controls.Add(lblPlusMinus); GroupBox1.Controls.Add(lblTotal); GroupBox1.Controls.Add(BunifuSeparator1); GroupBox1.Controls.Add(Label3); GroupBox1.Location = new Point(361, 81); GroupBox1.Margin = new Padding(4, 4, 4, 4); GroupBox1.Name = "GroupBox1"; GroupBox1.Padding = new Padding(4, 4, 4, 4); GroupBox1.Size = new Size(261, 128); GroupBox1.TabIndex = 198; GroupBox1.TabStop = false; // // lblRemaining // lblRemaining.Font = new Font("Segoe UI", 13.0f, FontStyle.Bold, GraphicsUnit.Point, Conversions.ToByte(0)); lblRemaining.Location = new Point(157, 16); lblRemaining.Margin = new Padding(4, 0, 4, 0); lblRemaining.Name = "lblRemaining"; lblRemaining.Size = new Size(97, 31); lblRemaining.TabIndex = 182; lblRemaining.TextAlign = ContentAlignment.MiddleCenter; // // lblQtyUsed // lblQtyUsed.Font = new Font("Segoe UI", 13.0f, FontStyle.Bold, GraphicsUnit.Point, Conversions.ToByte(0)); lblQtyUsed.ForeColor = Color.DarkRed; lblQtyUsed.Location = new Point(157, 46); lblQtyUsed.Margin = new Padding(4, 0, 4, 0); lblQtyUsed.Name = "lblQtyUsed"; lblQtyUsed.Size = new Size(97, 31); lblQtyUsed.TabIndex = 183; lblQtyUsed.TextAlign = ContentAlignment.MiddleCenter; // // Label4 // Label4.Location = new Point(6, 12); Label4.Margin = new Padding(4, 0, 4, 0); Label4.Name = "Label4"; Label4.Size = new Size(109, 33); Label4.TabIndex = 185; Label4.Text = "Remaining:"; Label4.TextAlign = ContentAlignment.MiddleRight; // // Label5 // Label5.Location = new Point(6, 85); Label5.Margin = new Padding(4, 0, 4, 0); Label5.Name = "Label5"; Label5.Size = new Size(109, 33); Label5.TabIndex = 187; Label5.Text = "Total:"; Label5.TextAlign = ContentAlignment.MiddleRight; // // lblPlusMinus // lblPlusMinus.AutoSize = true; lblPlusMinus.Font = new Font("Segoe UI", 13.0f, FontStyle.Bold, GraphicsUnit.Point, Conversions.ToByte(0)); lblPlusMinus.Location = new Point(123, 43); lblPlusMinus.Margin = new Padding(4, 0, 4, 0); lblPlusMinus.Name = "lblPlusMinus"; lblPlusMinus.Size = new Size(19, 25); lblPlusMinus.TabIndex = 180; lblPlusMinus.Text = "-"; // // lblTotal // lblTotal.Font = new Font("Segoe UI", 13.0f, FontStyle.Bold, GraphicsUnit.Point, Conversions.ToByte(0)); lblTotal.Location = new Point(157, 88); lblTotal.Margin = new Padding(4, 0, 4, 0); lblTotal.Name = "lblTotal"; lblTotal.Size = new Size(97, 31); lblTotal.TabIndex = 186; lblTotal.TextAlign = ContentAlignment.MiddleCenter; // // BunifuSeparator1 // BunifuSeparator1.BackColor = Color.Transparent; BunifuSeparator1.LineColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(105)), Conversions.ToInteger(Conversions.ToByte(105)), Conversions.ToInteger(Conversions.ToByte(105))); BunifuSeparator1.LineThickness = 13; BunifuSeparator1.Location = new Point(157, 77); BunifuSeparator1.Margin = new Padding(5, 6, 5, 6); BunifuSeparator1.Name = "BunifuSeparator1"; BunifuSeparator1.Size = new Size(97, 10); BunifuSeparator1.TabIndex = 181; BunifuSeparator1.Transparency = 255; BunifuSeparator1.Vertical = false; // // Label3 // Label3.Location = new Point(6, 44); Label3.Margin = new Padding(4, 0, 4, 0); Label3.Name = "Label3"; Label3.Size = new Size(109, 33); Label3.TabIndex = 184; Label3.Text = "Quantity used:"; Label3.TextAlign = ContentAlignment.MiddleRight; // // nudQuantity // nudQuantity.Font = new Font("Segoe UI", 12.0f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); nudQuantity.Location = new Point(145, 91); nudQuantity.Margin = new Padding(4, 4, 4, 4); nudQuantity.Maximum = new decimal(new int[] { 10000, 0, 0, 0 }); nudQuantity.Name = "nudQuantity"; nudQuantity.Size = new Size(120, 29); nudQuantity.TabIndex = 197; // // Label1 // Label1.AutoSize = true; Label1.Location = new Point(37, 97); Label1.Margin = new Padding(4, 0, 4, 0); Label1.Name = "Label1"; Label1.Size = new Size(100, 17); Label1.TabIndex = 196; Label1.Text = "Quantity used:"; // // Label6 // Label6.AutoSize = true; Label6.Location = new Point(22, 164); Label6.Margin = new Padding(4, 0, 4, 0); Label6.Name = "Label6"; Label6.Size = new Size(113, 17); Label6.TabIndex = 195; Label6.Text = "Adjustment type:"; // // cboAjustmentTyoe // cboAjustmentTyoe.DropDownStyle = ComboBoxStyle.DropDownList; cboAjustmentTyoe.Font = new Font("Microsoft Sans Serif", 11.0f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); cboAjustmentTyoe.FormattingEnabled = true; cboAjustmentTyoe.Location = new Point(144, 159); cboAjustmentTyoe.Margin = new Padding(5, 6, 5, 6); cboAjustmentTyoe.Name = "cboAjustmentTyoe"; cboAjustmentTyoe.Size = new Size(172, 26); cboAjustmentTyoe.TabIndex = 194; // // pnlBooking // pnlBooking.Controls.Add(Label2); pnlBooking.Controls.Add(cboBookingNumber); pnlBooking.Location = new Point(13, 194); pnlBooking.Name = "pnlBooking"; pnlBooking.Size = new Size(303, 58); pnlBooking.TabIndex = 202; pnlBooking.Visible = false; // // Label2 // Label2.AutoSize = true; Label2.Location = new Point(4, 3); Label2.Name = "Label2"; Label2.Size = new Size(117, 17); Label2.TabIndex = 177; Label2.Text = "Booking Number:"; // // cboBookingNumber // cboBookingNumber.Font = new Font("Microsoft Sans Serif", 11.0f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); cboBookingNumber.FormattingEnabled = true; cboBookingNumber.Location = new Point(130, 1); cboBookingNumber.Margin = new Padding(4, 5, 4, 5); cboBookingNumber.Name = "cboBookingNumber"; cboBookingNumber.Size = new Size(173, 26); cboBookingNumber.TabIndex = 175; // // pnlAdjust // pnlAdjust.Controls.Add(Label9); pnlAdjust.Controls.Add(rbDecrease); pnlAdjust.Controls.Add(Label8); pnlAdjust.Controls.Add(rbIncrease); pnlAdjust.Location = new Point(65, 192); pnlAdjust.Name = "pnlAdjust"; pnlAdjust.Size = new Size(246, 58); pnlAdjust.TabIndex = 201; pnlAdjust.Visible = false; // // Label9 // Label9.AutoSize = true; Label9.Location = new Point(30, 29); Label9.Name = "Label9"; Label9.Size = new Size(166, 17); Label9.TabIndex = 179; Label9.Text = "DECREASE INVENTORY"; // // rbDecrease // rbDecrease.Checked = false; rbDecrease.Location = new Point(3, 28); rbDecrease.Name = "rbDecrease"; rbDecrease.OutlineColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(192)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(0))); rbDecrease.RadioColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(192)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(0))); rbDecrease.Size = new Size(21, 21); rbDecrease.TabIndex = 178; rbDecrease.Text = null; // // Label8 // Label8.AutoSize = true; Label8.Location = new Point(30, 4); Label8.Name = "Label8"; Label8.Size = new Size(160, 17); Label8.TabIndex = 177; Label8.Text = "INCREASE INVENTORY"; // // rbIncrease // rbIncrease.Checked = true; rbIncrease.Location = new Point(3, 3); rbIncrease.Name = "rbIncrease"; rbIncrease.OutlineColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(192)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(0))); rbIncrease.RadioColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(192)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(0))); rbIncrease.Size = new Size(21, 21); rbIncrease.TabIndex = 0; rbIncrease.Text = null; // // FrmUseInvQty // AutoScaleDimensions = new SizeF(8.0f, 16.0f); AutoScaleMode = AutoScaleMode.Font; BackColor = Color.White; ClientSize = new Size(638, 317); Controls.Add(pnlBooking); Controls.Add(pnlAdjust); Controls.Add(Label10); Controls.Add(cboBagLocation); Controls.Add(GroupBox1); Controls.Add(nudQuantity); Controls.Add(Label1); Controls.Add(Label6); Controls.Add(cboAjustmentTyoe); Controls.Add(Label7); Controls.Add(btnSave); Controls.Add(closeFlatButton); Controls.Add(Label17); Font = new Font("Microsoft Sans Serif", 10.0f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); FormBorderStyle = FormBorderStyle.None; Margin = new Padding(4, 4, 4, 4); Name = "FrmUseInvQty"; Text = "FrmUseInvQty"; GroupBox1.ResumeLayout(false); GroupBox1.PerformLayout(); ((System.ComponentModel.ISupportInitialize)nudQuantity).EndInit(); pnlBooking.ResumeLayout(false); pnlBooking.PerformLayout(); pnlAdjust.ResumeLayout(false); pnlAdjust.PerformLayout(); ResumeLayout(false); PerformLayout(); }
private void aviso_DoWork(object sender, DoWorkEventArgs e) { Invoke(new Action(() => { flowLayoutPanel1.Controls.Clear(); })); if (!Properties.Settings.Default.phpLocal) { try { MySqlConnection CONEXAObw = new MySqlConnection(Vars.Cfg); MySqlCommand checarAvisos; if (Properties.Settings.Default.permInt == 2) checarAvisos = new MySqlCommand("SELECT * FROM avisos INNER JOIN info_salas ON cod_sala = sala_aviso WHERE excluido_avisos = 0 AND adicionadopor_aviso LIKE '%" + Properties.Settings.Default.nome + "%';", CONEXAObw); else checarAvisos = new MySqlCommand("SELECT * FROM avisos WHERE excluido_avisos = 0 AND sala_aviso = '" + Properties.Settings.Default.codSala + "';", CONEXAObw); CONEXAObw.Open(); Bunifu.Framework.UI.BunifuSeparator sep1 = new Bunifu.Framework.UI.BunifuSeparator(); sep1.Width = flowLayoutPanel1.Width - 30; int cod = Convert.ToInt32(checarAvisos.ExecuteScalar()); if (cod > 0) { Invoke(new Action(() => { flowLayoutPanel1.Controls.Add(sep1); })); } MySqlDataReader lerAvisos = checarAvisos.ExecuteReader(); while (lerAvisos.Read()) { string aviso = lerAvisos["texto_aviso"].ToString(); if (aviso.Substring(aviso.Length - 1, 1) != "." && aviso.Substring(aviso.Length - 1, 1) != "!" && aviso.Substring(aviso.Length - 1, 1) != "?" && aviso.Substring(aviso.Length - 1, 1) != "\r\n") aviso += "."; /* Label avisoSub = new Label(); avisoSub.Font = new System.Drawing.Font("Trajan Pro", 13F, FontStyle.Bold); avisoSub.ForeColor = Vars.corTit; avisoSub.Size = new System.Drawing.Size(flowLayoutPanel2.Width - 30, 30); avisoSub.Text = "Lição de " + lerAvisos["nome_disc"].ToString() + ":"; avisoSub.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; flowLayoutPanel2.Controls.Add(avisoSub);*/ TableLayoutPanel painel = new TableLayoutPanel(); painel.AutoSize = true; if (Properties.Settings.Default.permInt == 2) { licaoTit avisoTit = new licaoTit(lerAvisos["nome_sala"].ToString(), flowLayoutPanel1.Width - 31); painel.Controls.Add(avisoTit); } avisoTxt avisoTxt = new avisoTxt(aviso); avisoTxt.MaximumSize = new System.Drawing.Size(flowLayoutPanel1.Width - 25, 999999); painel.Controls.Add(avisoTxt); /* if (lerAvisos["link_anexo"].ToString() != "") { string link = lerAvisos["link_anexo"].ToString(); PictureBox pic = new PictureBox(); pic.Size = new System.Drawing.Size(321, 170); pic.SizeMode = PictureBoxSizeMode.StretchImage; pic.Load(link); pic.Tag = link; pic.Cursor = Cursors.Hand; pic.Click += new System.EventHandler(go); flowLayoutPanel2.Controls.Add(pic); } */ AddPor avisoAddPor = new AddPor(lerAvisos["adicionadopor_aviso"].ToString(), lerAvisos["cod_aviso"].ToString()); avisoAddPor.AutoSize = false; avisoAddPor.Width = flowLayoutPanel1.Width - 31; painel.Controls.Add(avisoAddPor); AddEm avisoAddEm = new AddEm(lerAvisos["adicionadoem_aviso"].ToString()); painel.Controls.Add(avisoAddEm); if (lerAvisos["adicionadopor_aviso"].ToString() != "Equipe") { Bunifu.Framework.UI.BunifuTileButton btnExcluir = new Bunifu.Framework.UI.BunifuTileButton(); btnExcluir.BackColor = Color.Transparent; btnExcluir.color = Color.Transparent; btnExcluir.colorActive = System.Drawing.Color.DodgerBlue; btnExcluir.Cursor = System.Windows.Forms.Cursors.Hand; btnExcluir.Image = Properties.Resources.icons8_Trash_Can_64px; btnExcluir.ImagePosition = 0; btnExcluir.ImageZoom = 100; btnExcluir.LabelPosition = 0; btnExcluir.LabelText = ""; btnExcluir.Location = new System.Drawing.Point(349, 254); btnExcluir.Margin = new System.Windows.Forms.Padding(6); btnExcluir.Size = new System.Drawing.Size(40, 40); btnExcluir.TabIndex = 0; btnExcluir.Tag = lerAvisos["cod_aviso"].ToString(); btnExcluir.Click += new System.EventHandler(this.btnExcluir_Click); btnExcluir.Anchor = AnchorStyles.Right; painel.Controls.Add(btnExcluir); } Bunifu.Framework.UI.BunifuSeparator sep = new Bunifu.Framework.UI.BunifuSeparator(); sep.Width = flowLayoutPanel1.Width - 30; Invoke(new Action(() => { flowLayoutPanel1.Controls.Add(painel); flowLayoutPanel1.Controls.Add(sep); })); } lerAvisos.Close(); CONEXAObw.Close(); } catch (Exception ee) { if (Properties.Settings.Default.permInt == 3 || Properties.Settings.Default.permInt == 9) MessageBox.Show(ee.Message); } } else { WebClient kj = new WebClient(); kj.Encoding = System.Text.Encoding.UTF8; string resultado = kj.DownloadString("http://" + Vars.cfgPhp + "/avisos/avisos.php?sala=" + Properties.Settings.Default.codSala + "&perm=" + Properties.Settings.Default.permInt + "&nome=" + Properties.Settings.Default.nome).Trim(); string[] reps = resultado.Split(new string[] { "&&&" }, StringSplitOptions.RemoveEmptyEntries); foreach (string teste in reps) { string[] codes = teste.Split(new string[] { "@#@" }, StringSplitOptions.RemoveEmptyEntries); if (codes.Length > 3) { string txtAviso = codes[2]; string addPorAviso = codes[0]; string addEmAviso = codes[1]; string codAviso = codes[3]; string aviso = txtAviso; if (aviso.Substring(aviso.Length - 1, 1) != "." && aviso.Substring(aviso.Length - 1, 1) != "!" && aviso.Substring(aviso.Length - 1, 1) != "?" && aviso.Substring(aviso.Length - 1, 1) != "\r\n") aviso += "."; TableLayoutPanel painel = new TableLayoutPanel(); painel.AutoSize = true; if (Properties.Settings.Default.permInt == 2) { licaoTit avisoTit = new licaoTit(codes[4], flowLayoutPanel1.Width - 31); painel.Controls.Add(avisoTit); } avisoTxt avisoTxt = new avisoTxt(aviso); avisoTxt.MaximumSize = new System.Drawing.Size(flowLayoutPanel1.Width - 31, 999999); painel.Controls.Add(avisoTxt); /* if (lerAvisos["link_anexo"].ToString() != "") { string link = lerAvisos["link_anexo"].ToString(); PictureBox pic = new PictureBox(); pic.Size = new System.Drawing.Size(321, 170); pic.SizeMode = PictureBoxSizeMode.StretchImage; pic.Load(link); pic.Tag = link; pic.Cursor = Cursors.Hand; pic.Click += new System.EventHandler(go); flowLayoutPanel2.Controls.Add(pic); } */ AddPor avisoAddPor = new AddPor(addPorAviso, codAviso); avisoAddPor.AutoSize = false; avisoAddPor.Width = flowLayoutPanel1.Width - 31; painel.Controls.Add(avisoAddPor); AddEm avisoAddEm = new AddEm(addEmAviso); painel.Controls.Add(avisoAddEm); if (addPorAviso != "Equipe") { Bunifu.Framework.UI.BunifuTileButton btnExcluir = new Bunifu.Framework.UI.BunifuTileButton(); btnExcluir.BackColor = Color.Transparent; btnExcluir.color = Color.Transparent; btnExcluir.colorActive = System.Drawing.Color.DodgerBlue; btnExcluir.Cursor = System.Windows.Forms.Cursors.Hand; btnExcluir.Image = Properties.Resources.icons8_Trash_Can_64px; btnExcluir.ImagePosition = 0; btnExcluir.ImageZoom = 100; btnExcluir.LabelPosition = 0; btnExcluir.LabelText = ""; btnExcluir.Location = new System.Drawing.Point(349, 254); btnExcluir.Margin = new System.Windows.Forms.Padding(6); btnExcluir.Size = new System.Drawing.Size(40, 40); btnExcluir.TabIndex = 0; btnExcluir.Tag = codAviso; btnExcluir.Click += new System.EventHandler(this.btnExcluir_Click); btnExcluir.Anchor = AnchorStyles.Right; painel.Controls.Add(btnExcluir); } Bunifu.Framework.UI.BunifuSeparator sep = new Bunifu.Framework.UI.BunifuSeparator(); sep.Width = flowLayoutPanel1.Width - 30; Invoke(new Action(() => { flowLayoutPanel1.Controls.Add(painel); flowLayoutPanel1.Controls.Add(sep); })); } } } }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); BunifuAnimatorNS.Animation animation4 = new BunifuAnimatorNS.Animation(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormSignIn)); this.groupBox1 = new System.Windows.Forms.GroupBox(); this.btnCreateAccount_1 = new System.Windows.Forms.Button(); this.groupBox2 = new System.Windows.Forms.GroupBox(); this.chkInvisible = new System.Windows.Forms.CheckBox(); this.txtPassword = new System.Windows.Forms.TextBox(); this.txtUsername = new System.Windows.Forms.TextBox(); this.label2 = new System.Windows.Forms.Label(); this.label1 = new System.Windows.Forms.Label(); this.btnSignIn = new System.Windows.Forms.Button(); this.btnCancel = new System.Windows.Forms.Button(); this.btnChangePassword_1 = new System.Windows.Forms.Button(); this.panel2 = new System.Windows.Forms.Panel(); this.txt_DisName_R = new System.Windows.Forms.TextBox(); this.txtconfirm_R = new System.Windows.Forms.TextBox(); this.txt_Pass_R = new System.Windows.Forms.TextBox(); this.txt_user_R = new System.Windows.Forms.TextBox(); this.btn_Register = new System.Windows.Forms.Button(); this.label5 = new System.Windows.Forms.Label(); this.bunifuSeparator7 = new Bunifu.Framework.UI.BunifuSeparator(); this.bunifuSeparator8 = new Bunifu.Framework.UI.BunifuSeparator(); this.bunifuSeparator5 = new Bunifu.Framework.UI.BunifuSeparator(); this.bunifuSeparator6 = new Bunifu.Framework.UI.BunifuSeparator(); this.panel1 = new System.Windows.Forms.Panel(); this.pictureBox2 = new System.Windows.Forms.PictureBox(); this.label3 = new System.Windows.Forms.Label(); this.label6 = new System.Windows.Forms.Label(); this.lb_change_pass = new System.Windows.Forms.Label(); this.bunifuSeparator4 = new Bunifu.Framework.UI.BunifuSeparator(); this.bunifuSeparator3 = new Bunifu.Framework.UI.BunifuSeparator(); this.pictureBox1 = new System.Windows.Forms.PictureBox(); this.bunifuSeparator2 = new Bunifu.Framework.UI.BunifuSeparator(); this.bunifuSeparator1 = new Bunifu.Framework.UI.BunifuSeparator(); this.PanelTransition = new BunifuAnimatorNS.BunifuTransition(this.components); this.groupBox1.SuspendLayout(); this.groupBox2.SuspendLayout(); this.panel2.SuspendLayout(); this.panel1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit(); this.SuspendLayout(); // // groupBox1 // this.groupBox1.Controls.Add(this.btnCreateAccount_1); this.PanelTransition.SetDecoration(this.groupBox1, BunifuAnimatorNS.DecorationType.None); this.groupBox1.Location = new System.Drawing.Point(346, 6); this.groupBox1.Name = "groupBox1"; this.groupBox1.Size = new System.Drawing.Size(213, 48); this.groupBox1.TabIndex = 3; this.groupBox1.TabStop = false; this.groupBox1.Text = "Bạn chưa có tài khoản?"; // // btnCreateAccount_1 // this.PanelTransition.SetDecoration(this.btnCreateAccount_1, BunifuAnimatorNS.DecorationType.None); this.btnCreateAccount_1.FlatStyle = System.Windows.Forms.FlatStyle.System; this.btnCreateAccount_1.Location = new System.Drawing.Point(67, 16); this.btnCreateAccount_1.Name = "btnCreateAccount_1"; this.btnCreateAccount_1.Size = new System.Drawing.Size(120, 24); this.btnCreateAccount_1.TabIndex = 0; this.btnCreateAccount_1.Text = "Tạo tài khoản mới"; this.btnCreateAccount_1.Click += new System.EventHandler(this.btnCreateAccount_Click); // // groupBox2 // this.groupBox2.Controls.Add(this.btnCancel); this.groupBox2.Controls.Add(this.label2); this.groupBox2.Controls.Add(this.btnChangePassword_1); this.groupBox2.Controls.Add(this.label1); this.PanelTransition.SetDecoration(this.groupBox2, BunifuAnimatorNS.DecorationType.None); this.groupBox2.Location = new System.Drawing.Point(346, 60); this.groupBox2.Name = "groupBox2"; this.groupBox2.Size = new System.Drawing.Size(213, 157); this.groupBox2.TabIndex = 1; this.groupBox2.TabStop = false; this.groupBox2.Text = "Bạn đã có tài khoản rồi?"; // // chkInvisible // this.PanelTransition.SetDecoration(this.chkInvisible, BunifuAnimatorNS.DecorationType.None); this.chkInvisible.FlatStyle = System.Windows.Forms.FlatStyle.System; this.chkInvisible.Location = new System.Drawing.Point(51, 245); this.chkInvisible.Name = "chkInvisible"; this.chkInvisible.Size = new System.Drawing.Size(112, 16); this.chkInvisible.TabIndex = 3; this.chkInvisible.Text = "Đăng nhập ẩn"; // // txtPassword // this.txtPassword.BorderStyle = System.Windows.Forms.BorderStyle.None; this.PanelTransition.SetDecoration(this.txtPassword, BunifuAnimatorNS.DecorationType.None); this.txtPassword.Font = new System.Drawing.Font("Sitka Banner", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.txtPassword.Location = new System.Drawing.Point(45, 212); this.txtPassword.Name = "txtPassword"; this.txtPassword.PasswordChar = '*'; this.txtPassword.Size = new System.Drawing.Size(210, 21); this.txtPassword.TabIndex = 1; this.txtPassword.Text = "123446"; // // txtUsername // this.txtUsername.BorderStyle = System.Windows.Forms.BorderStyle.None; this.PanelTransition.SetDecoration(this.txtUsername, BunifuAnimatorNS.DecorationType.None); this.txtUsername.Font = new System.Drawing.Font("Sitka Banner", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.txtUsername.ForeColor = System.Drawing.SystemColors.WindowText; this.txtUsername.Location = new System.Drawing.Point(45, 164); this.txtUsername.Name = "txtUsername"; this.txtUsername.Size = new System.Drawing.Size(211, 21); this.txtUsername.TabIndex = 0; this.txtUsername.Text = "Username"; // // label2 // this.PanelTransition.SetDecoration(this.label2, BunifuAnimatorNS.DecorationType.None); this.label2.Location = new System.Drawing.Point(29, 56); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(64, 16); this.label2.TabIndex = 2; this.label2.Text = "Mật khẩu :"; // // label1 // this.PanelTransition.SetDecoration(this.label1, BunifuAnimatorNS.DecorationType.None); this.label1.Location = new System.Drawing.Point(8, 24); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(91, 16); this.label1.TabIndex = 4; this.label1.Text = "Tên tài khoản :"; // // btnSignIn // this.PanelTransition.SetDecoration(this.btnSignIn, BunifuAnimatorNS.DecorationType.None); this.btnSignIn.DialogResult = System.Windows.Forms.DialogResult.OK; this.btnSignIn.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnSignIn.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(173)))), ((int)(((byte)(239))))); this.btnSignIn.Location = new System.Drawing.Point(50, 271); this.btnSignIn.Name = "btnSignIn"; this.btnSignIn.Size = new System.Drawing.Size(206, 39); this.btnSignIn.TabIndex = 0; this.btnSignIn.Text = "Đăng Nhập"; this.btnSignIn.Click += new System.EventHandler(this.btnSignIn_Click); // // btnCancel // this.PanelTransition.SetDecoration(this.btnCancel, BunifuAnimatorNS.DecorationType.None); this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.btnCancel.FlatStyle = System.Windows.Forms.FlatStyle.System; this.btnCancel.Location = new System.Drawing.Point(90, 119); this.btnCancel.Name = "btnCancel"; this.btnCancel.Size = new System.Drawing.Size(68, 24); this.btnCancel.TabIndex = 2; this.btnCancel.Text = "Hủy"; // // btnChangePassword_1 // this.PanelTransition.SetDecoration(this.btnChangePassword_1, BunifuAnimatorNS.DecorationType.None); this.btnChangePassword_1.FlatStyle = System.Windows.Forms.FlatStyle.System; this.btnChangePassword_1.Location = new System.Drawing.Point(164, 119); this.btnChangePassword_1.Name = "btnChangePassword_1"; this.btnChangePassword_1.Size = new System.Drawing.Size(112, 24); this.btnChangePassword_1.TabIndex = 3; this.btnChangePassword_1.Text = "Thay đổi mật khẩu"; this.btnChangePassword_1.Click += new System.EventHandler(this.btnChangePassword_Click); // // panel2 // this.panel2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(173)))), ((int)(((byte)(239))))); this.panel2.Controls.Add(this.txt_DisName_R); this.panel2.Controls.Add(this.txtconfirm_R); this.panel2.Controls.Add(this.txt_Pass_R); this.panel2.Controls.Add(this.txt_user_R); this.panel2.Controls.Add(this.btn_Register); this.panel2.Controls.Add(this.label5); this.panel2.Controls.Add(this.bunifuSeparator7); this.panel2.Controls.Add(this.bunifuSeparator8); this.panel2.Controls.Add(this.bunifuSeparator5); this.panel2.Controls.Add(this.bunifuSeparator6); this.PanelTransition.SetDecoration(this.panel2, BunifuAnimatorNS.DecorationType.None); this.panel2.Dock = System.Windows.Forms.DockStyle.Left; this.panel2.Location = new System.Drawing.Point(0, 0); this.panel2.Name = "panel2"; this.panel2.Size = new System.Drawing.Size(0, 448); this.panel2.TabIndex = 11; // // txt_DisName_R // this.txt_DisName_R.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(173)))), ((int)(((byte)(239))))); this.txt_DisName_R.BorderStyle = System.Windows.Forms.BorderStyle.None; this.PanelTransition.SetDecoration(this.txt_DisName_R, BunifuAnimatorNS.DecorationType.None); this.txt_DisName_R.Font = new System.Drawing.Font("Sitka Banner", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.txt_DisName_R.ForeColor = System.Drawing.Color.White; this.txt_DisName_R.Location = new System.Drawing.Point(44, 274); this.txt_DisName_R.Multiline = true; this.txt_DisName_R.Name = "txt_DisName_R"; this.txt_DisName_R.Size = new System.Drawing.Size(211, 20); this.txt_DisName_R.TabIndex = 23; this.txt_DisName_R.Text = "DisplayName"; // // txtconfirm_R // this.txtconfirm_R.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(173)))), ((int)(((byte)(239))))); this.txtconfirm_R.BorderStyle = System.Windows.Forms.BorderStyle.None; this.PanelTransition.SetDecoration(this.txtconfirm_R, BunifuAnimatorNS.DecorationType.None); this.txtconfirm_R.Font = new System.Drawing.Font("Sitka Banner", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.txtconfirm_R.ForeColor = System.Drawing.Color.White; this.txtconfirm_R.Location = new System.Drawing.Point(44, 225); this.txtconfirm_R.Multiline = true; this.txtconfirm_R.Name = "txtconfirm_R"; this.txtconfirm_R.Size = new System.Drawing.Size(211, 20); this.txtconfirm_R.TabIndex = 22; this.txtconfirm_R.Text = "Re - Password"; // // txt_Pass_R // this.txt_Pass_R.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(173)))), ((int)(((byte)(239))))); this.txt_Pass_R.BorderStyle = System.Windows.Forms.BorderStyle.None; this.PanelTransition.SetDecoration(this.txt_Pass_R, BunifuAnimatorNS.DecorationType.None); this.txt_Pass_R.Font = new System.Drawing.Font("Sitka Banner", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.txt_Pass_R.ForeColor = System.Drawing.Color.White; this.txt_Pass_R.Location = new System.Drawing.Point(44, 177); this.txt_Pass_R.Multiline = true; this.txt_Pass_R.Name = "txt_Pass_R"; this.txt_Pass_R.Size = new System.Drawing.Size(211, 20); this.txt_Pass_R.TabIndex = 21; this.txt_Pass_R.Text = "Password"; // // txt_user_R // this.txt_user_R.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(173)))), ((int)(((byte)(239))))); this.txt_user_R.BorderStyle = System.Windows.Forms.BorderStyle.None; this.PanelTransition.SetDecoration(this.txt_user_R, BunifuAnimatorNS.DecorationType.None); this.txt_user_R.Font = new System.Drawing.Font("Sitka Banner", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.txt_user_R.ForeColor = System.Drawing.Color.White; this.txt_user_R.Location = new System.Drawing.Point(44, 128); this.txt_user_R.Multiline = true; this.txt_user_R.Name = "txt_user_R"; this.txt_user_R.Size = new System.Drawing.Size(211, 20); this.txt_user_R.TabIndex = 20; this.txt_user_R.Text = "Username"; // // btn_Register // this.btn_Register.BackColor = System.Drawing.Color.Transparent; this.PanelTransition.SetDecoration(this.btn_Register, BunifuAnimatorNS.DecorationType.None); this.btn_Register.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btn_Register.Font = new System.Drawing.Font("Sitka Banner", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.btn_Register.ForeColor = System.Drawing.Color.White; this.btn_Register.Location = new System.Drawing.Point(46, 328); this.btn_Register.Name = "btn_Register"; this.btn_Register.Size = new System.Drawing.Size(206, 42); this.btn_Register.TabIndex = 10; this.btn_Register.Text = "Register"; this.btn_Register.UseVisualStyleBackColor = false; this.btn_Register.Click += new System.EventHandler(this.btn_Register_Click); // // label5 // this.label5.Cursor = System.Windows.Forms.Cursors.Hand; this.PanelTransition.SetDecoration(this.label5, BunifuAnimatorNS.DecorationType.None); this.label5.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F); this.label5.ForeColor = System.Drawing.Color.White; this.label5.Location = new System.Drawing.Point(45, 413); this.label5.Name = "label5"; this.label5.Size = new System.Drawing.Size(210, 23); this.label5.TabIndex = 12; this.label5.Text = "Login"; this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.label5.Click += new System.EventHandler(this.label5_Click); // // bunifuSeparator7 // this.bunifuSeparator7.BackColor = System.Drawing.Color.Transparent; this.PanelTransition.SetDecoration(this.bunifuSeparator7, BunifuAnimatorNS.DecorationType.None); this.bunifuSeparator7.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.bunifuSeparator7.LineThickness = 2; this.bunifuSeparator7.Location = new System.Drawing.Point(44, 300); this.bunifuSeparator7.Name = "bunifuSeparator7"; this.bunifuSeparator7.Size = new System.Drawing.Size(210, 3); this.bunifuSeparator7.TabIndex = 19; this.bunifuSeparator7.Transparency = 255; this.bunifuSeparator7.Vertical = false; // // bunifuSeparator8 // this.bunifuSeparator8.BackColor = System.Drawing.Color.Transparent; this.PanelTransition.SetDecoration(this.bunifuSeparator8, BunifuAnimatorNS.DecorationType.None); this.bunifuSeparator8.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.bunifuSeparator8.LineThickness = 2; this.bunifuSeparator8.Location = new System.Drawing.Point(44, 251); this.bunifuSeparator8.Name = "bunifuSeparator8"; this.bunifuSeparator8.Size = new System.Drawing.Size(210, 3); this.bunifuSeparator8.TabIndex = 17; this.bunifuSeparator8.Transparency = 255; this.bunifuSeparator8.Vertical = false; // // bunifuSeparator5 // this.bunifuSeparator5.BackColor = System.Drawing.Color.Transparent; this.PanelTransition.SetDecoration(this.bunifuSeparator5, BunifuAnimatorNS.DecorationType.None); this.bunifuSeparator5.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.bunifuSeparator5.LineThickness = 2; this.bunifuSeparator5.Location = new System.Drawing.Point(44, 203); this.bunifuSeparator5.Name = "bunifuSeparator5"; this.bunifuSeparator5.Size = new System.Drawing.Size(210, 3); this.bunifuSeparator5.TabIndex = 15; this.bunifuSeparator5.Transparency = 255; this.bunifuSeparator5.Vertical = false; // // bunifuSeparator6 // this.bunifuSeparator6.BackColor = System.Drawing.Color.Transparent; this.PanelTransition.SetDecoration(this.bunifuSeparator6, BunifuAnimatorNS.DecorationType.None); this.bunifuSeparator6.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.bunifuSeparator6.LineThickness = 2; this.bunifuSeparator6.Location = new System.Drawing.Point(45, 154); this.bunifuSeparator6.Name = "bunifuSeparator6"; this.bunifuSeparator6.Size = new System.Drawing.Size(210, 3); this.bunifuSeparator6.TabIndex = 13; this.bunifuSeparator6.Transparency = 255; this.bunifuSeparator6.Vertical = false; // // panel1 // this.panel1.BackColor = System.Drawing.Color.White; this.panel1.Controls.Add(this.pictureBox2); this.panel1.Controls.Add(this.btnSignIn); this.panel1.Controls.Add(this.chkInvisible); this.panel1.Controls.Add(this.label3); this.panel1.Controls.Add(this.label6); this.panel1.Controls.Add(this.txtPassword); this.panel1.Controls.Add(this.lb_change_pass); this.panel1.Controls.Add(this.bunifuSeparator4); this.panel1.Controls.Add(this.txtUsername); this.panel1.Controls.Add(this.bunifuSeparator3); this.panel1.Controls.Add(this.pictureBox1); this.panel1.Controls.Add(this.bunifuSeparator2); this.panel1.Controls.Add(this.bunifuSeparator1); this.PanelTransition.SetDecoration(this.panel1, BunifuAnimatorNS.DecorationType.None); this.panel1.Dock = System.Windows.Forms.DockStyle.Left; this.panel1.Location = new System.Drawing.Point(0, 0); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(300, 448); this.panel1.TabIndex = 12; // // pictureBox2 // this.PanelTransition.SetDecoration(this.pictureBox2, BunifuAnimatorNS.DecorationType.None); this.pictureBox2.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox2.Image"))); this.pictureBox2.Location = new System.Drawing.Point(3, 3); this.pictureBox2.Name = "pictureBox2"; this.pictureBox2.Size = new System.Drawing.Size(20, 20); this.pictureBox2.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; this.pictureBox2.TabIndex = 16; this.pictureBox2.TabStop = false; // // label3 // this.label3.Cursor = System.Windows.Forms.Cursors.Arrow; this.PanelTransition.SetDecoration(this.label3, BunifuAnimatorNS.DecorationType.None); this.label3.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F); this.label3.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(173)))), ((int)(((byte)(239))))); this.label3.Location = new System.Drawing.Point(48, 413); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(210, 23); this.label3.TabIndex = 15; this.label3.Text = "Register"; this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.label3.Click += new System.EventHandler(this.label3_Click); // // label6 // this.label6.Cursor = System.Windows.Forms.Cursors.Hand; this.PanelTransition.SetDecoration(this.label6, BunifuAnimatorNS.DecorationType.None); this.label6.Font = new System.Drawing.Font("Microsoft Sans Serif", 8F); this.label6.ForeColor = System.Drawing.Color.DarkGray; this.label6.Location = new System.Drawing.Point(99, 309); this.label6.Name = "label6"; this.label6.Size = new System.Drawing.Size(111, 23); this.label6.TabIndex = 14; this.label6.Text = "Forgot the password?"; this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // lb_change_pass // this.lb_change_pass.Cursor = System.Windows.Forms.Cursors.Arrow; this.PanelTransition.SetDecoration(this.lb_change_pass, BunifuAnimatorNS.DecorationType.None); this.lb_change_pass.Font = new System.Drawing.Font("Microsoft Sans Serif", 8F); this.lb_change_pass.ForeColor = System.Drawing.Color.DarkGray; this.lb_change_pass.Location = new System.Drawing.Point(99, 388); this.lb_change_pass.Name = "lb_change_pass"; this.lb_change_pass.Size = new System.Drawing.Size(123, 23); this.lb_change_pass.TabIndex = 13; this.lb_change_pass.Text = "Change the password..."; this.lb_change_pass.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; this.lb_change_pass.Click += new System.EventHandler(this.lb_change_pass_Click); // // bunifuSeparator4 // this.bunifuSeparator4.BackColor = System.Drawing.Color.Transparent; this.PanelTransition.SetDecoration(this.bunifuSeparator4, BunifuAnimatorNS.DecorationType.None); this.bunifuSeparator4.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(100)))), ((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(192))))); this.bunifuSeparator4.LineThickness = 2; this.bunifuSeparator4.Location = new System.Drawing.Point(45, 235); this.bunifuSeparator4.Name = "bunifuSeparator4"; this.bunifuSeparator4.Size = new System.Drawing.Size(210, 3); this.bunifuSeparator4.TabIndex = 12; this.bunifuSeparator4.Transparency = 100; this.bunifuSeparator4.Vertical = false; // // bunifuSeparator3 // this.bunifuSeparator3.BackColor = System.Drawing.Color.Transparent; this.PanelTransition.SetDecoration(this.bunifuSeparator3, BunifuAnimatorNS.DecorationType.None); this.bunifuSeparator3.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(100)))), ((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(192))))); this.bunifuSeparator3.LineThickness = 2; this.bunifuSeparator3.Location = new System.Drawing.Point(45, 191); this.bunifuSeparator3.Name = "bunifuSeparator3"; this.bunifuSeparator3.Size = new System.Drawing.Size(210, 3); this.bunifuSeparator3.TabIndex = 11; this.bunifuSeparator3.Transparency = 100; this.bunifuSeparator3.Vertical = false; // // pictureBox1 // this.pictureBox1.BackColor = System.Drawing.Color.White; this.PanelTransition.SetDecoration(this.pictureBox1, BunifuAnimatorNS.DecorationType.None); this.pictureBox1.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox1.Image"))); this.pictureBox1.Location = new System.Drawing.Point(3, 32); this.pictureBox1.Name = "pictureBox1"; this.pictureBox1.Size = new System.Drawing.Size(294, 116); this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; this.pictureBox1.TabIndex = 10; this.pictureBox1.TabStop = false; // // bunifuSeparator2 // this.bunifuSeparator2.BackColor = System.Drawing.Color.Transparent; this.PanelTransition.SetDecoration(this.bunifuSeparator2, BunifuAnimatorNS.DecorationType.None); this.bunifuSeparator2.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(192))))); this.bunifuSeparator2.LineThickness = 1; this.bunifuSeparator2.Location = new System.Drawing.Point(153, 2); this.bunifuSeparator2.Name = "bunifuSeparator2"; this.bunifuSeparator2.Size = new System.Drawing.Size(105, 10); this.bunifuSeparator2.TabIndex = 9; this.bunifuSeparator2.Transparency = 255; this.bunifuSeparator2.Vertical = false; // // bunifuSeparator1 // this.bunifuSeparator1.BackColor = System.Drawing.Color.Transparent; this.PanelTransition.SetDecoration(this.bunifuSeparator1, BunifuAnimatorNS.DecorationType.None); this.bunifuSeparator1.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(173)))), ((int)(((byte)(239))))); this.bunifuSeparator1.LineThickness = 2; this.bunifuSeparator1.Location = new System.Drawing.Point(48, 3); this.bunifuSeparator1.Name = "bunifuSeparator1"; this.bunifuSeparator1.Size = new System.Drawing.Size(105, 10); this.bunifuSeparator1.TabIndex = 8; this.bunifuSeparator1.Transparency = 255; this.bunifuSeparator1.Vertical = false; // // PanelTransition // this.PanelTransition.AnimationType = BunifuAnimatorNS.AnimationType.VertSlide; this.PanelTransition.Cursor = null; animation4.AnimateOnlyDifferences = true; animation4.BlindCoeff = ((System.Drawing.PointF)(resources.GetObject("animation4.BlindCoeff"))); animation4.LeafCoeff = 0F; animation4.MaxTime = 1F; animation4.MinTime = 0F; animation4.MosaicCoeff = ((System.Drawing.PointF)(resources.GetObject("animation4.MosaicCoeff"))); animation4.MosaicShift = ((System.Drawing.PointF)(resources.GetObject("animation4.MosaicShift"))); animation4.MosaicSize = 0; animation4.Padding = new System.Windows.Forms.Padding(0); animation4.RotateCoeff = 0F; animation4.RotateLimit = 0F; animation4.ScaleCoeff = ((System.Drawing.PointF)(resources.GetObject("animation4.ScaleCoeff"))); animation4.SlideCoeff = ((System.Drawing.PointF)(resources.GetObject("animation4.SlideCoeff"))); animation4.TimeCoeff = 0F; animation4.TransparencyCoeff = 0F; this.PanelTransition.DefaultAnimation = animation4; // // FormSignIn // this.AcceptButton = this.btnSignIn; this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.CancelButton = this.btnCancel; this.ClientSize = new System.Drawing.Size(302, 448); this.Controls.Add(this.panel1); this.Controls.Add(this.panel2); this.Controls.Add(this.groupBox2); this.Controls.Add(this.groupBox1); this.PanelTransition.SetDecoration(this, BunifuAnimatorNS.DecorationType.None); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.MaximizeBox = false; this.MinimizeBox = false; this.Name = "FormSignIn"; this.ShowInTaskbar = false; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; this.Text = "Đăng nhập"; this.Closing += new System.ComponentModel.CancelEventHandler(this.FormSignIn_Closing); this.groupBox1.ResumeLayout(false); this.groupBox2.ResumeLayout(false); this.panel2.ResumeLayout(false); this.panel2.PerformLayout(); this.panel1.ResumeLayout(false); this.panel1.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit(); this.ResumeLayout(false); }
private void aviso_DoWork(object sender, DoWorkEventArgs e) { Invoke(new Action(() => { flowLayoutPanel2.Controls.Clear(); })); if (!Properties.Settings.Default.phpLocal) { try { MySqlConnection CONEXAObw = new MySqlConnection(Vars.Cfg); MySqlCommand checarAvisos = new MySqlCommand("SELECT * FROM avisos WHERE excluido_avisos = 0 AND sala_aviso = '" + Properties.Settings.Default.codSala + "' OR sala_aviso = 0 ORDER BY adicionadoem_aviso DESC;", CONEXAObw); CONEXAObw.Open(); MySqlDataReader lerAvisos = checarAvisos.ExecuteReader(); while (lerAvisos.Read()) { if (!Vars.af.aAviso2.Contains(lerAvisos["cod_aviso"].ToString())) { Vars.af.aAviso2.Add(lerAvisos["cod_aviso"].ToString()); } string aviso = lerAvisos["texto_aviso"].ToString(); if (aviso.Substring(aviso.Length - 1, 1) != "." && aviso.Substring(aviso.Length - 1, 1) != "!" && aviso.Substring(aviso.Length - 1, 1) != "?" && aviso.Substring(aviso.Length - 1, 1) != "\r\n") { aviso += "."; } avisoTxt avisoTxt = new avisoTxt(aviso); Invoke(new Action(() => { flowLayoutPanel2.Controls.Add(avisoTxt); })); AddPor licaoAddPor = new AddPor(lerAvisos["adicionadopor_aviso"].ToString(), lerAvisos["cod_aviso"].ToString()); Invoke(new Action(() => { flowLayoutPanel2.Controls.Add(licaoAddPor); })); AddEm licaoAddEm = new AddEm(lerAvisos["adicionadoem_aviso"].ToString()); Bunifu.Framework.UI.BunifuSeparator sep = new Bunifu.Framework.UI.BunifuSeparator(); sep.Width = flowLayoutPanel2.Width - 30; Invoke(new Action(() => { flowLayoutPanel2.Controls.Add(licaoAddEm); flowLayoutPanel2.Controls.Add(sep); })); } lerAvisos.Close(); CONEXAObw.Close(); } catch (Exception ee) { if (Properties.Settings.Default.permInt == 3 || Properties.Settings.Default.permInt == 9) { MessageBox.Show(ee.Message); } } } else { WebClient kj = new WebClient(); kj.Encoding = System.Text.Encoding.UTF8; string resultado = kj.DownloadString("http://" + Vars.cfgPhp + "/principal/avisos.php?sala=" + Properties.Settings.Default.codSala).Trim(); string[] reps = resultado.Split(new string[] { "&&&" }, StringSplitOptions.RemoveEmptyEntries); foreach (string teste in reps) { string[] codes = teste.Split(new string[] { "@#@" }, StringSplitOptions.RemoveEmptyEntries); if (codes.Length > 3) { string txtAviso = codes[2]; string addPorAviso = codes[0]; string addEmAviso = codes[1]; string codAviso = codes[3]; if (!Vars.af.aAviso2.Contains(codAviso)) { Vars.af.aAviso2.Add(codAviso); } string aviso = txtAviso; if (aviso.Substring(aviso.Length - 1, 1) != "." && aviso.Substring(aviso.Length - 1, 1) != "!" && aviso.Substring(aviso.Length - 1, 1) != "?" && aviso.Substring(aviso.Length - 1, 1) != "\r\n") { aviso += "."; } avisoTxt avisoTxt = new avisoTxt(aviso); Invoke(new Action(() => { flowLayoutPanel2.Controls.Add(avisoTxt); })); AddPor licaoAddPor = new AddPor(addPorAviso, codAviso); Invoke(new Action(() => { flowLayoutPanel2.Controls.Add(licaoAddPor); })); AddEm licaoAddEm = new AddEm(addEmAviso); Bunifu.Framework.UI.BunifuSeparator sep = new Bunifu.Framework.UI.BunifuSeparator(); sep.Width = flowLayoutPanel2.Width - 30; Invoke(new Action(() => { flowLayoutPanel2.Controls.Add(licaoAddEm); flowLayoutPanel2.Controls.Add(sep); })); } } } Vars.trabAviso = false; /*Invoke(new Action(() => * { * carregando.Visible = false; * this.Visible = true; * }));*/ }
public void licaoSemana(string dia, string mes) { if (!Properties.Settings.Default.phpLocal) { MySqlConnection CONEXAObw = new MySqlConnection(Vars.Cfg); MySqlCommand checarLicoes = new MySqlCommand("SELECT * FROM licoes INNER JOIN profdisc ON licoes.disc = cod_disc INNER JOIN disc ON discid_disc = cod_discs WHERE mesentrega = @Mes AND diaentrega = @Dia AND avaliado > 0 AND sala = '" + Properties.Settings.Default.codSala + "';", CONEXAObw); try { checarLicoes.Parameters.AddWithValue("@Mes", mes); checarLicoes.Parameters.AddWithValue("@Dia", dia); CONEXAObw.Open(); MySqlDataReader lerLicoes = checarLicoes.ExecuteReader(); while (lerLicoes.Read()) { if (!Vars.af.aLicao2.Contains(lerLicoes["cod"].ToString())) { Vars.af.aLicao2.Add(lerLicoes["cod"].ToString()); } string licao = lerLicoes["licao"].ToString(); if (licao.Substring(licao.Length - 1, 1) != "." && licao.Substring(licao.Length - 1, 1) != "!" && licao.Substring(licao.Length - 1, 1) != "?" && licao.Substring(licao.Length - 1, 1) != "\r\n") { licao += "."; } TableLayoutPanel painel = new TableLayoutPanel(); painel.AutoSize = true; painel.Dock = DockStyle.Fill; licaoTit licaoTit = new licaoTit(lerLicoes["nome_disc"].ToString(), flowLayoutPanel1.Width - 31); painel.Controls.Add(licaoTit); DateTime dateValue = new DateTime(2017, Convert.ToInt32(lerLicoes["mesentrega"].ToString()), Int32.Parse(lerLicoes["diaentrega"].ToString())); licaoTit licaoTit2 = new licaoTit("Para a próxima " + checarDia(dateValue.ToString("ddd")) + "!", flowLayoutPanel1.Width - 31); painel.Controls.Add(licaoTit2); licaoTxt licaoTxt = new licaoTxt(licao, flowLayoutPanel1.Width - 31); painel.Controls.Add(licaoTxt); if (lerLicoes["link_anexo"].ToString() != "") { Invoke(new Action(() => { string link = lerLicoes["link_anexo"].ToString(); pic pic = new DiarioDeClasse.pic(link, flowLayoutPanel1.Width - 31); //PictureBox pb = new PictureBox(); pic.ImageLocation = link; Image img = pic.Image; pic.Image = img; painel.Controls.Add(pic); })); } AddPor licaoAddPor = new AddPor(lerLicoes["adicionadopor"].ToString(), lerLicoes["cod"].ToString()); painel.Controls.Add(licaoAddPor); AddEm licaoAddEm = new AddEm(lerLicoes["adicionadoem"].ToString()); painel.Controls.Add(licaoAddEm); Bunifu.Framework.UI.BunifuSeparator sep = new Bunifu.Framework.UI.BunifuSeparator(); sep.Width = flowLayoutPanel1.Width - 30; Invoke(new Action(() => { flowLayoutPanel1.Controls.Add(painel); flowLayoutPanel1.Controls.Add(sep); })); } lerLicoes.Close(); CONEXAObw.Close(); } catch (Exception erro) { if (Properties.Settings.Default.permInt == 3 || Properties.Settings.Default.permInt == 9) { MessageBox.Show("Houve um erro no MySql:\r\n" + erro.Message); } } } else { WebClient kj = new WebClient(); kj.Encoding = System.Text.Encoding.UTF8; string resultado = kj.DownloadString("http://" + Vars.cfgPhp + "/principal/licao.php?sala=" + Properties.Settings.Default.codSala + "&dia=" + dia + "&mes=" + mes).Trim(); string[] reps = resultado.Split(new string[] { "&&&" }, StringSplitOptions.RemoveEmptyEntries); foreach (string teste in reps) { string[] codes = teste.Split(new string[] { "@#@" }, StringSplitOptions.RemoveEmptyEntries); if (codes.Length > 3) { string discLicao = codes[0]; string codLicao = codes[1]; string txtLicao = codes[2]; string anexoLicao = ""; string addPorLicao = ""; string addEmLicao = ""; if (codes[3].Contains("imgur")) { anexoLicao = codes[3]; addPorLicao = codes[4]; addEmLicao = codes[5]; } else { addPorLicao = codes[3]; addEmLicao = codes[4]; } if (!Vars.af.aLicao2.Contains(codLicao)) { Vars.af.aLicao2.Add(codLicao); } string licao = txtLicao; if (licao.Substring(licao.Length - 1, 1) != "." && licao.Substring(licao.Length - 1, 1) != "!" && licao.Substring(licao.Length - 1, 1) != "?" && licao.Substring(licao.Length - 1, 1) != "\r\n") { licao += "."; } TableLayoutPanel painel = new TableLayoutPanel(); painel.AutoSize = true; licaoTit licaoTit = new licaoTit(discLicao, flowLayoutPanel1.Width - 31); painel.Controls.Add(licaoTit); DateTime dateValue = new DateTime(2017, Convert.ToInt32(mes), Int32.Parse(dia)); licaoTit licaoTit2 = new licaoTit("Para a próxima " + checarDia(dateValue.ToString("ddd")) + "!", flowLayoutPanel1.Width - 31); painel.Controls.Add(licaoTit2); licaoTxt licaoTxt = new licaoTxt(licao, flowLayoutPanel1.Width - 31); painel.Controls.Add(licaoTxt); if (anexoLicao != "") { Invoke(new Action(() => { string link = anexoLicao; pic pic = new DiarioDeClasse.pic(link, flowLayoutPanel1.Width - 31); //PictureBox pb = new PictureBox(); pic.ImageLocation = link; Image img = pic.Image; pic.Image = img; painel.Controls.Add(pic); })); } AddPor licaoAddPor = new AddPor(addPorLicao, codLicao); painel.Controls.Add(licaoAddPor); AddEm licaoAddEm = new AddEm(addEmLicao); painel.Controls.Add(licaoAddEm); Bunifu.Framework.UI.BunifuSeparator sep = new Bunifu.Framework.UI.BunifuSeparator(); sep.Width = flowLayoutPanel1.Width - 30; Invoke(new Action(() => { flowLayoutPanel1.Controls.Add(painel); flowLayoutPanel1.Controls.Add(sep); })); } } } }
private void rep_DoWork(object sender, DoWorkEventArgs e) { Invoke(new Action(() => { panelVerif.Controls.Clear(); })); if (!Properties.Settings.Default.phpLocal) { MySqlConnection CONEXAObw = new MySqlConnection(Vars.Cfg); MySqlCommand checarTarefas = new MySqlCommand("SELECT * FROM licoes INNER JOIN profdisc ON licoes.disc = cod_disc INNER JOIN info_salas ON sala = cod_sala INNER JOIN disc ON discid_disc = cod_discs WHERE avaliado = 0 AND avaliado != -1 AND nome_sala = @Sala", CONEXAObw); checarTarefas.Parameters.AddWithValue("@Sala", Properties.Settings.Default.sala); try { CONEXAObw.Open(); MySqlDataReader lerTarefas = checarTarefas.ExecuteReader(); while (lerTarefas.Read()) { Bunifu.Framework.UI.BunifuSeparator sep = new Bunifu.Framework.UI.BunifuSeparator(); if (!Vars.af.aRep2.Contains(lerTarefas["cod"].ToString())) { Vars.af.aRep2.Add(lerTarefas["cod"].ToString()); } string licao = lerTarefas["licao"].ToString(); if (licao.Substring(licao.Length - 1, 1) != "." && licao.Substring(licao.Length - 1, 1) != "!" && licao.Substring(licao.Length - 1, 1) != "?" && licao.Substring(licao.Length - 1, 1) != "\r\n") { licao += "."; } TableLayoutPanel painel = new TableLayoutPanel(); painel.AutoSize = true; licaoTit licaoTit = new licaoTit(lerTarefas["nome_disc"].ToString(), panelVerif.Width - 31); painel.Controls.Add(licaoTit); licaoTxt licaoTxt = new licaoTxt(licao, panelVerif.Width - 31); painel.Controls.Add(licaoTxt); if (lerTarefas["link_anexo"].ToString() != "") { Invoke(new Action(() => { string link = lerTarefas["link_anexo"].ToString(); pic pic = new DiarioDeClasse.pic(link, panelVerif.Width - 31); //PictureBox pb = new PictureBox(); pic.ImageLocation = link; Image img = pic.Image; pic.Image = img; painel.Controls.Add(pic); })); } AddPor licaoAddPor = new AddPor(lerTarefas["adicionadopor"].ToString(), lerTarefas["cod"].ToString()); painel.Controls.Add(licaoAddPor); AddEm licaoAddEm = new AddEm(lerTarefas["adicionadoem"].ToString()); painel.Controls.Add(licaoAddEm); Panel grr = new Panel(); grr.Height = 40; grr.Width = 42; grr.Dock = DockStyle.Fill; Bunifu.Framework.UI.BunifuTileButton btnAceitar = new Bunifu.Framework.UI.BunifuTileButton(); btnAceitar.BackColor = Color.Transparent; btnAceitar.color = Color.Transparent; btnAceitar.colorActive = System.Drawing.Color.DodgerBlue; btnAceitar.Cursor = System.Windows.Forms.Cursors.Hand; btnAceitar.Image = Properties.Resources.icons8_Ok_64px; btnAceitar.ImagePosition = 0; btnAceitar.ImageZoom = 100; btnAceitar.LabelPosition = 0; btnAceitar.LabelText = ""; btnAceitar.Size = new System.Drawing.Size(28, 28); btnAceitar.TabIndex = 0; btnAceitar.Tag = lerTarefas["cod"].ToString(); btnAceitar.Click += (s, eee) => { Bunifu.Framework.UI.BunifuTileButton aa = s as Bunifu.Framework.UI.BunifuTileButton; MySqlConnection CONEXAO = new MySqlConnection(Vars.Cfg); MySqlCommand aceitar = new MySqlCommand("UPDATE licoes SET avaliado = 1 WHERE cod = @Cod;", CONEXAO); aceitar.Parameters.AddWithValue("@Cod", aa.Tag.ToString()); CONEXAO.Open(); aceitar.ExecuteNonQuery(); CONEXAO.Close(); Invoke(new Action(() => { panelVerif.Controls.Remove(painel); panelVerif.Controls.Remove(sep); })); }; btnAceitar.Anchor = AnchorStyles.Left; grr.Controls.Add(btnAceitar); Bunifu.Framework.UI.BunifuTileButton btnNegar = new Bunifu.Framework.UI.BunifuTileButton(); btnNegar.BackColor = Color.Transparent; btnNegar.color = Color.Transparent; btnNegar.colorActive = System.Drawing.Color.DodgerBlue; btnNegar.Cursor = System.Windows.Forms.Cursors.Hand; btnNegar.Image = Properties.Resources.icons8_Cancel_64px; btnNegar.ImagePosition = 0; btnNegar.ImageZoom = 100; btnNegar.LabelPosition = 0; btnNegar.LabelText = ""; btnNegar.Size = new System.Drawing.Size(28, 28); btnNegar.TabIndex = 0; btnNegar.Tag = lerTarefas["cod"].ToString(); btnNegar.Click += (s, eee) => { Bunifu.Framework.UI.BunifuTileButton aa = s as Bunifu.Framework.UI.BunifuTileButton; MySqlConnection CONEXAO = new MySqlConnection(Vars.Cfg); MySqlCommand negar = new MySqlCommand("UPDATE licoes SET avaliado = -1 WHERE cod = @Cod;", CONEXAO); negar.Parameters.AddWithValue("@Cod", aa.Tag.ToString()); CONEXAO.Open(); negar.ExecuteNonQuery(); CONEXAO.Close(); Invoke(new Action(() => { panelVerif.Controls.Remove(painel); panelVerif.Controls.Remove(sep); })); }; btnNegar.Anchor = AnchorStyles.Right; grr.Controls.Add(btnNegar); painel.Controls.Add(grr); sep.Width = panelVerif.Width - 30; Invoke(new Action(() => { panelVerif.Controls.Add(painel); panelVerif.Controls.Add(sep); })); } lerTarefas.Close(); CONEXAObw.Close(); } catch (Exception erro) { if (Properties.Settings.Default.permInt == 3 || Properties.Settings.Default.permInt == 9) { MessageBox.Show("Houve um erro no MySql:\r\n" + erro.Message); } } } else { WebClient kj = new WebClient(); kj.Encoding = System.Text.Encoding.UTF8; string resultado = kj.DownloadString("http://" + Vars.cfgPhp + "/principal/rep.php?sala=" + Properties.Settings.Default.sala).Trim(); string[] reps = resultado.Split(new string[] { "&&&" }, StringSplitOptions.RemoveEmptyEntries); foreach (string teste in reps) { string[] codes = teste.Split(new string[] { "@#@" }, StringSplitOptions.RemoveEmptyEntries); if (codes.Length > 3) { string discLicao = codes[0]; string codLicao = codes[1]; string txtLicao = codes[2]; string anexoLicao = ""; string addPorLicao = ""; string addEmLicao = ""; if (codes[3].Contains("imgur")) { anexoLicao = codes[3]; addPorLicao = codes[4]; addEmLicao = codes[5]; } else { addPorLicao = codes[3]; addEmLicao = codes[4]; } Bunifu.Framework.UI.BunifuSeparator sep = new Bunifu.Framework.UI.BunifuSeparator(); string licao = txtLicao; if (licao.Substring(licao.Length - 1, 1) != "." && licao.Substring(licao.Length - 1, 1) != "!" && licao.Substring(licao.Length - 1, 1) != "?" && licao.Substring(licao.Length - 1, 1) != "\r\n") { licao += "."; } TableLayoutPanel painel = new TableLayoutPanel(); painel.AutoSize = true; licaoTit licaoTit = new licaoTit(discLicao, panelVerif.Width - 31); painel.Controls.Add(licaoTit); licaoTxt licaoTxt = new licaoTxt(licao, panelVerif.Width - 31); painel.Controls.Add(licaoTxt); if (anexoLicao != "") { Invoke(new Action(() => { string link = anexoLicao; pic pic = new DiarioDeClasse.pic(link, panelVerif.Width - 31); //PictureBox pb = new PictureBox(); pic.ImageLocation = link; Image img = pic.Image; pic.Image = img; painel.Controls.Add(pic); })); } AddPor licaoAddPor = new AddPor(addPorLicao, codLicao); painel.Controls.Add(licaoAddPor); AddEm licaoAddEm = new AddEm(addEmLicao); painel.Controls.Add(licaoAddEm); Panel grr = new Panel(); grr.Height = 40; grr.Width = 42; grr.Dock = DockStyle.Fill; Bunifu.Framework.UI.BunifuTileButton btnAceitar = new Bunifu.Framework.UI.BunifuTileButton(); btnAceitar.BackColor = Color.Transparent; btnAceitar.color = Color.Transparent; btnAceitar.colorActive = System.Drawing.Color.DodgerBlue; btnAceitar.Cursor = System.Windows.Forms.Cursors.Hand; btnAceitar.Image = Properties.Resources.icons8_Ok_64px; btnAceitar.ImagePosition = 0; btnAceitar.ImageZoom = 100; btnAceitar.LabelPosition = 0; btnAceitar.LabelText = ""; btnAceitar.Size = new System.Drawing.Size(28, 28); btnAceitar.TabIndex = 0; btnAceitar.Tag = codLicao; btnAceitar.Click += (s, eee) => { Bunifu.Framework.UI.BunifuTileButton aa = s as Bunifu.Framework.UI.BunifuTileButton; WebClient kjAceitar = new WebClient(); kjAceitar.Encoding = System.Text.Encoding.UTF8; string resultadoAceitar = kjAceitar.DownloadString("http://" + Vars.cfgPhp + "/principal/aceitarLicao.php?cod=" + aa.Tag.ToString()).Trim(); if (resultadoAceitar == "1") { Invoke(new Action(() => { panelVerif.Controls.Remove(painel); panelVerif.Controls.Remove(sep); })); } }; btnAceitar.Anchor = AnchorStyles.Left; grr.Controls.Add(btnAceitar); Bunifu.Framework.UI.BunifuTileButton btnNegar = new Bunifu.Framework.UI.BunifuTileButton(); btnNegar.BackColor = Color.Transparent; btnNegar.color = Color.Transparent; btnNegar.colorActive = System.Drawing.Color.DodgerBlue; btnNegar.Cursor = System.Windows.Forms.Cursors.Hand; btnNegar.Image = Properties.Resources.icons8_Cancel_64px; btnNegar.ImagePosition = 0; btnNegar.ImageZoom = 100; btnNegar.LabelPosition = 0; btnNegar.LabelText = ""; btnNegar.Size = new System.Drawing.Size(28, 28); btnNegar.TabIndex = 0; btnNegar.Tag = codLicao; btnNegar.Click += (s, eee) => { Bunifu.Framework.UI.BunifuTileButton aa = s as Bunifu.Framework.UI.BunifuTileButton; WebClient kjNegar = new WebClient(); kjNegar.Encoding = System.Text.Encoding.UTF8; string resultadoNegar = kjNegar.DownloadString("http://" + Vars.cfgPhp + "/principal/negarLicao.php?cod=" + aa.Tag.ToString()).Trim(); if (resultadoNegar == "1") { Invoke(new Action(() => { panelVerif.Controls.Remove(painel); panelVerif.Controls.Remove(sep); })); } }; btnNegar.Anchor = AnchorStyles.Right; grr.Controls.Add(btnNegar); painel.Controls.Add(grr); sep.Width = panelVerif.Width - 30; Invoke(new Action(() => { panelVerif.Controls.Add(painel); panelVerif.Controls.Add(sep); })); } } } Vars.trabRep = false; }
private void InitializeComponent() { this.components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmAbout)); this.elipseBorder = new Bunifu.Framework.UI.BunifuElipse(this.components); this.gradientpanelUpperBar = new Bunifu.Framework.UI.BunifuGradientPanel(); this.buttonClose = new Bunifu.Framework.UI.BunifuImageButton(); this.dragcontrolUpperPanel = new Bunifu.Framework.UI.BunifuDragControl(this.components); this.panelInfor = new System.Windows.Forms.Panel(); this.panelImage = new System.Windows.Forms.Panel(); this.pictureboxImage = new System.Windows.Forms.PictureBox(); this.labelAuthor = new Bunifu.Framework.UI.BunifuCustomLabel(); this.labelContact = new Bunifu.Framework.UI.BunifuCustomLabel(); this.labelDescription = new Bunifu.Framework.UI.BunifuCustomLabel(); this.textboxAuthor = new WindowsFormsControlLibrary1.BunifuCustomTextbox(); this.bunifuCustomTextbox2 = new WindowsFormsControlLibrary1.BunifuCustomTextbox(); this.textboxDescription = new WindowsFormsControlLibrary1.BunifuCustomTextbox(); this.separator2 = new Bunifu.Framework.UI.BunifuSeparator(); this.separator1 = new Bunifu.Framework.UI.BunifuSeparator(); this.gradientpanelUpperBar.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.buttonClose)).BeginInit(); this.panelInfor.SuspendLayout(); this.panelImage.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.pictureboxImage)).BeginInit(); this.SuspendLayout(); // // elipseBorder // this.elipseBorder.ElipseRadius = 3; this.elipseBorder.TargetControl = this.gradientpanelUpperBar; // // gradientpanelUpperBar // this.gradientpanelUpperBar.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("gradientpanelUpperBar.BackgroundImage"))); this.gradientpanelUpperBar.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; this.gradientpanelUpperBar.Controls.Add(this.buttonClose); this.gradientpanelUpperBar.Dock = System.Windows.Forms.DockStyle.Top; this.gradientpanelUpperBar.GradientBottomLeft = System.Drawing.Color.DeepSkyBlue; this.gradientpanelUpperBar.GradientBottomRight = System.Drawing.Color.LightSeaGreen; this.gradientpanelUpperBar.GradientTopLeft = System.Drawing.Color.DeepSkyBlue; this.gradientpanelUpperBar.GradientTopRight = System.Drawing.Color.LightSeaGreen; this.gradientpanelUpperBar.Location = new System.Drawing.Point(0, 0); this.gradientpanelUpperBar.Name = "gradientpanelUpperBar"; this.gradientpanelUpperBar.Quality = 10; this.gradientpanelUpperBar.Size = new System.Drawing.Size(384, 32); this.gradientpanelUpperBar.TabIndex = 1; // // buttonClose // this.buttonClose.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.buttonClose.BackColor = System.Drawing.Color.Transparent; this.buttonClose.Image = global::UIDesign.Properties.Resources.button_close_background; this.buttonClose.ImageActive = null; this.buttonClose.Location = new System.Drawing.Point(352, 0); this.buttonClose.Name = "buttonClose"; this.buttonClose.Size = new System.Drawing.Size(32, 32); this.buttonClose.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; this.buttonClose.TabIndex = 0; this.buttonClose.TabStop = false; this.buttonClose.Zoom = 0; this.buttonClose.Click += new System.EventHandler(this.buttonClose_Click); this.buttonClose.MouseLeave += new System.EventHandler(this.buttonClose_MouseLeave); this.buttonClose.MouseMove += new System.Windows.Forms.MouseEventHandler(this.buttonClose_MouseMove); // // dragcontrolUpperPanel // this.dragcontrolUpperPanel.Fixed = true; this.dragcontrolUpperPanel.Horizontal = true; this.dragcontrolUpperPanel.TargetControl = this.gradientpanelUpperBar; this.dragcontrolUpperPanel.Vertical = true; // // panelInfor // this.panelInfor.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.panelInfor.BackColor = System.Drawing.Color.White; this.panelInfor.Controls.Add(this.separator1); this.panelInfor.Controls.Add(this.separator2); this.panelInfor.Controls.Add(this.textboxDescription); this.panelInfor.Controls.Add(this.bunifuCustomTextbox2); this.panelInfor.Controls.Add(this.textboxAuthor); this.panelInfor.Controls.Add(this.labelDescription); this.panelInfor.Controls.Add(this.labelContact); this.panelInfor.Controls.Add(this.labelAuthor); this.panelInfor.Location = new System.Drawing.Point(144, 31); this.panelInfor.Name = "panelInfor"; this.panelInfor.Size = new System.Drawing.Size(239, 225); this.panelInfor.TabIndex = 5; // // panelImage // this.panelImage.BackColor = System.Drawing.Color.Transparent; this.panelImage.Controls.Add(this.pictureboxImage); this.panelImage.Location = new System.Drawing.Point(0, 32); this.panelImage.Name = "panelImage"; this.panelImage.Size = new System.Drawing.Size(142, 224); this.panelImage.TabIndex = 6; // // pictureboxImage // this.pictureboxImage.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.pictureboxImage.Image = global::UIDesign.Properties.Resources.form_about_background; this.pictureboxImage.Location = new System.Drawing.Point(1, 12); this.pictureboxImage.Name = "pictureboxImage"; this.pictureboxImage.Size = new System.Drawing.Size(133, 212); this.pictureboxImage.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; this.pictureboxImage.TabIndex = 0; this.pictureboxImage.TabStop = false; // // labelAuthor // this.labelAuthor.Anchor = System.Windows.Forms.AnchorStyles.Left; this.labelAuthor.AutoSize = true; this.labelAuthor.ForeColor = System.Drawing.Color.Red; this.labelAuthor.Location = new System.Drawing.Point(11, 25); this.labelAuthor.Name = "labelAuthor"; this.labelAuthor.Size = new System.Drawing.Size(43, 14); this.labelAuthor.TabIndex = 0; this.labelAuthor.Text = "Author"; // // labelContact // this.labelContact.Anchor = System.Windows.Forms.AnchorStyles.Left; this.labelContact.AutoSize = true; this.labelContact.ForeColor = System.Drawing.Color.Red; this.labelContact.Location = new System.Drawing.Point(11, 59); this.labelContact.Name = "labelContact"; this.labelContact.Size = new System.Drawing.Size(47, 14); this.labelContact.TabIndex = 1; this.labelContact.Text = "Contact"; // // labelDescription // this.labelDescription.Anchor = System.Windows.Forms.AnchorStyles.Left; this.labelDescription.AutoSize = true; this.labelDescription.ForeColor = System.Drawing.Color.Red; this.labelDescription.Location = new System.Drawing.Point(11, 102); this.labelDescription.Name = "labelDescription"; this.labelDescription.Size = new System.Drawing.Size(69, 14); this.labelDescription.TabIndex = 2; this.labelDescription.Text = "Description"; // // textboxAuthor // this.textboxAuthor.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right))); this.textboxAuthor.BackColor = System.Drawing.Color.White; this.textboxAuthor.BorderColor = System.Drawing.Color.Transparent; this.textboxAuthor.BorderStyle = System.Windows.Forms.BorderStyle.None; this.textboxAuthor.Font = new System.Drawing.Font("Calibri", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.textboxAuthor.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(37)))), ((int)(((byte)(84)))), ((int)(((byte)(90))))); this.textboxAuthor.Location = new System.Drawing.Point(83, 24); this.textboxAuthor.Name = "textboxAuthor"; this.textboxAuthor.ReadOnly = true; this.textboxAuthor.Size = new System.Drawing.Size(145, 16); this.textboxAuthor.TabIndex = 3; this.textboxAuthor.TabStop = false; this.textboxAuthor.Text = "Trần Văn Sơn"; // // bunifuCustomTextbox2 // this.bunifuCustomTextbox2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right))); this.bunifuCustomTextbox2.BackColor = System.Drawing.Color.White; this.bunifuCustomTextbox2.BorderColor = System.Drawing.Color.Transparent; this.bunifuCustomTextbox2.BorderStyle = System.Windows.Forms.BorderStyle.None; this.bunifuCustomTextbox2.Font = new System.Drawing.Font("Calibri", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.bunifuCustomTextbox2.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(37)))), ((int)(((byte)(84)))), ((int)(((byte)(90))))); this.bunifuCustomTextbox2.Location = new System.Drawing.Point(83, 54); this.bunifuCustomTextbox2.Multiline = true; this.bunifuCustomTextbox2.Name = "bunifuCustomTextbox2"; this.bunifuCustomTextbox2.ReadOnly = true; this.bunifuCustomTextbox2.Size = new System.Drawing.Size(145, 48); this.bunifuCustomTextbox2.TabIndex = 4; this.bunifuCustomTextbox2.TabStop = false; this.bunifuCustomTextbox2.Text = "[email protected]\r\nfb:transon1812\r\nskype:kingson1812"; // // textboxDescription // this.textboxDescription.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right))); this.textboxDescription.BackColor = System.Drawing.Color.White; this.textboxDescription.BorderColor = System.Drawing.Color.Transparent; this.textboxDescription.BorderStyle = System.Windows.Forms.BorderStyle.None; this.textboxDescription.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(37)))), ((int)(((byte)(84)))), ((int)(((byte)(90))))); this.textboxDescription.Location = new System.Drawing.Point(14, 124); this.textboxDescription.Multiline = true; this.textboxDescription.Name = "textboxDescription"; this.textboxDescription.ReadOnly = true; this.textboxDescription.Size = new System.Drawing.Size(214, 89); this.textboxDescription.TabIndex = 5; this.textboxDescription.TabStop = false; this.textboxDescription.Text = "Media Play is a product of entertainment. Hope you loved " + "it.\r\n\r\n\r\n\r\n>_< Copyright © 2017 -_- Tran V. Son ._."; // // separator2 // this.separator2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right))); this.separator2.BackColor = System.Drawing.Color.Transparent; this.separator2.LineColor = System.Drawing.Color.BurlyWood; this.separator2.LineThickness = 1; this.separator2.Location = new System.Drawing.Point(1, 101); this.separator2.Name = "separator2"; this.separator2.Size = new System.Drawing.Size(236, 1); this.separator2.TabIndex = 1; this.separator2.TabStop = false; this.separator2.Transparency = 255; this.separator2.Vertical = false; // // separator1 // this.separator1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right))); this.separator1.BackColor = System.Drawing.Color.Transparent; this.separator1.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(222)))), ((int)(((byte)(184)))), ((int)(((byte)(135))))); this.separator1.LineThickness = 1; this.separator1.Location = new System.Drawing.Point(1, 44); this.separator1.Name = "separator1"; this.separator1.Size = new System.Drawing.Size(236, 1); this.separator1.TabIndex = 6; this.separator1.TabStop = false; this.separator1.Transparency = 255; this.separator1.Vertical = false; // // frmAbout // this.BackColor = System.Drawing.Color.Magenta; this.ClientSize = new System.Drawing.Size(384, 256); this.Controls.Add(this.panelImage); this.Controls.Add(this.panelInfor); this.Controls.Add(this.gradientpanelUpperBar); this.Font = new System.Drawing.Font("Calibri", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; this.MaximumSize = new System.Drawing.Size(384, 256); this.Name = "frmAbout"; this.ShowIcon = false; this.ShowInTaskbar = false; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.TransparencyKey = System.Drawing.Color.Magenta; this.gradientpanelUpperBar.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.buttonClose)).EndInit(); this.panelInfor.ResumeLayout(false); this.panelInfor.PerformLayout(); this.panelImage.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.pictureboxImage)).EndInit(); this.ResumeLayout(false); }
private void InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Login)); this.label1 = new System.Windows.Forms.Label(); this.panel1 = new System.Windows.Forms.Panel(); this.bunifuCustomLabel5 = new Bunifu.Framework.UI.BunifuCustomLabel(); this.bunifuCustomLabel4 = new Bunifu.Framework.UI.BunifuCustomLabel(); this.pictureBox1 = new System.Windows.Forms.PictureBox(); this.bunifuCustomLabel2 = new Bunifu.Framework.UI.BunifuCustomLabel(); this.bunifuSeparator1 = new Bunifu.Framework.UI.BunifuSeparator(); this.bunifuCheckbox1 = new Bunifu.Framework.UI.BunifuCheckbox(); this.bunifuCustomLabel1 = new Bunifu.Framework.UI.BunifuCustomLabel(); this.panel4 = new System.Windows.Forms.Panel(); this.panel3 = new System.Windows.Forms.Panel(); this.button1 = new Bunifu.Framework.UI.BunifuThinButton2(); this.textBox1 = new Bunifu.Framework.UI.BunifuMaterialTextbox(); this.textBox2 = new Bunifu.Framework.UI.BunifuMaterialTextbox(); this.bunifuCustomLabel6 = new Bunifu.Framework.UI.BunifuCustomLabel(); this.panel1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit(); this.SuspendLayout(); // // label1 // this.label1.AutoSize = true; this.label1.BackColor = System.Drawing.Color.White; this.label1.Font = new System.Drawing.Font("Century Gothic", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label1.ForeColor = System.Drawing.Color.Red; this.label1.Location = new System.Drawing.Point(486, 244); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(20, 16); this.label1.TabIndex = 38; this.label1.Text = " "; // // panel1 // this.panel1.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("panel1.BackgroundImage"))); this.panel1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; this.panel1.Controls.Add(this.bunifuCustomLabel5); this.panel1.Controls.Add(this.bunifuCustomLabel4); this.panel1.Controls.Add(this.pictureBox1); this.panel1.Dock = System.Windows.Forms.DockStyle.Left; this.panel1.Location = new System.Drawing.Point(0, 0); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(400, 500); this.panel1.TabIndex = 46; // // bunifuCustomLabel5 // this.bunifuCustomLabel5.AutoSize = true; this.bunifuCustomLabel5.BackColor = System.Drawing.Color.Transparent; this.bunifuCustomLabel5.Font = new System.Drawing.Font("Segoe UI Semilight", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.bunifuCustomLabel5.ForeColor = System.Drawing.Color.Black; this.bunifuCustomLabel5.Location = new System.Drawing.Point(60, 350); this.bunifuCustomLabel5.Name = "bunifuCustomLabel5"; this.bunifuCustomLabel5.Size = new System.Drawing.Size(294, 28); this.bunifuCustomLabel5.TabIndex = 46; this.bunifuCustomLabel5.Text = "With Billing and Collection System"; // // bunifuCustomLabel4 // this.bunifuCustomLabel4.AutoSize = true; this.bunifuCustomLabel4.BackColor = System.Drawing.Color.Transparent; this.bunifuCustomLabel4.Font = new System.Drawing.Font("Segoe UI Semilight", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.bunifuCustomLabel4.ForeColor = System.Drawing.Color.Black; this.bunifuCustomLabel4.Location = new System.Drawing.Point(25, 306); this.bunifuCustomLabel4.Name = "bunifuCustomLabel4"; this.bunifuCustomLabel4.Size = new System.Drawing.Size(363, 28); this.bunifuCustomLabel4.TabIndex = 47; this.bunifuCustomLabel4.Text = "Service Monitoring and Product Inventory"; // // pictureBox1 // this.pictureBox1.BackColor = System.Drawing.Color.Transparent; this.pictureBox1.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox1.Image"))); this.pictureBox1.Location = new System.Drawing.Point(86, 24); this.pictureBox1.Name = "pictureBox1"; this.pictureBox1.Size = new System.Drawing.Size(219, 217); this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; this.pictureBox1.TabIndex = 45; this.pictureBox1.TabStop = false; // // bunifuCustomLabel2 // this.bunifuCustomLabel2.AutoSize = true; this.bunifuCustomLabel2.Font = new System.Drawing.Font("Segoe UI Semilight", 35F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.bunifuCustomLabel2.ForeColor = System.Drawing.Color.Black; this.bunifuCustomLabel2.Location = new System.Drawing.Point(406, 9); this.bunifuCustomLabel2.Name = "bunifuCustomLabel2"; this.bunifuCustomLabel2.Size = new System.Drawing.Size(140, 62); this.bunifuCustomLabel2.TabIndex = 47; this.bunifuCustomLabel2.Text = "Login"; // // bunifuSeparator1 // this.bunifuSeparator1.BackColor = System.Drawing.Color.Transparent; this.bunifuSeparator1.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(105)))), ((int)(((byte)(105)))), ((int)(((byte)(105))))); this.bunifuSeparator1.LineThickness = 1; this.bunifuSeparator1.Location = new System.Drawing.Point(401, 60); this.bunifuSeparator1.Name = "bunifuSeparator1"; this.bunifuSeparator1.Size = new System.Drawing.Size(405, 35); this.bunifuSeparator1.TabIndex = 48; this.bunifuSeparator1.Transparency = 255; this.bunifuSeparator1.Vertical = false; // // bunifuCheckbox1 // this.bunifuCheckbox1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(34)))), ((int)(((byte)(53)))), ((int)(((byte)(125))))); this.bunifuCheckbox1.ChechedOffColor = System.Drawing.Color.FromArgb(((int)(((byte)(132)))), ((int)(((byte)(135)))), ((int)(((byte)(140))))); this.bunifuCheckbox1.Checked = true; this.bunifuCheckbox1.CheckedOnColor = System.Drawing.Color.FromArgb(((int)(((byte)(34)))), ((int)(((byte)(53)))), ((int)(((byte)(125))))); this.bunifuCheckbox1.ForeColor = System.Drawing.Color.White; this.bunifuCheckbox1.Location = new System.Drawing.Point(459, 330); this.bunifuCheckbox1.Name = "bunifuCheckbox1"; this.bunifuCheckbox1.Size = new System.Drawing.Size(20, 20); this.bunifuCheckbox1.TabIndex = 51; // // bunifuCustomLabel1 // this.bunifuCustomLabel1.AutoSize = true; this.bunifuCustomLabel1.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.bunifuCustomLabel1.ForeColor = System.Drawing.Color.Black; this.bunifuCustomLabel1.Location = new System.Drawing.Point(485, 329); this.bunifuCustomLabel1.Name = "bunifuCustomLabel1"; this.bunifuCustomLabel1.Size = new System.Drawing.Size(112, 21); this.bunifuCustomLabel1.TabIndex = 52; this.bunifuCustomLabel1.Text = "Remember me"; // // panel4 // this.panel4.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("panel4.BackgroundImage"))); this.panel4.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; this.panel4.Location = new System.Drawing.Point(450, 215); this.panel4.Name = "panel4"; this.panel4.Size = new System.Drawing.Size(29, 25); this.panel4.TabIndex = 49; // // panel3 // this.panel3.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("panel3.BackgroundImage"))); this.panel3.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; this.panel3.Location = new System.Drawing.Point(447, 140); this.panel3.Name = "panel3"; this.panel3.Size = new System.Drawing.Size(32, 32); this.panel3.TabIndex = 50; // // button1 // this.button1.ActiveBorderThickness = 1; this.button1.ActiveCornerRadius = 20; this.button1.ActiveFillColor = System.Drawing.Color.FromArgb(((int)(((byte)(34)))), ((int)(((byte)(53)))), ((int)(((byte)(125))))); this.button1.ActiveForecolor = System.Drawing.Color.White; this.button1.ActiveLineColor = System.Drawing.Color.FromArgb(((int)(((byte)(34)))), ((int)(((byte)(53)))), ((int)(((byte)(125))))); this.button1.BackColor = System.Drawing.Color.White; this.button1.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("button1.BackgroundImage"))); this.button1.ButtonText = "Sign in"; this.button1.Cursor = System.Windows.Forms.Cursors.Hand; this.button1.Font = new System.Drawing.Font("Segoe UI Semibold", 14F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.button1.ForeColor = System.Drawing.Color.SeaGreen; this.button1.IdleBorderThickness = 1; this.button1.IdleCornerRadius = 10; this.button1.IdleFillColor = System.Drawing.Color.White; this.button1.IdleForecolor = System.Drawing.Color.FromArgb(((int)(((byte)(34)))), ((int)(((byte)(53)))), ((int)(((byte)(125))))); this.button1.IdleLineColor = System.Drawing.Color.FromArgb(((int)(((byte)(34)))), ((int)(((byte)(53)))), ((int)(((byte)(125))))); this.button1.Location = new System.Drawing.Point(617, 420); this.button1.Margin = new System.Windows.Forms.Padding(5); this.button1.Name = "button1"; this.button1.Size = new System.Drawing.Size(155, 52); this.button1.TabIndex = 53; this.button1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.button1.Click += new System.EventHandler(this.button1_Click_1); // // textBox1 // this.textBox1.BackColor = System.Drawing.Color.White; this.textBox1.Cursor = System.Windows.Forms.Cursors.IBeam; this.textBox1.Font = new System.Drawing.Font("Century Gothic", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.textBox1.ForeColor = System.Drawing.SystemColors.ActiveCaptionText; this.textBox1.HintForeColor = System.Drawing.Color.Empty; this.textBox1.HintText = ""; this.textBox1.isPassword = false; this.textBox1.LineFocusedColor = System.Drawing.Color.Lime; this.textBox1.LineIdleColor = System.Drawing.Color.Blue; this.textBox1.LineMouseHoverColor = System.Drawing.Color.Blue; this.textBox1.LineThickness = 3; this.textBox1.Location = new System.Drawing.Point(479, 139); this.textBox1.Margin = new System.Windows.Forms.Padding(4); this.textBox1.Name = "textBox1"; this.textBox1.Size = new System.Drawing.Size(270, 33); this.textBox1.TabIndex = 54; this.textBox1.Text = "Username"; this.textBox1.TextAlign = System.Windows.Forms.HorizontalAlignment.Left; this.textBox1.Enter += new System.EventHandler(this.textBox1_Enter); this.textBox1.KeyDown += new System.Windows.Forms.KeyEventHandler(this.textBox1_KeyDown); // // textBox2 // this.textBox2.BackColor = System.Drawing.Color.White; this.textBox2.Cursor = System.Windows.Forms.Cursors.IBeam; this.textBox2.Font = new System.Drawing.Font("Century Gothic", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.textBox2.ForeColor = System.Drawing.SystemColors.ActiveCaptionText; this.textBox2.HintForeColor = System.Drawing.Color.Empty; this.textBox2.HintText = ""; this.textBox2.isPassword = false; this.textBox2.LineFocusedColor = System.Drawing.Color.Lime; this.textBox2.LineIdleColor = System.Drawing.Color.Blue; this.textBox2.LineMouseHoverColor = System.Drawing.Color.Blue; this.textBox2.LineThickness = 3; this.textBox2.Location = new System.Drawing.Point(479, 207); this.textBox2.Margin = new System.Windows.Forms.Padding(4); this.textBox2.Name = "textBox2"; this.textBox2.Size = new System.Drawing.Size(270, 33); this.textBox2.TabIndex = 55; this.textBox2.Text = "Password"; this.textBox2.TextAlign = System.Windows.Forms.HorizontalAlignment.Left; this.textBox2.Enter += new System.EventHandler(this.textBox2_Enter); this.textBox2.KeyDown += new System.Windows.Forms.KeyEventHandler(this.textBox2_KeyDown); this.textBox2.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.textBox2_KeyPress); // // bunifuCustomLabel6 // this.bunifuCustomLabel6.AutoSize = true; this.bunifuCustomLabel6.Cursor = System.Windows.Forms.Cursors.Hand; this.bunifuCustomLabel6.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.bunifuCustomLabel6.Location = new System.Drawing.Point(778, 2); this.bunifuCustomLabel6.Name = "bunifuCustomLabel6"; this.bunifuCustomLabel6.Size = new System.Drawing.Size(20, 21); this.bunifuCustomLabel6.TabIndex = 56; this.bunifuCustomLabel6.Text = "X"; this.bunifuCustomLabel6.Click += new System.EventHandler(this.bunifuCustomLabel6_Click); // // Login // this.BackColor = System.Drawing.Color.White; this.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; this.ClientSize = new System.Drawing.Size(800, 500); this.Controls.Add(this.bunifuCustomLabel6); this.Controls.Add(this.textBox1); this.Controls.Add(this.textBox2); this.Controls.Add(this.button1); this.Controls.Add(this.bunifuCheckbox1); this.Controls.Add(this.bunifuCustomLabel1); this.Controls.Add(this.panel4); this.Controls.Add(this.panel3); this.Controls.Add(this.bunifuCustomLabel2); this.Controls.Add(this.bunifuSeparator1); this.Controls.Add(this.panel1); this.Controls.Add(this.label1); this.DoubleBuffered = true; this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; this.Name = "Login"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Load += new System.EventHandler(this.Login_Load); this.Enter += new System.EventHandler(this.Login_Enter); this.panel1.ResumeLayout(false); this.panel1.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit(); this.ResumeLayout(false); this.PerformLayout(); }
private void licao_DoWork(object sender, DoWorkEventArgs e) { Invoke(new Action(() => { flowLayoutPanel1.Controls.Clear(); })); Bunifu.Framework.UI.BunifuSeparator sep1 = new Bunifu.Framework.UI.BunifuSeparator(); sep1.Width = flowLayoutPanel1.Width - 30; if (!Properties.Settings.Default.phpLocal) { MySqlConnection CONEXAO = new MySqlConnection(Vars.Cfg); MySqlCommand checarLicoes = new MySqlCommand("SELECT * FROM licoes INNER JOIN profdisc ON disc = cod_disc INNER JOIN profs ON cod_prof = profid_disc INNER JOIN disc ON discid_disc = cod_discs INNER JOIN info_salas ON sala = cod_sala WHERE mesentrega = @Mes AND diaentrega = @Dia AND avaliado > 0 AND nome_prof = @Nome ORDER BY sala ASC;", CONEXAO); try { CONEXAO.Open(); checarLicoes.Parameters.AddWithValue("@Mes", Vars.mesSelec); checarLicoes.Parameters.AddWithValue("@Dia", Vars.diaSelec); checarLicoes.Parameters.AddWithValue("@Nome", Properties.Settings.Default.nome); int cod = Convert.ToInt32(checarLicoes.ExecuteScalar()); if (cod > 0) { Invoke(new Action(() => { flowLayoutPanel1.Controls.Add(sep1); })); } MySqlDataReader lerLicoes = checarLicoes.ExecuteReader(); while (lerLicoes.Read()) { string textolicao = lerLicoes["licao"].ToString(); if (textolicao.Substring(textolicao.Length - 1, 1) != "." && textolicao.Substring(textolicao.Length - 1, 1) != "!" && textolicao.Substring(textolicao.Length - 1, 1) != "?" && textolicao.Substring(textolicao.Length - 1, 1) != "\r\n") { textolicao += "."; } TableLayoutPanel painel = new TableLayoutPanel(); painel.AutoSize = true; licaoTit licaoTit = new licaoTit(lerLicoes["nome_disc"].ToString() + " para " + lerLicoes["nome_sala"].ToString(), flowLayoutPanel1.Width - 31); painel.Controls.Add(licaoTit); licaoTxt licaoTxt = new licaoTxt(textolicao, flowLayoutPanel1.Width - 3); painel.Controls.Add(licaoTxt); if (lerLicoes["link_anexo"].ToString() != "") { string link = lerLicoes["link_anexo"].ToString(); pic pic = new DiarioDeClasse.pic(link, flowLayoutPanel1.Width - 31); //PictureBox pb = new PictureBox(); pic.ImageLocation = link; Image img = pic.Image; pic.Image = img; painel.Controls.Add(pic); } AddPor licaoAddPor = new AddPor(lerLicoes["adicionadopor"].ToString(), lerLicoes["cod"].ToString()); painel.Controls.Add(licaoAddPor); AddEm licaoAddEm = new AddEm(lerLicoes["adicionadoem"].ToString()); painel.Controls.Add(licaoAddEm); if (Properties.Settings.Default.permInt == 1 || Properties.Settings.Default.permInt == 2 || Properties.Settings.Default.permInt == 3 || Properties.Settings.Default.permInt == 9) { Bunifu.Framework.UI.BunifuTileButton btnExcluir = new Bunifu.Framework.UI.BunifuTileButton(); btnExcluir.BackColor = Color.Transparent; btnExcluir.color = Color.Transparent; btnExcluir.colorActive = System.Drawing.Color.DodgerBlue; btnExcluir.Cursor = System.Windows.Forms.Cursors.Hand; btnExcluir.Image = Properties.Resources.icons8_Trash_Can_64px; btnExcluir.ImagePosition = 0; btnExcluir.ImageZoom = 100; btnExcluir.LabelPosition = 0; btnExcluir.LabelText = ""; btnExcluir.Location = new System.Drawing.Point(349, 254); btnExcluir.Margin = new System.Windows.Forms.Padding(6); btnExcluir.Size = new System.Drawing.Size(40, 40); btnExcluir.TabIndex = 0; btnExcluir.Tag = lerLicoes["cod"].ToString(); btnExcluir.Click += new System.EventHandler(this.btnExcluir_Click); btnExcluir.Anchor = AnchorStyles.Right; painel.Controls.Add(btnExcluir); } Bunifu.Framework.UI.BunifuSeparator sep = new Bunifu.Framework.UI.BunifuSeparator(); sep.Width = flowLayoutPanel1.Width - 30; Invoke(new Action(() => { flowLayoutPanel1.Controls.Add(painel); flowLayoutPanel1.Controls.Add(sep); })); } lerLicoes.Close(); } catch (Exception erro) { if (Properties.Settings.Default.permInt == 3 || Properties.Settings.Default.permInt == 9) { if (erro.ToString().ToLower().Contains("system.invalidoperationexception")) { } else { MessageBox.Show("Houve um erro no MySql:\r\n" + erro.ToString()); } } } finally { CONEXAO.Close(); } } else { WebClient kj = new WebClient(); kj.Encoding = System.Text.Encoding.UTF8; string resultado = kj.DownloadString("http://" + Vars.cfgPhp + "/dia/licaoProf.php?nome=" + Properties.Settings.Default.nome + "&dia=" + Vars.diaSelec + "&mes=" + Vars.mesSelec).Trim(); string[] reps = resultado.Split(new string[] { "&&&" }, StringSplitOptions.RemoveEmptyEntries); if (resultado != "0") { Invoke(new Action(() => { flowLayoutPanel1.Controls.Add(sep1); })); } foreach (string teste in reps) { string[] codes = teste.Split(new string[] { "@#@" }, StringSplitOptions.RemoveEmptyEntries); if (codes.Length > 3) { string discLicao = codes[0]; string codLicao = codes[1]; string txtLicao = codes[2]; string anexoLicao = ""; string addPorLicao = ""; string addEmLicao = ""; string nomeSala = ""; if (codes[3].Contains("imgur")) { anexoLicao = codes[3]; addPorLicao = codes[4]; addEmLicao = codes[5]; nomeSala = codes[6]; } else { addPorLicao = codes[3]; addEmLicao = codes[4]; nomeSala = codes[5]; } string textolicao = txtLicao; if (textolicao.Substring(textolicao.Length - 1, 1) != "." && textolicao.Substring(textolicao.Length - 1, 1) != "!" && textolicao.Substring(textolicao.Length - 1, 1) != "?" && textolicao.Substring(textolicao.Length - 1, 1) != "\r\n") { textolicao += "."; } TableLayoutPanel painel = new TableLayoutPanel(); painel.AutoSize = true; licaoTit licaoTit = new licaoTit(discLicao + " para " + nomeSala, flowLayoutPanel1.Width - 31); painel.Controls.Add(licaoTit); licaoTxt licaoTxt = new licaoTxt(textolicao, flowLayoutPanel1.Width - 3); painel.Controls.Add(licaoTxt); if (anexoLicao != "") { string link = anexoLicao; pic pic = new DiarioDeClasse.pic(link, flowLayoutPanel1.Width - 31); //PictureBox pb = new PictureBox(); pic.ImageLocation = link; Image img = pic.Image; pic.Image = img; painel.Controls.Add(pic); } AddPor licaoAddPor = new AddPor(addPorLicao, codLicao); painel.Controls.Add(licaoAddPor); AddEm licaoAddEm = new AddEm(addEmLicao); painel.Controls.Add(licaoAddEm); if (Properties.Settings.Default.permInt == 1 || Properties.Settings.Default.permInt == 2 || Properties.Settings.Default.permInt == 3 || Properties.Settings.Default.permInt == 9) { Bunifu.Framework.UI.BunifuTileButton btnExcluir = new Bunifu.Framework.UI.BunifuTileButton(); btnExcluir.BackColor = Color.Transparent; btnExcluir.color = Color.Transparent; btnExcluir.colorActive = System.Drawing.Color.DodgerBlue; btnExcluir.Cursor = System.Windows.Forms.Cursors.Hand; btnExcluir.Image = Properties.Resources.icons8_Trash_Can_64px; btnExcluir.ImagePosition = 0; btnExcluir.ImageZoom = 100; btnExcluir.LabelPosition = 0; btnExcluir.LabelText = ""; btnExcluir.Location = new System.Drawing.Point(349, 254); btnExcluir.Margin = new System.Windows.Forms.Padding(6); btnExcluir.Size = new System.Drawing.Size(40, 40); btnExcluir.TabIndex = 0; btnExcluir.Tag = codLicao; btnExcluir.Click += new System.EventHandler(this.btnExcluir_Click); btnExcluir.Anchor = AnchorStyles.Right; painel.Controls.Add(btnExcluir); } Bunifu.Framework.UI.BunifuSeparator sep = new Bunifu.Framework.UI.BunifuSeparator(); sep.Width = flowLayoutPanel1.Width - 30; Invoke(new Action(() => { flowLayoutPanel1.Controls.Add(painel); flowLayoutPanel1.Controls.Add(sep); })); } } } }
private void InitializeComponent() { var resources = new System.ComponentModel.ComponentResourceManager(typeof(FrmAddEditBagLogo)); var BorderEdges1 = new Bunifu.UI.WinForms.BunifuButton.BunifuButton.BorderEdges(); var StateProperties1 = new Bunifu.UI.WinForms.BunifuButton.BunifuButton.StateProperties(); var StateProperties2 = new Bunifu.UI.WinForms.BunifuButton.BunifuButton.StateProperties(); var StateProperties3 = new Bunifu.UI.WinForms.BunifuTextbox.BunifuTextBox.StateProperties(); var StateProperties4 = new Bunifu.UI.WinForms.BunifuTextbox.BunifuTextBox.StateProperties(); var StateProperties5 = new Bunifu.UI.WinForms.BunifuTextbox.BunifuTextBox.StateProperties(); var StateProperties6 = new Bunifu.UI.WinForms.BunifuTextbox.BunifuTextBox.StateProperties(); var BorderEdges2 = new Bunifu.UI.WinForms.BunifuButton.BunifuButton.BorderEdges(); var StateProperties7 = new Bunifu.UI.WinForms.BunifuButton.BunifuButton.StateProperties(); var StateProperties8 = new Bunifu.UI.WinForms.BunifuButton.BunifuButton.StateProperties(); _closeFlatButton = new Bunifu.Framework.UI.BunifuFlatButton(); _closeFlatButton.Click += new EventHandler(closeFlatButton_Click); Label17 = new Label(); Label1 = new Label(); BunifuSeparator4 = new Bunifu.Framework.UI.BunifuSeparator(); TableLayoutPanel4 = new TableLayoutPanel(); Label16 = new Label(); TableLayoutPanel5 = new TableLayoutPanel(); pbBagLogo = new PictureBox(); _btnUploadLogo = new Bunifu.UI.WinForms.BunifuButton.BunifuButton(); _btnUploadLogo.Click += new EventHandler(BunifuButton1_Click); Label22 = new Label(); TableLayoutPanel7 = new TableLayoutPanel(); nudBagYear = new NumericUpDown(); Label23 = new Label(); _cbNoBagYear = new Bunifu.UI.WinForms.BunifuCheckBox(); _cbNoBagYear.CheckedChanged += new EventHandler <Bunifu.UI.WinForms.BunifuCheckBox.CheckedChangedEventArgs>(cbNoBagYear_CheckedChanged); tbLogoDescription = new BunifuTextBox(); Label14 = new Label(); _btnSave = new Bunifu.UI.WinForms.BunifuButton.BunifuButton(); _btnSave.Click += new EventHandler(btnSave_Click); lblWarning = new Label(); TableLayoutPanel4.SuspendLayout(); TableLayoutPanel5.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)pbBagLogo).BeginInit(); TableLayoutPanel7.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)nudBagYear).BeginInit(); SuspendLayout(); // // closeFlatButton // _closeFlatButton.Active = false; _closeFlatButton.Activecolor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); _closeFlatButton.Anchor = AnchorStyles.Top | AnchorStyles.Right; _closeFlatButton.BackColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); _closeFlatButton.BackgroundImageLayout = ImageLayout.Stretch; _closeFlatButton.BorderRadius = 0; _closeFlatButton.ButtonText = "🗙"; _closeFlatButton.Cursor = Cursors.Hand; _closeFlatButton.DisabledColor = Color.Gray; _closeFlatButton.Iconcolor = Color.Transparent; _closeFlatButton.Iconimage = null; _closeFlatButton.Iconimage_right = null; _closeFlatButton.Iconimage_right_Selected = null; _closeFlatButton.Iconimage_Selected = null; _closeFlatButton.IconMarginLeft = 0; _closeFlatButton.IconMarginRight = 0; _closeFlatButton.IconRightVisible = true; _closeFlatButton.IconRightZoom = 0d; _closeFlatButton.IconVisible = true; _closeFlatButton.IconZoom = 90.0d; _closeFlatButton.IsTab = false; _closeFlatButton.Location = new Point(605, 0); _closeFlatButton.Margin = new Padding(7); _closeFlatButton.Name = "_closeFlatButton"; _closeFlatButton.Normalcolor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); _closeFlatButton.OnHovercolor = Color.Gray; _closeFlatButton.OnHoverTextColor = Color.White; _closeFlatButton.selected = false; _closeFlatButton.Size = new Size(39, 41); _closeFlatButton.TabIndex = 173; _closeFlatButton.Text = "🗙"; _closeFlatButton.TextAlign = ContentAlignment.MiddleCenter; _closeFlatButton.Textcolor = Color.White; _closeFlatButton.TextFont = new Font("Microsoft Sans Serif", 18.32727f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); // // Label17 // Label17.BackColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(64))); Label17.Dock = DockStyle.Top; Label17.Font = new Font("Segoe UI", 11.78182f, FontStyle.Bold, GraphicsUnit.Point, Conversions.ToByte(0)); Label17.ForeColor = Color.White; Label17.Location = new Point(0, 0); Label17.Margin = new Padding(4, 0, 4, 0); Label17.Name = "Label17"; Label17.Size = new Size(643, 41); Label17.TabIndex = 172; Label17.TextAlign = ContentAlignment.MiddleCenter; // // Label1 // Label1.AutoSize = true; Label1.Font = new Font("Segoe UI", 12.0f, FontStyle.Bold, GraphicsUnit.Point, Conversions.ToByte(0)); Label1.ForeColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(192)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(0))); Label1.Location = new Point(26, 51); Label1.Name = "Label1"; Label1.Size = new Size(209, 21); Label1.TabIndex = 176; Label1.Text = "Bag Logo/Special Printing"; // // BunifuSeparator4 // BunifuSeparator4.BackColor = Color.Transparent; BunifuSeparator4.ForeColor = Color.Gray; BunifuSeparator4.LineColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(105)), Conversions.ToInteger(Conversions.ToByte(105)), Conversions.ToInteger(Conversions.ToByte(105))); BunifuSeparator4.LineThickness = 1; BunifuSeparator4.Location = new Point(24, 73); BunifuSeparator4.Margin = new Padding(5); BunifuSeparator4.Name = "BunifuSeparator4"; BunifuSeparator4.Size = new Size(533, 19); BunifuSeparator4.TabIndex = 175; BunifuSeparator4.Transparency = 255; BunifuSeparator4.Vertical = false; // // TableLayoutPanel4 // TableLayoutPanel4.ColumnCount = 2; TableLayoutPanel4.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 30.0f)); TableLayoutPanel4.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 70.0f)); TableLayoutPanel4.Controls.Add(Label16, 0, 3); TableLayoutPanel4.Controls.Add(TableLayoutPanel5, 1, 3); TableLayoutPanel4.Controls.Add(Label22, 0, 2); TableLayoutPanel4.Controls.Add(TableLayoutPanel7, 1, 2); TableLayoutPanel4.Controls.Add(tbLogoDescription, 1, 1); TableLayoutPanel4.Controls.Add(Label14, 0, 1); TableLayoutPanel4.Location = new Point(27, 110); TableLayoutPanel4.Name = "TableLayoutPanel4"; TableLayoutPanel4.RowCount = 4; TableLayoutPanel4.RowStyles.Add(new RowStyle(SizeType.Percent, 12.30769f)); TableLayoutPanel4.RowStyles.Add(new RowStyle(SizeType.Percent, 87.69231f)); TableLayoutPanel4.RowStyles.Add(new RowStyle(SizeType.Absolute, 37.0f)); TableLayoutPanel4.RowStyles.Add(new RowStyle(SizeType.Absolute, 213.0f)); TableLayoutPanel4.RowStyles.Add(new RowStyle(SizeType.Absolute, 22.0f)); TableLayoutPanel4.Size = new Size(533, 294); TableLayoutPanel4.TabIndex = 174; // // Label16 // Label16.Anchor = AnchorStyles.Top | AnchorStyles.Right; Label16.AutoSize = true; Label16.Location = new Point(71, 80); Label16.Name = "Label16"; Label16.Padding = new Padding(3); Label16.Size = new Size(85, 23); Label16.TabIndex = 6; Label16.Text = "Bag Image:"; // // TableLayoutPanel5 // TableLayoutPanel5.ColumnCount = 2; TableLayoutPanel5.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 59.29824f)); TableLayoutPanel5.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 40.70176f)); TableLayoutPanel5.Controls.Add(pbBagLogo, 0, 0); TableLayoutPanel5.Controls.Add(_btnUploadLogo, 1, 0); TableLayoutPanel5.Location = new Point(162, 83); TableLayoutPanel5.Name = "TableLayoutPanel5"; TableLayoutPanel5.RowCount = 1; TableLayoutPanel5.RowStyles.Add(new RowStyle(SizeType.Percent, 29.82456f)); TableLayoutPanel5.RowStyles.Add(new RowStyle(SizeType.Absolute, 208.0f)); TableLayoutPanel5.Size = new Size(333, 208); TableLayoutPanel5.TabIndex = 24; // // pbBagLogo // pbBagLogo.BorderStyle = BorderStyle.FixedSingle; pbBagLogo.Dock = DockStyle.Fill; pbBagLogo.Location = new Point(0, 0); pbBagLogo.Margin = new Padding(0); pbBagLogo.Name = "pbBagLogo"; pbBagLogo.Size = new Size(197, 208); pbBagLogo.SizeMode = PictureBoxSizeMode.Zoom; pbBagLogo.TabIndex = 24; pbBagLogo.TabStop = false; // // btnUploadLogo // _btnUploadLogo.AllowToggling = false; _btnUploadLogo.Anchor = AnchorStyles.Bottom | AnchorStyles.Left; _btnUploadLogo.AnimationSpeed = 200; _btnUploadLogo.AutoGenerateColors = false; _btnUploadLogo.BackColor = Color.Transparent; _btnUploadLogo.BackColor1 = Color.Teal; _btnUploadLogo.BackgroundImage = (Image)resources.GetObject("btnUploadLogo.BackgroundImage"); _btnUploadLogo.BorderStyle = Bunifu.UI.WinForms.BunifuButton.BunifuButton.BorderStyles.Solid; _btnUploadLogo.ButtonText = "Upload..."; _btnUploadLogo.ButtonTextMarginLeft = 0; _btnUploadLogo.ColorContrastOnClick = 45; _btnUploadLogo.ColorContrastOnHover = 45; _btnUploadLogo.Cursor = Cursors.Hand; BorderEdges1.BottomLeft = true; BorderEdges1.BottomRight = true; BorderEdges1.TopLeft = true; BorderEdges1.TopRight = true; _btnUploadLogo.CustomizableEdges = BorderEdges1; _btnUploadLogo.DialogResult = DialogResult.None; _btnUploadLogo.DisabledBorderColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(191)), Conversions.ToInteger(Conversions.ToByte(191)), Conversions.ToInteger(Conversions.ToByte(191))); _btnUploadLogo.DisabledFillColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(204)), Conversions.ToInteger(Conversions.ToByte(204)), Conversions.ToInteger(Conversions.ToByte(204))); _btnUploadLogo.DisabledForecolor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(168)), Conversions.ToInteger(Conversions.ToByte(160)), Conversions.ToInteger(Conversions.ToByte(168))); _btnUploadLogo.FocusState = Bunifu.UI.WinForms.BunifuButton.BunifuButton.ButtonStates.Pressed; _btnUploadLogo.Font = new Font("Segoe UI Semibold", 9.75f); _btnUploadLogo.ForeColor = Color.White; _btnUploadLogo.IconLeftCursor = Cursors.Hand; _btnUploadLogo.IconMarginLeft = 11; _btnUploadLogo.IconPadding = 10; _btnUploadLogo.IconRightCursor = Cursors.Hand; _btnUploadLogo.IdleBorderColor = Color.Teal; _btnUploadLogo.IdleBorderRadius = 3; _btnUploadLogo.IdleBorderThickness = 1; _btnUploadLogo.IdleFillColor = Color.Teal; _btnUploadLogo.IdleIconLeftImage = null; _btnUploadLogo.IdleIconRightImage = null; _btnUploadLogo.IndicateFocus = false; _btnUploadLogo.Location = new Point(200, 184); _btnUploadLogo.Name = "_btnUploadLogo"; StateProperties1.BorderColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(105)), Conversions.ToInteger(Conversions.ToByte(181)), Conversions.ToInteger(Conversions.ToByte(255))); StateProperties1.BorderRadius = 3; StateProperties1.BorderStyle = Bunifu.UI.WinForms.BunifuButton.BunifuButton.BorderStyles.Solid; StateProperties1.BorderThickness = 1; StateProperties1.FillColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(0)), Conversions.ToInteger(Conversions.ToByte(192)), Conversions.ToInteger(Conversions.ToByte(192))); StateProperties1.ForeColor = Color.White; StateProperties1.IconLeftImage = null; StateProperties1.IconRightImage = null; _btnUploadLogo.onHoverState = StateProperties1; StateProperties2.BorderColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(40)), Conversions.ToInteger(Conversions.ToByte(96)), Conversions.ToInteger(Conversions.ToByte(144))); StateProperties2.BorderRadius = 3; StateProperties2.BorderStyle = Bunifu.UI.WinForms.BunifuButton.BunifuButton.BorderStyles.Solid; StateProperties2.BorderThickness = 1; StateProperties2.FillColor = Color.Teal; StateProperties2.ForeColor = Color.White; StateProperties2.IconLeftImage = null; StateProperties2.IconRightImage = null; _btnUploadLogo.OnPressedState = StateProperties2; _btnUploadLogo.Size = new Size(72, 21); _btnUploadLogo.TabIndex = 25; _btnUploadLogo.TextAlign = ContentAlignment.MiddleCenter; _btnUploadLogo.TextMarginLeft = 0; _btnUploadLogo.UseDefaultRadiusAndThickness = true; // // Label22 // Label22.Anchor = AnchorStyles.Right; Label22.AutoSize = true; Label22.Location = new Point(53, 53); Label22.Name = "Label22"; Label22.Size = new Size(103, 17); Label22.TabIndex = 25; Label22.Text = "Bag/Logo Year"; // // TableLayoutPanel7 // TableLayoutPanel7.ColumnCount = 3; TableLayoutPanel7.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 82.87671f)); TableLayoutPanel7.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 17.12329f)); TableLayoutPanel7.ColumnStyles.Add(new ColumnStyle(SizeType.Absolute, 191.0f)); TableLayoutPanel7.Controls.Add(nudBagYear, 0, 0); TableLayoutPanel7.Controls.Add(Label23, 2, 0); TableLayoutPanel7.Controls.Add(_cbNoBagYear, 1, 0); TableLayoutPanel7.Location = new Point(162, 46); TableLayoutPanel7.Name = "TableLayoutPanel7"; TableLayoutPanel7.RowCount = 1; TableLayoutPanel7.RowStyles.Add(new RowStyle(SizeType.Percent, 29.82456f)); TableLayoutPanel7.RowStyles.Add(new RowStyle(SizeType.Absolute, 31.0f)); TableLayoutPanel7.Size = new Size(333, 31); TableLayoutPanel7.TabIndex = 177; // // nudBagYear // nudBagYear.Font = new Font("Microsoft Sans Serif", 12.0f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); nudBagYear.Location = new Point(3, 3); nudBagYear.Maximum = new decimal(new int[] { 100000, 0, 0, 0 }); nudBagYear.Name = "nudBagYear"; nudBagYear.Size = new Size(109, 26); nudBagYear.TabIndex = 26; nudBagYear.TextAlign = HorizontalAlignment.Center; // // Label23 // Label23.Anchor = AnchorStyles.Left; Label23.AutoSize = true; Label23.Location = new Point(144, 7); Label23.Name = "Label23"; Label23.Size = new Size(31, 17); Label23.TabIndex = 177; Label23.Text = "N/A"; // // cbNoBagYear // _cbNoBagYear.AllowBindingControlAnimation = true; _cbNoBagYear.AllowBindingControlColorChanges = false; _cbNoBagYear.AllowBindingControlLocation = true; _cbNoBagYear.AllowCheckBoxAnimation = false; _cbNoBagYear.AllowCheckmarkAnimation = true; _cbNoBagYear.AllowOnHoverStates = true; _cbNoBagYear.Anchor = AnchorStyles.Right; _cbNoBagYear.AutoCheck = true; _cbNoBagYear.BackColor = Color.Transparent; _cbNoBagYear.BackgroundImage = (Image)resources.GetObject("cbNoBagYear.BackgroundImage"); _cbNoBagYear.BackgroundImageLayout = ImageLayout.Zoom; _cbNoBagYear.BindingControl = null; _cbNoBagYear.BindingControlPosition = Bunifu.UI.WinForms.BunifuCheckBox.BindingControlPositions.Right; _cbNoBagYear.Checked = false; _cbNoBagYear.CheckState = Bunifu.UI.WinForms.BunifuCheckBox.CheckStates.Unchecked; _cbNoBagYear.Cursor = Cursors.Hand; _cbNoBagYear.CustomCheckmarkImage = null; _cbNoBagYear.Location = new Point(120, 5); _cbNoBagYear.MinimumSize = new Size(20, 20); _cbNoBagYear.Name = "_cbNoBagYear"; _cbNoBagYear.OnCheck.BorderColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(192)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(0))); _cbNoBagYear.OnCheck.BorderRadius = 2; _cbNoBagYear.OnCheck.BorderThickness = 2; _cbNoBagYear.OnCheck.CheckBoxColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(192)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(0))); _cbNoBagYear.OnCheck.CheckmarkColor = Color.White; _cbNoBagYear.OnCheck.CheckmarkThickness = 2; _cbNoBagYear.OnDisable.BorderColor = Color.LightGray; _cbNoBagYear.OnDisable.BorderRadius = 2; _cbNoBagYear.OnDisable.BorderThickness = 2; _cbNoBagYear.OnDisable.CheckBoxColor = Color.Transparent; _cbNoBagYear.OnDisable.CheckmarkColor = Color.LightGray; _cbNoBagYear.OnDisable.CheckmarkThickness = 2; _cbNoBagYear.OnHoverChecked.BorderColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(255)), Conversions.ToInteger(Conversions.ToByte(128)), Conversions.ToInteger(Conversions.ToByte(0))); _cbNoBagYear.OnHoverChecked.BorderRadius = 2; _cbNoBagYear.OnHoverChecked.BorderThickness = 2; _cbNoBagYear.OnHoverChecked.CheckBoxColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(255)), Conversions.ToInteger(Conversions.ToByte(128)), Conversions.ToInteger(Conversions.ToByte(0))); _cbNoBagYear.OnHoverChecked.CheckmarkColor = Color.White; _cbNoBagYear.OnHoverChecked.CheckmarkThickness = 2; _cbNoBagYear.OnHoverUnchecked.BorderColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(255)), Conversions.ToInteger(Conversions.ToByte(128)), Conversions.ToInteger(Conversions.ToByte(0))); _cbNoBagYear.OnHoverUnchecked.BorderRadius = 2; _cbNoBagYear.OnHoverUnchecked.BorderThickness = 2; _cbNoBagYear.OnHoverUnchecked.CheckBoxColor = Color.Transparent; _cbNoBagYear.OnUncheck.BorderColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(192)), Conversions.ToInteger(Conversions.ToByte(64)), Conversions.ToInteger(Conversions.ToByte(0))); _cbNoBagYear.OnUncheck.BorderRadius = 2; _cbNoBagYear.OnUncheck.BorderThickness = 2; _cbNoBagYear.OnUncheck.CheckBoxColor = Color.Transparent; _cbNoBagYear.Size = new Size(20, 20); _cbNoBagYear.Style = Bunifu.UI.WinForms.BunifuCheckBox.CheckBoxStyles.Bunifu; _cbNoBagYear.TabIndex = 178; _cbNoBagYear.ThreeState = false; _cbNoBagYear.ToolTipText = null; // // tbLogoDescription // tbLogoDescription.AcceptsReturn = false; tbLogoDescription.AcceptsTab = false; tbLogoDescription.AnimationSpeed = 200; tbLogoDescription.AutoCompleteMode = AutoCompleteMode.None; tbLogoDescription.AutoCompleteSource = AutoCompleteSource.None; tbLogoDescription.BackColor = Color.Transparent; tbLogoDescription.BackgroundImage = (Image)resources.GetObject("tbLogoDescription.BackgroundImage"); tbLogoDescription.BorderColorActive = Color.DodgerBlue; tbLogoDescription.BorderColorDisabled = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(161)), Conversions.ToInteger(Conversions.ToByte(161)), Conversions.ToInteger(Conversions.ToByte(161))); tbLogoDescription.BorderColorHover = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(105)), Conversions.ToInteger(Conversions.ToByte(181)), Conversions.ToInteger(Conversions.ToByte(255))); tbLogoDescription.BorderColorIdle = Color.Silver; tbLogoDescription.BorderRadius = 1; tbLogoDescription.BorderThickness = 1; tbLogoDescription.CharacterCasing = CharacterCasing.Normal; tbLogoDescription.Cursor = Cursors.IBeam; tbLogoDescription.DefaultFont = new Font("Segoe UI Semibold", 9.75f); tbLogoDescription.DefaultText = ""; tbLogoDescription.FillColor = Color.White; tbLogoDescription.HideSelection = true; tbLogoDescription.IconLeft = null; tbLogoDescription.IconLeftCursor = Cursors.IBeam; tbLogoDescription.IconPadding = 10; tbLogoDescription.IconRight = null; tbLogoDescription.IconRightCursor = Cursors.IBeam; tbLogoDescription.Lines = new string[0]; tbLogoDescription.Location = new Point(162, 8); tbLogoDescription.MaxLength = 32767; tbLogoDescription.MinimumSize = new Size(116, 35); tbLogoDescription.Modified = false; tbLogoDescription.Multiline = false; tbLogoDescription.Name = "tbLogoDescription"; StateProperties3.BorderColor = Color.DodgerBlue; StateProperties3.FillColor = Color.Empty; StateProperties3.ForeColor = Color.Empty; StateProperties3.PlaceholderForeColor = Color.Empty; tbLogoDescription.OnActiveState = StateProperties3; StateProperties4.BorderColor = Color.Empty; StateProperties4.FillColor = Color.White; StateProperties4.ForeColor = Color.Empty; StateProperties4.PlaceholderForeColor = Color.Silver; tbLogoDescription.OnDisabledState = StateProperties4; StateProperties5.BorderColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(105)), Conversions.ToInteger(Conversions.ToByte(181)), Conversions.ToInteger(Conversions.ToByte(255))); StateProperties5.FillColor = Color.Empty; StateProperties5.ForeColor = Color.Empty; StateProperties5.PlaceholderForeColor = Color.Empty; tbLogoDescription.OnHoverState = StateProperties5; StateProperties6.BorderColor = Color.Silver; StateProperties6.FillColor = Color.White; StateProperties6.ForeColor = Color.Empty; StateProperties6.PlaceholderForeColor = Color.Empty; tbLogoDescription.OnIdleState = StateProperties6; tbLogoDescription.PasswordChar = '\0'; tbLogoDescription.PlaceholderForeColor = Color.Silver; tbLogoDescription.PlaceholderText = ""; tbLogoDescription.ReadOnly = false; tbLogoDescription.ScrollBars = ScrollBars.None; tbLogoDescription.SelectedText = ""; tbLogoDescription.SelectionLength = 0; tbLogoDescription.SelectionStart = 0; tbLogoDescription.ShortcutsEnabled = true; tbLogoDescription.Size = new Size(368, 35); tbLogoDescription.Style = _Style.Bunifu; tbLogoDescription.TabIndex = 23; tbLogoDescription.TextAlign = HorizontalAlignment.Left; tbLogoDescription.TextMarginBottom = 0; tbLogoDescription.TextMarginLeft = 5; tbLogoDescription.TextMarginTop = 0; tbLogoDescription.TextPlaceholder = ""; tbLogoDescription.UseSystemPasswordChar = false; tbLogoDescription.WordWrap = true; // // Label14 // Label14.Anchor = AnchorStyles.Right; Label14.AutoSize = true; Label14.Location = new Point(37, 15); Label14.Name = "Label14"; Label14.Size = new Size(119, 17); Label14.TabIndex = 5; Label14.Text = "Logo Description:"; // // btnSave // _btnSave.AllowToggling = false; _btnSave.Anchor = AnchorStyles.Bottom | AnchorStyles.Left; _btnSave.AnimationSpeed = 200; _btnSave.AutoGenerateColors = false; _btnSave.BackColor = Color.Transparent; _btnSave.BackColor1 = Color.Teal; _btnSave.BackgroundImage = (Image)resources.GetObject("btnSave.BackgroundImage"); _btnSave.BorderStyle = Bunifu.UI.WinForms.BunifuButton.BunifuButton.BorderStyles.Solid; _btnSave.ButtonText = "Save"; _btnSave.ButtonTextMarginLeft = 0; _btnSave.ColorContrastOnClick = 45; _btnSave.ColorContrastOnHover = 45; _btnSave.Cursor = Cursors.Hand; BorderEdges2.BottomLeft = true; BorderEdges2.BottomRight = true; BorderEdges2.TopLeft = true; BorderEdges2.TopRight = true; _btnSave.CustomizableEdges = BorderEdges2; _btnSave.DialogResult = DialogResult.None; _btnSave.DisabledBorderColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(191)), Conversions.ToInteger(Conversions.ToByte(191)), Conversions.ToInteger(Conversions.ToByte(191))); _btnSave.DisabledFillColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(204)), Conversions.ToInteger(Conversions.ToByte(204)), Conversions.ToInteger(Conversions.ToByte(204))); _btnSave.DisabledForecolor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(168)), Conversions.ToInteger(Conversions.ToByte(160)), Conversions.ToInteger(Conversions.ToByte(168))); _btnSave.FocusState = Bunifu.UI.WinForms.BunifuButton.BunifuButton.ButtonStates.Pressed; _btnSave.Font = new Font("Segoe UI Semibold", 9.75f); _btnSave.ForeColor = Color.White; _btnSave.IconLeftCursor = Cursors.Hand; _btnSave.IconMarginLeft = 11; _btnSave.IconPadding = 10; _btnSave.IconRightCursor = Cursors.Hand; _btnSave.IdleBorderColor = Color.Teal; _btnSave.IdleBorderRadius = 3; _btnSave.IdleBorderThickness = 1; _btnSave.IdleFillColor = Color.Teal; _btnSave.IdleIconLeftImage = null; _btnSave.IdleIconRightImage = null; _btnSave.IndicateFocus = false; _btnSave.Location = new Point(265, 417); _btnSave.Name = "_btnSave"; StateProperties7.BorderColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(105)), Conversions.ToInteger(Conversions.ToByte(181)), Conversions.ToInteger(Conversions.ToByte(255))); StateProperties7.BorderRadius = 3; StateProperties7.BorderStyle = Bunifu.UI.WinForms.BunifuButton.BunifuButton.BorderStyles.Solid; StateProperties7.BorderThickness = 1; StateProperties7.FillColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(0)), Conversions.ToInteger(Conversions.ToByte(192)), Conversions.ToInteger(Conversions.ToByte(192))); StateProperties7.ForeColor = Color.White; StateProperties7.IconLeftImage = null; StateProperties7.IconRightImage = null; _btnSave.onHoverState = StateProperties7; StateProperties8.BorderColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(40)), Conversions.ToInteger(Conversions.ToByte(96)), Conversions.ToInteger(Conversions.ToByte(144))); StateProperties8.BorderRadius = 3; StateProperties8.BorderStyle = Bunifu.UI.WinForms.BunifuButton.BunifuButton.BorderStyles.Solid; StateProperties8.BorderThickness = 1; StateProperties8.FillColor = Color.Teal; StateProperties8.ForeColor = Color.White; StateProperties8.IconLeftImage = null; StateProperties8.IconRightImage = null; _btnSave.OnPressedState = StateProperties8; _btnSave.Size = new Size(91, 30); _btnSave.TabIndex = 177; _btnSave.TextAlign = ContentAlignment.MiddleCenter; _btnSave.TextMarginLeft = 0; _btnSave.UseDefaultRadiusAndThickness = true; // // lblWarning // lblWarning.Anchor = AnchorStyles.Top | AnchorStyles.Right; lblWarning.ForeColor = Color.Red; lblWarning.Location = new Point(30, 87); lblWarning.Name = "lblWarning"; lblWarning.Padding = new Padding(3); lblWarning.Size = new Size(527, 23); lblWarning.TabIndex = 178; // // FrmAddEditBagLogo // AutoScaleDimensions = new SizeF(8.0f, 16.0f); AutoScaleMode = AutoScaleMode.Font; BackColor = Color.White; ClientSize = new Size(643, 459); Controls.Add(lblWarning); Controls.Add(_btnSave); Controls.Add(Label1); Controls.Add(BunifuSeparator4); Controls.Add(TableLayoutPanel4); Controls.Add(_closeFlatButton); Controls.Add(Label17); Font = new Font("Microsoft Sans Serif", 10.0f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); FormBorderStyle = FormBorderStyle.None; Margin = new Padding(4); Name = "FrmAddEditBagLogo"; Text = "FrmAddEditBagLogo"; TableLayoutPanel4.ResumeLayout(false); TableLayoutPanel4.PerformLayout(); TableLayoutPanel5.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)pbBagLogo).EndInit(); TableLayoutPanel7.ResumeLayout(false); TableLayoutPanel7.PerformLayout(); ((System.ComponentModel.ISupportInitialize)nudBagYear).EndInit(); ResumeLayout(false); PerformLayout(); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormNetworkSettings)); this.label1 = new System.Windows.Forms.Label(); this.txtIP = new System.Windows.Forms.TextBox(); this.btnOK = new System.Windows.Forms.Button(); this.btnCancel = new System.Windows.Forms.Button(); this.label2 = new System.Windows.Forms.Label(); this.panel1 = new System.Windows.Forms.Panel(); this.bunifuSeparator3 = new Bunifu.Framework.UI.BunifuSeparator(); this.pictureBox1 = new System.Windows.Forms.PictureBox(); this.label3 = new System.Windows.Forms.Label(); this.bunifuDragControl1 = new Bunifu.Framework.UI.BunifuDragControl(this.components); ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit(); this.SuspendLayout(); // // label1 // this.label1.Location = new System.Drawing.Point(41, 82); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(122, 16); this.label1.TabIndex = 0; this.label1.Text = "Server\'s IP address:"; // // txtIP // this.txtIP.Location = new System.Drawing.Point(245, 78); this.txtIP.Name = "txtIP"; this.txtIP.Size = new System.Drawing.Size(172, 20); this.txtIP.TabIndex = 1; // // btnOK // this.btnOK.DialogResult = System.Windows.Forms.DialogResult.OK; this.btnOK.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnOK.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(173)))), ((int)(((byte)(239))))); this.btnOK.Location = new System.Drawing.Point(283, 113); this.btnOK.Name = "btnOK"; this.btnOK.Size = new System.Drawing.Size(64, 24); this.btnOK.TabIndex = 2; this.btnOK.Text = "OK"; this.btnOK.Click += new System.EventHandler(this.btnOK_Click); // // btnCancel // this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.btnCancel.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnCancel.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(173)))), ((int)(((byte)(239))))); this.btnCancel.Location = new System.Drawing.Point(353, 113); this.btnCancel.Name = "btnCancel"; this.btnCancel.Size = new System.Drawing.Size(64, 24); this.btnCancel.TabIndex = 3; this.btnCancel.Text = "Cancel"; // // label2 // this.label2.AutoSize = true; this.label2.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(173)))), ((int)(((byte)(239))))); this.label2.Location = new System.Drawing.Point(41, 53); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(395, 13); this.label2.TabIndex = 4; this.label2.Text = "Declare the address of the server listening for incoming connections from the cli" + "ent"; // // panel1 // this.panel1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(173)))), ((int)(((byte)(239))))); this.panel1.Dock = System.Windows.Forms.DockStyle.Top; this.panel1.Location = new System.Drawing.Point(0, 0); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(448, 15); this.panel1.TabIndex = 27; // // bunifuSeparator3 // this.bunifuSeparator3.BackColor = System.Drawing.Color.Transparent; this.bunifuSeparator3.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(192))))); this.bunifuSeparator3.LineThickness = 1; this.bunifuSeparator3.Location = new System.Drawing.Point(19, 44); this.bunifuSeparator3.Name = "bunifuSeparator3"; this.bunifuSeparator3.Size = new System.Drawing.Size(414, 10); this.bunifuSeparator3.TabIndex = 26; this.bunifuSeparator3.Transparency = 255; this.bunifuSeparator3.Vertical = false; // // pictureBox1 // this.pictureBox1.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox1.Image"))); this.pictureBox1.Location = new System.Drawing.Point(20, 25); this.pictureBox1.Name = "pictureBox1"; this.pictureBox1.Size = new System.Drawing.Size(15, 16); this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; this.pictureBox1.TabIndex = 25; this.pictureBox1.TabStop = false; // // label3 // this.label3.AutoSize = true; this.label3.Location = new System.Drawing.Point(41, 28); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(86, 13); this.label3.TabIndex = 24; this.label3.Text = "Network settings"; // // bunifuDragControl1 // this.bunifuDragControl1.Fixed = true; this.bunifuDragControl1.Horizontal = true; this.bunifuDragControl1.TargetControl = this; this.bunifuDragControl1.Vertical = true; // // FormNetworkSettings // this.AcceptButton = this.btnOK; this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.CancelButton = this.btnCancel; this.ClientSize = new System.Drawing.Size(448, 149); this.Controls.Add(this.panel1); this.Controls.Add(this.bunifuSeparator3); this.Controls.Add(this.pictureBox1); this.Controls.Add(this.label3); this.Controls.Add(this.label2); this.Controls.Add(this.btnCancel); this.Controls.Add(this.btnOK); this.Controls.Add(this.txtIP); this.Controls.Add(this.label1); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.Name = "FormNetworkSettings"; this.ShowInTaskbar = false; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; this.Text = "Thiết lập mạng"; this.Closing += new System.ComponentModel.CancelEventHandler(this.FormNetworkSettings_Closing); ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit(); this.ResumeLayout(false); this.PerformLayout(); }
private void InitializeComponent() { m_mediaManager = new MediaManager(); this.components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(formMainFrame)); this.panelControl = new System.Windows.Forms.Panel(); this.sliderVolume = new Bunifu.Framework.UI.BunifuSlider(); this.buttonShuffle = new Bunifu.Framework.UI.BunifuImageButton(); this.buttonRepeat = new Bunifu.Framework.UI.BunifuImageButton(); this.buttonVolumeMax = new Bunifu.Framework.UI.BunifuImageButton(); this.buttonVolumeMin = new Bunifu.Framework.UI.BunifuImageButton(); this.buttonPre = new Bunifu.Framework.UI.BunifuImageButton(); this.buttonNext = new Bunifu.Framework.UI.BunifuImageButton(); this.buttonPlay = new Bunifu.Framework.UI.BunifuImageButton(); this.processbarPlayTime = new Bunifu.Framework.UI.BunifuProgressBar(); this.elipseBorder = new Bunifu.Framework.UI.BunifuElipse(this.components); this.dragcontrolMainFrame = new Bunifu.Framework.UI.BunifuDragControl(this.components); this.gradientpanelUpperBar = new Bunifu.Framework.UI.BunifuGradientPanel(); this.buttonMinimize = new Bunifu.Framework.UI.BunifuImageButton(); this.buttonClose = new Bunifu.Framework.UI.BunifuImageButton(); this.panelLeft = new System.Windows.Forms.Panel(); this.separatorLeftMid = new Bunifu.Framework.UI.BunifuSeparator(); this.panelTrackList = new System.Windows.Forms.Panel(); this.panelTitle = new System.Windows.Forms.Panel(); this.buttonSlider = new Bunifu.Framework.UI.BunifuImageButton(); this.pictureboxTitle = new System.Windows.Forms.PictureBox(); this.panelMid = new System.Windows.Forms.Panel(); this.panelBlankTop = new System.Windows.Forms.Panel(); this.buttonClearList = new Bunifu.Framework.UI.BunifuThinButton2(); this.tooltipDescription = new System.Windows.Forms.ToolTip(this.components); this.panelControl.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.buttonShuffle)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.buttonRepeat)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.buttonVolumeMax)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.buttonVolumeMin)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.buttonPre)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.buttonNext)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.buttonPlay)).BeginInit(); this.gradientpanelUpperBar.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.buttonMinimize)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.buttonClose)).BeginInit(); this.panelLeft.SuspendLayout(); this.panelTitle.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.buttonSlider)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.pictureboxTitle)).BeginInit(); this.panelBlankTop.SuspendLayout(); this.SuspendLayout(); // // panelControl // this.panelControl.Controls.Add(this.sliderVolume); this.panelControl.Controls.Add(this.buttonShuffle); this.panelControl.Controls.Add(this.buttonRepeat); this.panelControl.Controls.Add(this.buttonVolumeMax); this.panelControl.Controls.Add(this.buttonVolumeMin); this.panelControl.Controls.Add(this.buttonPre); this.panelControl.Controls.Add(this.buttonNext); this.panelControl.Controls.Add(this.buttonPlay); this.panelControl.Controls.Add(this.processbarPlayTime); this.panelControl.Dock = System.Windows.Forms.DockStyle.Bottom; this.panelControl.Location = new System.Drawing.Point(0, 416); this.panelControl.Name = "panelControl"; this.panelControl.Size = new System.Drawing.Size(768, 96); this.panelControl.TabIndex = 2; // // sliderVolume // this.sliderVolume.Anchor = System.Windows.Forms.AnchorStyles.Bottom; this.sliderVolume.BackColor = System.Drawing.Color.Transparent; this.sliderVolume.BackgroudColor = System.Drawing.Color.SlateGray; this.sliderVolume.BorderRadius = 2; this.sliderVolume.IndicatorColor = System.Drawing.Color.DarkSlateGray; this.sliderVolume.Location = new System.Drawing.Point(559, 41); this.sliderVolume.MaximumValue = 100; this.sliderVolume.Name = "sliderVolume"; this.sliderVolume.Size = new System.Drawing.Size(148, 30); this.sliderVolume.TabIndex = 13; this.tooltipDescription.SetToolTip(this.sliderVolume, "Adjust volume"); this.sliderVolume.Value = 0; // // buttonShuffle // this.buttonShuffle.Anchor = System.Windows.Forms.AnchorStyles.Bottom; this.buttonShuffle.BackColor = System.Drawing.Color.Transparent; this.buttonShuffle.Image = global::UIDesign.Properties.Resources.button_noneshuffle_background; this.buttonShuffle.ImageActive = null; this.buttonShuffle.Location = new System.Drawing.Point(191, 35); this.buttonShuffle.Name = "buttonShuffle"; this.buttonShuffle.Size = new System.Drawing.Size(40, 40); this.buttonShuffle.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; this.buttonShuffle.TabIndex = 10; this.buttonShuffle.TabStop = false; this.tooltipDescription.SetToolTip(this.buttonShuffle, "Shuffle mode"); this.buttonShuffle.Zoom = 10; this.buttonShuffle.Click += new System.EventHandler(this.buttonShuffle_Click); this.buttonShuffle.MouseLeave += new System.EventHandler(this.button_MouseLeave); this.buttonShuffle.MouseMove += new System.Windows.Forms.MouseEventHandler(this.button_MouseMove); // // buttonRepeat // this.buttonRepeat.Anchor = System.Windows.Forms.AnchorStyles.Bottom; this.buttonRepeat.BackColor = System.Drawing.Color.Transparent; this.buttonRepeat.Image = global::UIDesign.Properties.Resources.button_repeatnone_background; this.buttonRepeat.ImageActive = null; this.buttonRepeat.Location = new System.Drawing.Point(111, 35); this.buttonRepeat.Name = "buttonRepeat"; this.buttonRepeat.Size = new System.Drawing.Size(40, 40); this.buttonRepeat.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; this.buttonRepeat.TabIndex = 9; this.buttonRepeat.TabStop = false; this.tooltipDescription.SetToolTip(this.buttonRepeat, "Repeat mode"); this.buttonRepeat.Zoom = 10; this.buttonRepeat.Click += new System.EventHandler(this.buttonRepeat_Click); this.buttonRepeat.MouseLeave += new System.EventHandler(this.button_MouseLeave); this.buttonRepeat.MouseMove += new System.Windows.Forms.MouseEventHandler(this.button_MouseMove); // // buttonVolumeMax // this.buttonVolumeMax.Anchor = System.Windows.Forms.AnchorStyles.Bottom; this.buttonVolumeMax.BackColor = System.Drawing.Color.Transparent; this.buttonVolumeMax.Image = global::UIDesign.Properties.Resources.button_sound_background; this.buttonVolumeMax.ImageActive = null; this.buttonVolumeMax.Location = new System.Drawing.Point(713, 35); this.buttonVolumeMax.Name = "buttonVolumeMax"; this.buttonVolumeMax.Size = new System.Drawing.Size(40, 40); this.buttonVolumeMax.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; this.buttonVolumeMax.TabIndex = 6; this.buttonVolumeMax.TabStop = false; this.tooltipDescription.SetToolTip(this.buttonVolumeMax, "Maximum volume"); this.buttonVolumeMax.Zoom = 10; this.buttonVolumeMax.Click += new System.EventHandler(this.buttonVolumeMax_Click); this.buttonVolumeMax.MouseLeave += new System.EventHandler(this.button_MouseLeave); this.buttonVolumeMax.MouseMove += new System.Windows.Forms.MouseEventHandler(this.button_MouseMove); // // buttonVolumeMin // this.buttonVolumeMin.Anchor = System.Windows.Forms.AnchorStyles.Bottom; this.buttonVolumeMin.BackColor = System.Drawing.Color.Transparent; this.buttonVolumeMin.Image = global::UIDesign.Properties.Resources.button_mute_background; this.buttonVolumeMin.ImageActive = null; this.buttonVolumeMin.Location = new System.Drawing.Point(513, 35); this.buttonVolumeMin.Name = "buttonVolumeMin"; this.buttonVolumeMin.Size = new System.Drawing.Size(40, 40); this.buttonVolumeMin.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; this.buttonVolumeMin.TabIndex = 5; this.buttonVolumeMin.TabStop = false; this.tooltipDescription.SetToolTip(this.buttonVolumeMin, "Mute volume"); this.buttonVolumeMin.Zoom = 10; this.buttonVolumeMin.Click += new System.EventHandler(this.buttonVolumeMin_Click); this.buttonVolumeMin.MouseLeave += new System.EventHandler(this.button_MouseLeave); this.buttonVolumeMin.MouseMove += new System.Windows.Forms.MouseEventHandler(this.button_MouseMove); // // buttonPre // this.buttonPre.Anchor = System.Windows.Forms.AnchorStyles.Bottom; this.buttonPre.BackColor = System.Drawing.Color.Transparent; this.buttonPre.Image = global::UIDesign.Properties.Resources.button_previous_background; this.buttonPre.ImageActive = null; this.buttonPre.Location = new System.Drawing.Point(298, 32); this.buttonPre.Name = "buttonPre"; this.buttonPre.Size = new System.Drawing.Size(48, 48); this.buttonPre.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; this.buttonPre.TabIndex = 4; this.buttonPre.TabStop = false; this.tooltipDescription.SetToolTip(this.buttonPre, "Previous"); this.buttonPre.Zoom = 10; this.buttonPre.MouseLeave += new System.EventHandler(this.button_MouseLeave); this.buttonPre.MouseMove += new System.Windows.Forms.MouseEventHandler(this.button_MouseMove); // // buttonNext // this.buttonNext.Anchor = System.Windows.Forms.AnchorStyles.Bottom; this.buttonNext.BackColor = System.Drawing.Color.Transparent; this.buttonNext.Image = global::UIDesign.Properties.Resources.button_forward_background; this.buttonNext.ImageActive = null; this.buttonNext.Location = new System.Drawing.Point(406, 32); this.buttonNext.Name = "buttonNext"; this.buttonNext.Size = new System.Drawing.Size(48, 48); this.buttonNext.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; this.buttonNext.TabIndex = 3; this.buttonNext.TabStop = false; this.tooltipDescription.SetToolTip(this.buttonNext, "Next"); this.buttonNext.Zoom = 10; this.buttonNext.Click += new System.EventHandler(this.buttonNext_Click); this.buttonNext.MouseLeave += new System.EventHandler(this.button_MouseLeave); this.buttonNext.MouseMove += new System.Windows.Forms.MouseEventHandler(this.button_MouseMove); // // buttonPlay // this.buttonPlay.Anchor = System.Windows.Forms.AnchorStyles.Bottom; this.buttonPlay.BackColor = System.Drawing.Color.Transparent; this.buttonPlay.Image = global::UIDesign.Properties.Resources.button_play_background; this.buttonPlay.ImageActive = null; this.buttonPlay.Location = new System.Drawing.Point(352, 32); this.buttonPlay.Name = "buttonPlay"; this.buttonPlay.Size = new System.Drawing.Size(48, 48); this.buttonPlay.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; this.buttonPlay.TabIndex = 2; this.buttonPlay.TabStop = false; this.tooltipDescription.SetToolTip(this.buttonPlay, "Play/Pause"); this.buttonPlay.Zoom = 10; this.buttonPlay.Click += new System.EventHandler(this.buttonPlay_Click); this.buttonPlay.MouseLeave += new System.EventHandler(this.button_MouseLeave); this.buttonPlay.MouseMove += new System.Windows.Forms.MouseEventHandler(this.button_MouseMove); // // processbarPlayTime // this.processbarPlayTime.BackColor = System.Drawing.Color.LightSlateGray; this.processbarPlayTime.BorderRadius = 2; this.processbarPlayTime.Cursor = System.Windows.Forms.Cursors.Hand; this.processbarPlayTime.Dock = System.Windows.Forms.DockStyle.Top; this.processbarPlayTime.Location = new System.Drawing.Point(0, 0); this.processbarPlayTime.MaximumValue = 100; this.processbarPlayTime.Name = "processbarPlayTime"; this.processbarPlayTime.ProgressColor = System.Drawing.Color.DeepSkyBlue; this.processbarPlayTime.Size = new System.Drawing.Size(768, 12); this.processbarPlayTime.TabIndex = 1; this.processbarPlayTime.TabStop = false; this.tooltipDescription.SetToolTip(this.processbarPlayTime, "Timer process"); this.processbarPlayTime.Value = 0; // // elipseBorder // this.elipseBorder.ElipseRadius = 3; this.elipseBorder.TargetControl = this; // // dragcontrolMainFrame // this.dragcontrolMainFrame.Fixed = true; this.dragcontrolMainFrame.Horizontal = true; this.dragcontrolMainFrame.TargetControl = this.gradientpanelUpperBar; this.dragcontrolMainFrame.Vertical = true; // // gradientpanelUpperBar // this.gradientpanelUpperBar.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("gradientpanelUpperBar.BackgroundImage"))); this.gradientpanelUpperBar.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; this.gradientpanelUpperBar.Controls.Add(this.buttonMinimize); this.gradientpanelUpperBar.Controls.Add(this.buttonClose); this.gradientpanelUpperBar.Dock = System.Windows.Forms.DockStyle.Top; this.gradientpanelUpperBar.GradientBottomLeft = System.Drawing.Color.DeepSkyBlue; this.gradientpanelUpperBar.GradientBottomRight = System.Drawing.Color.LightSeaGreen; this.gradientpanelUpperBar.GradientTopLeft = System.Drawing.Color.DeepSkyBlue; this.gradientpanelUpperBar.GradientTopRight = System.Drawing.Color.LightSeaGreen; this.gradientpanelUpperBar.Location = new System.Drawing.Point(0, 0); this.gradientpanelUpperBar.Name = "gradientpanelUpperBar"; this.gradientpanelUpperBar.Quality = 10; this.gradientpanelUpperBar.Size = new System.Drawing.Size(768, 32); this.gradientpanelUpperBar.TabIndex = 0; this.gradientpanelUpperBar.Paint += new System.Windows.Forms.PaintEventHandler(this.gradientpanelUpperBar_Paint); this.gradientpanelUpperBar.DoubleClick += new System.EventHandler(this.gradientpanelUpperBar_DoubleClick); // // buttonMinimize // this.buttonMinimize.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.buttonMinimize.BackColor = System.Drawing.Color.Transparent; this.buttonMinimize.Image = global::UIDesign.Properties.Resources.button_minus_background; this.buttonMinimize.ImageActive = null; this.buttonMinimize.Location = new System.Drawing.Point(703, 0); this.buttonMinimize.Name = "buttonMinimize"; this.buttonMinimize.Size = new System.Drawing.Size(32, 32); this.buttonMinimize.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; this.buttonMinimize.TabIndex = 1; this.buttonMinimize.TabStop = false; this.tooltipDescription.SetToolTip(this.buttonMinimize, "Minimize to taskbar"); this.buttonMinimize.Zoom = 0; this.buttonMinimize.Click += new System.EventHandler(this.buttonMinimize_Click); this.buttonMinimize.MouseLeave += new System.EventHandler(this.button_MouseLeave); this.buttonMinimize.MouseMove += new System.Windows.Forms.MouseEventHandler(this.button_MouseMove); // // buttonClose // this.buttonClose.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.buttonClose.BackColor = System.Drawing.Color.Transparent; this.buttonClose.Image = global::UIDesign.Properties.Resources.button_close_background; this.buttonClose.ImageActive = null; this.buttonClose.Location = new System.Drawing.Point(735, 0); this.buttonClose.Name = "buttonClose"; this.buttonClose.Size = new System.Drawing.Size(32, 32); this.buttonClose.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; this.buttonClose.TabIndex = 0; this.buttonClose.TabStop = false; this.tooltipDescription.SetToolTip(this.buttonClose, "Close application"); this.buttonClose.Zoom = 0; this.buttonClose.Click += new System.EventHandler(this.buttonClose_Click); this.buttonClose.MouseLeave += new System.EventHandler(this.button_MouseLeave); this.buttonClose.MouseMove += new System.Windows.Forms.MouseEventHandler(this.button_MouseMove); // // panelLeft // this.panelLeft.BackColor = System.Drawing.Color.Transparent; this.panelLeft.Controls.Add(this.separatorLeftMid); this.panelLeft.Controls.Add(this.panelTrackList); this.panelLeft.Controls.Add(this.panelTitle); this.panelLeft.Dock = System.Windows.Forms.DockStyle.Left; this.panelLeft.Font = new System.Drawing.Font("Calibri", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.panelLeft.ForeColor = System.Drawing.Color.Black; this.panelLeft.Location = new System.Drawing.Point(0, 32); this.panelLeft.Name = "panelLeft"; this.panelLeft.Size = new System.Drawing.Size(240, 384); this.panelLeft.TabIndex = 3; // // separatorLeftMid // this.separatorLeftMid.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom))); this.separatorLeftMid.BackColor = System.Drawing.Color.Transparent; this.separatorLeftMid.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(70)))), ((int)(((byte)(130)))), ((int)(((byte)(180))))); this.separatorLeftMid.LineThickness = 1; this.separatorLeftMid.Location = new System.Drawing.Point(238, 0); this.separatorLeftMid.Name = "separatorLeftMid"; this.separatorLeftMid.Size = new System.Drawing.Size(2, 384); this.separatorLeftMid.TabIndex = 2; this.separatorLeftMid.Transparency = 255; this.separatorLeftMid.Vertical = true; // // panelTrackList // this.panelTrackList.AllowDrop = true; this.panelTrackList.AutoScroll = true; this.panelTrackList.BackColor = System.Drawing.Color.Transparent; this.panelTrackList.Cursor = System.Windows.Forms.Cursors.Cross; this.panelTrackList.Dock = System.Windows.Forms.DockStyle.Fill; this.panelTrackList.Location = new System.Drawing.Point(0, 32); this.panelTrackList.Name = "panelTrackList"; this.panelTrackList.Size = new System.Drawing.Size(240, 352); this.panelTrackList.TabIndex = 1; this.tooltipDescription.SetToolTip(this.panelTrackList, "Drag your files here to open them"); this.panelTrackList.DragDrop += new System.Windows.Forms.DragEventHandler(this.panelTrackList_DragDrop); this.panelTrackList.DragEnter += new System.Windows.Forms.DragEventHandler(this.panelTrackList_DragEnter); // // panelTitle // this.panelTitle.Controls.Add(this.buttonSlider); this.panelTitle.Controls.Add(this.pictureboxTitle); this.panelTitle.Dock = System.Windows.Forms.DockStyle.Top; this.panelTitle.Location = new System.Drawing.Point(0, 0); this.panelTitle.Name = "panelTitle"; this.panelTitle.Size = new System.Drawing.Size(240, 32); this.panelTitle.TabIndex = 0; // // buttonSlider // this.buttonSlider.BackColor = System.Drawing.Color.Transparent; this.buttonSlider.Dock = System.Windows.Forms.DockStyle.Left; this.buttonSlider.Image = global::UIDesign.Properties.Resources.button_menu_background; this.buttonSlider.ImageActive = null; this.buttonSlider.Location = new System.Drawing.Point(0, 0); this.buttonSlider.Name = "buttonSlider"; this.buttonSlider.Size = new System.Drawing.Size(48, 32); this.buttonSlider.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; this.buttonSlider.TabIndex = 6; this.buttonSlider.TabStop = false; this.tooltipDescription.SetToolTip(this.buttonSlider, "About me"); this.buttonSlider.Zoom = 10; this.buttonSlider.Click += new System.EventHandler(this.buttonSlider_Click); this.buttonSlider.MouseLeave += new System.EventHandler(this.button_MouseLeave); this.buttonSlider.MouseMove += new System.Windows.Forms.MouseEventHandler(this.button_MouseMove); // // pictureboxTitle // this.pictureboxTitle.Dock = System.Windows.Forms.DockStyle.Right; this.pictureboxTitle.Image = global::UIDesign.Properties.Resources.picture_title_background; this.pictureboxTitle.Location = new System.Drawing.Point(48, 0); this.pictureboxTitle.Name = "pictureboxTitle"; this.pictureboxTitle.Size = new System.Drawing.Size(192, 32); this.pictureboxTitle.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; this.pictureboxTitle.TabIndex = 0; this.pictureboxTitle.TabStop = false; // // panelMid // this.panelMid.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.panelMid.BackColor = System.Drawing.Color.Transparent; this.panelMid.Location = new System.Drawing.Point(240, 64); this.panelMid.Name = "panelMid"; this.panelMid.Size = new System.Drawing.Size(528, 352); this.panelMid.TabIndex = 4; // // panelBlankTop // this.panelBlankTop.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.panelBlankTop.BackColor = System.Drawing.Color.Transparent; this.panelBlankTop.Controls.Add(this.buttonClearList); this.panelBlankTop.Location = new System.Drawing.Point(240, 32); this.panelBlankTop.Name = "panelBlankTop"; this.panelBlankTop.Size = new System.Drawing.Size(528, 32); this.panelBlankTop.TabIndex = 5; // // buttonClearList // this.buttonClearList.ActiveBorderThickness = 1; this.buttonClearList.ActiveCornerRadius = 2; this.buttonClearList.ActiveFillColor = System.Drawing.Color.DarkCyan; this.buttonClearList.ActiveForecolor = System.Drawing.Color.White; this.buttonClearList.ActiveLineColor = System.Drawing.Color.DarkCyan; this.buttonClearList.BackColor = System.Drawing.Color.Transparent; this.buttonClearList.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("buttonClearList.BackgroundImage"))); this.buttonClearList.ButtonText = "Clear list"; this.buttonClearList.Cursor = System.Windows.Forms.Cursors.Default; this.buttonClearList.Font = new System.Drawing.Font("Calibri", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.buttonClearList.ForeColor = System.Drawing.Color.DarkSlateGray; this.buttonClearList.IdleBorderThickness = 1; this.buttonClearList.IdleCornerRadius = 2; this.buttonClearList.IdleFillColor = System.Drawing.Color.LightCyan; this.buttonClearList.IdleForecolor = System.Drawing.Color.DarkCyan; this.buttonClearList.IdleLineColor = System.Drawing.Color.DarkCyan; this.buttonClearList.Location = new System.Drawing.Point(8, 0); this.buttonClearList.Margin = new System.Windows.Forms.Padding(5); this.buttonClearList.Name = "buttonClearList"; this.buttonClearList.Size = new System.Drawing.Size(64, 32); this.buttonClearList.TabIndex = 0; this.buttonClearList.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.tooltipDescription.SetToolTip(this.buttonClearList, "Clear all loaded files"); this.buttonClearList.Click += new System.EventHandler(this.buttonClearList_Click); // // tooltipDescription // this.tooltipDescription.AutoPopDelay = 3000; this.tooltipDescription.BackColor = System.Drawing.Color.White; this.tooltipDescription.ForeColor = System.Drawing.Color.DarkSlateGray; this.tooltipDescription.InitialDelay = 500; this.tooltipDescription.ReshowDelay = 100; this.tooltipDescription.ToolTipTitle = "Hint"; // // formMainFrame // this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Inherit; this.BackColor = System.Drawing.Color.White; this.ClientSize = new System.Drawing.Size(768, 512); this.Controls.Add(this.panelBlankTop); this.Controls.Add(this.panelMid); this.Controls.Add(this.panelLeft); this.Controls.Add(this.panelControl); this.Controls.Add(this.gradientpanelUpperBar); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.MinimumSize = new System.Drawing.Size(400, 300); this.Name = "formMainFrame"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "Media Play"; this.Load += new System.EventHandler(this.formMainFrame_Load); this.panelControl.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.buttonShuffle)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.buttonRepeat)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.buttonVolumeMax)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.buttonVolumeMin)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.buttonPre)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.buttonNext)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.buttonPlay)).EndInit(); this.gradientpanelUpperBar.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.buttonMinimize)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.buttonClose)).EndInit(); this.panelLeft.ResumeLayout(false); this.panelTitle.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.buttonSlider)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.pictureboxTitle)).EndInit(); this.panelBlankTop.ResumeLayout(false); this.ResumeLayout(false); }