private void b1_Click(object sender, EventArgs e) { Bunifu.Framework.UI.BunifuThinButton2 cerrar = sender as Bunifu.Framework.UI.BunifuThinButton2; boton = cerrar.Name; informacionmostrar(cerrar.Name); }
private void getSanPhamKhac() { conn.Connect(); flowLayoutPanel1.Controls.Clear(); var reult = conn.database.RunCommand <BsonDocument>(new BsonDocument { { "eval", "getSanPhamKhac()" } }); var array = reult["retval"].AsBsonArray; Bunifu.Framework.UI.BunifuThinButton2[] buttonArray = new Bunifu.Framework.UI.BunifuThinButton2[100]; int i = 0; foreach (var b in array) { buttonArray[i] = new Bunifu.Framework.UI.BunifuThinButton2(); buttonArray[i].Size = new Size(80, 60); buttonArray[i].ButtonText = b["TenHang"].AsString; buttonArray[i].MouseDown += Main_MouseDown; buttonArray[i].Font = new Font("Franklin Gothic", 12f); buttonArray[i].ActiveFillColor = Color.Yellow; buttonArray[i].IdleFillColor = Color.LightSteelBlue; this.flowLayoutPanel1.Controls.Add(buttonArray[i]); i++; } }
//Hàm bắt sự kiện khi click vào chọn các sảng phẩm #region private void Main_MouseDown(object sender, EventArgs e) { if (txtKhachHang.Text != "" && lbTenBan.Text != "") { Bunifu.Framework.UI.BunifuThinButton2 c = (Bunifu.Framework.UI.BunifuThinButton2)(sender); var reult = conn.database.RunCommand <BsonDocument>(new BsonDocument { { "eval", "getProductsName('" + c.ButtonText + "')" } }); BsonDocument array = reult; BsonDocument arr1 = array["retval"].AsBsonDocument; DataGridViewRow row = (DataGridViewRow)gridView.Rows[0].Clone(); row.Cells[0].Value = arr1["TenHang"].AsString; row.Cells[1].Value = (arr1["Gia"].AsDouble).ToString(); gridView.Rows.Add(row); sum = 0; for (int i = 0; i < gridView.Rows.Count - 1; i++) { sum += Convert.ToInt32(gridView.Rows[i].Cells[1].Value.ToString()); } sum = (float)sum * (100 - int.Parse(txtBonus.Text)) / 100; txtTongTien.Text = sum.ToString(); } else { if (txtKhachHang.Text == "") { MessageBox.Show("Vui lòng nhập tên khách hàng."); } if (lbTenBan.Text == "") { MessageBox.Show("Vui lòng nhập tên Bàn."); } } }
private void cajas_Click(object sender, EventArgs e)//metodo para cambiar el sonido de las cajas al hacer click { Bunifu.Framework.UI.BunifuThinButton2 boton = sender as Bunifu.Framework.UI.BunifuThinButton2; switch (datos_cajas[Convert.ToInt16(boton.Name), 0].ToString()) { case "0": datos_cajas[Convert.ToInt16(boton.Name), 0] = 1; datos_cajas[Convert.ToInt16(boton.Name), 1] = 1; break; case "1": sound[Convert.ToInt16(boton.Name)] = new SoundPlayer(@"C:\Users\SNK93\Desktop\clic_fuerte.wav"); //cambia sonido a clic con acento color_cajas[Convert.ToInt16(boton.Name)] = Color.Red; //cambia color a rojo para indicar acento color_cajas[Convert.ToInt16(boton.Name)] = Color.Red; //FromArgb(((int)(((byte)(0)))), ((int)(((byte)(176)))), ((int)(((byte)(80))))); datos_cajas[Convert.ToInt16(boton.Name), 0] = 2; datos_cajas[Convert.ToInt16(boton.Name), 1] = 2; break; case "2": sound[Convert.ToInt16(boton.Name)] = new SoundPlayer(@"C:\Users\SNK93\Desktop\clic.wav"); //cambia sonido a clic sin acento color_cajas[Convert.ToInt16(boton.Name)] = Color.FromArgb(46, 139, 87); //cambia color a verde para indicar sin acento datos_cajas[Convert.ToInt16(boton.Name), 0] = 0; datos_cajas[Convert.ToInt16(boton.Name), 0] = 0; break; default: MessageBox.Show("error asignar sonido"); break; } }
public void loadData(object sender, EventArgs e) { Bunifu.Framework.UI.BunifuThinButton2 btn = sender as Bunifu.Framework.UI.BunifuThinButton2; Data d = data; RW_Data.ReadJSON(ref d); data = d; }
public void Changerbuttoncouleur(Bunifu.Framework.UI.BunifuThinButton2 Button, int R, int G, int B) { Button.IdleFillColor = Color.White; Button.IdleForecolor = Color.Black; Button.IdleLineColor = Color.FromArgb(R, G, B); Button.ActiveFillColor = Color.FromArgb(R, G, B); Button.ActiveForecolor = Color.Black; Button.ActiveLineColor = Color.FromArgb(R, G, B); }
private void btn_Click(object sender, EventArgs e) { Bunifu.Framework.UI.BunifuThinButton2 clickedButton = sender as Bunifu.Framework.UI.BunifuThinButton2; Vars.teste.Controls.Clear(); Vars.af.info = new info(clickedButton.ButtonText, false) { Dock = DockStyle.Fill }; Vars.teste.Controls.Add(Vars.af.info); }
public Bunifu.Framework.UI.BunifuThinButton2 AddNewBubble(String txt, String Sender) { Bunifu.Framework.UI.BunifuThinButton2 box = new Bunifu.Framework.UI.BunifuThinButton2(); System.Windows.Forms.Label lbl = new System.Windows.Forms.Label(); System.Windows.Forms.Label lblSender = new System.Windows.Forms.Label(); System.Drawing.Drawing2D.GraphicsPath gp = new System.Drawing.Drawing2D.GraphicsPath(); System.Windows.Forms.PictureBox pb = new System.Windows.Forms.PictureBox(); int[] posX = new int[2]; pb.Image = Image.FromFile(@"D:\Danes\BotHealth\Images\icon.jpg"); lblSender.Text = Sender; lbl.Text = txt; lbl.Font = new Font("Arial", 11, FontStyle.Regular); lblSender.Font = new Font("Arial", 9, FontStyle.Regular); lblSender.ForeColor = Color.DarkSlateGray; lbl.AutoSize = lblSender.AutoSize = true; lblSender.MaximumSize = new Size(300, 15); lbl.MaximumSize = new Size(300, 0); box.Size = new Size(lbl.PreferredSize.Width + 20, lbl.PreferredSize.Height + 20); box.ButtonText = ""; pnlDisplay.Controls.Add(lblSender); pnlDisplay.Controls.Add(lbl); pnlDisplay.Controls.Add(box); if (Sender.ToLower() == "me") { posX[0] = this.Size.Width - box.Size.Width - 40; posX[1] = this.Size.Width - lblSender.Size.Width - 44; box.ActiveFillColor = box.ActiveLineColor = box.IdleFillColor = box.IdleLineColor = lbl.BackColor = Color.SeaGreen; lbl.ForeColor = Color.WhiteSmoke; } else { posX[0] = posX[1] = 50; box.ActiveFillColor = box.ActiveLineColor = box.IdleFillColor = box.IdleLineColor = lbl.BackColor = Color.WhiteSmoke; lbl.ForeColor = Color.SeaGreen; pnlDisplay.Controls.Add(pb); pb.BackColor = Color.GhostWhite; pb.Size = new Size(45, 45); gp.AddEllipse(0, 0, pb.Width - 3, pb.Height - 3); Region rg = new Region(gp); pb.Region = rg; } box.Location = new System.Drawing.Point(posX[0], (n + 10) - pnlDisplay.VerticalScroll.Value); lbl.Location = new System.Drawing.Point(posX[0] + 10, (n + 20) - pnlDisplay.VerticalScroll.Value); lblSender.Location = new System.Drawing.Point(posX[1] + 2, (n) - pnlDisplay.VerticalScroll.Value); pb.Location = new System.Drawing.Point(5, (n - 10) - pnlDisplay.VerticalScroll.Value); n += box.Size.Height + lblSender.Size.Height; for (int i = 1; (i < 3) && (pnlDisplay.VerticalScroll.Maximum != 100); i++) { pnlDisplay.VerticalScroll.Value = pnlDisplay.VerticalScroll.Maximum; } return(box); }
public void saveData(object sender, EventArgs e) { if (data == null) { System.Windows.Forms.MessageBox.Show("לא הוגדר מידע לשמירה"); return; } Bunifu.Framework.UI.BunifuThinButton2 btn = sender as Bunifu.Framework.UI.BunifuThinButton2; datetime = DateTime.Now; date.Text = datetime.ToString("d/M/yyyy"); time.Text = datetime.ToString("HH:mm:ss"); data.changeFileName(datetime); RW_Data.WriteJSON(data); }
private void Main_MouseDown1(object sender, EventArgs e) { Bunifu.Framework.UI.BunifuThinButton2 c = (Bunifu.Framework.UI.BunifuThinButton2)(sender); if (c.ActiveFillColor == Color.Red) { MessageBox.Show("Bạn này đã được đặt. Vui lòng đặt bàn khác...", "Thông báo", MessageBoxButtons.YesNo, MessageBoxIcon.Warning); } else { lbTenBan.Text = c.ButtonText; } DateTime today = DateTime.Now; txtThoiGian.Text = today.Day.ToString() + "/" + today.Month.ToString() + "/" + today.Year.ToString(); }
/* +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + [flowLayoutPanel_Category] Category Button을 flowLayoutPanel_Category에 동적 생성 추가 + [panel_MenuPageLayout] Category별 Menus를 담을 FlowLayoutPanel을 panel_pageLayout에 동적 생성 추가 + [panel_MenuPageLayout] +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */ /// <summary> /// 카테고리 버튼 추가 /// </summary> /// <param name="aCategoryName"></param> private void AddCategory(string aCategoryName) { // 카테고리 Bunifu.Framework.UI.BunifuThinButton2 _categoryButton = new Bunifu.Framework.UI.BunifuThinButton2(); { _categoryButton.ActiveBorderThickness = 1; _categoryButton.ActiveCornerRadius = 1; _categoryButton.ActiveFillColor = System.Drawing.Color.Transparent; _categoryButton.ActiveForecolor = System.Drawing.Color.DodgerBlue; _categoryButton.ActiveLineColor = System.Drawing.Color.Transparent; _categoryButton.BackColor = System.Drawing.Color.White; _categoryButton.Cursor = System.Windows.Forms.Cursors.Hand; _categoryButton.Font = new System.Drawing.Font("SpoqaHanSans-Regular", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); _categoryButton.ForeColor = System.Drawing.Color.SeaGreen; _categoryButton.IdleBorderThickness = 1; _categoryButton.IdleCornerRadius = 1; _categoryButton.IdleFillColor = System.Drawing.Color.Transparent; _categoryButton.IdleForecolor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); _categoryButton.IdleLineColor = System.Drawing.Color.Transparent; _categoryButton.Margin = new System.Windows.Forms.Padding(7, 8, 7, 8); _categoryButton.Size = new System.Drawing.Size(160, 50); _categoryButton.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; //---------------------------------------------------------- _categoryButton.ButtonText = aCategoryName; } this.flowLayoutPanel_Category.Controls.Add(_categoryButton); // 카테고리 : 메뉴 페이지 맵핑 생성 FlowLayoutPanel flp = new FlowLayoutPanel(); { flp.BackColor = System.Drawing.Color.White; flp.Dock = System.Windows.Forms.DockStyle.Fill; flp.Padding = new System.Windows.Forms.Padding(20, 20, 5, 5); //---------------------------------------------------------- flp.Name = aCategoryName; } this.panel_MenuPageLayout.Controls.Add(flp); // 딕셔너리에 메뉴 페이지 저장 dicMenuPages.Add(aCategoryName, flp); // 버튼 이벤트 _categoryButton.Click += _categoryButton_Click; }
private void b1_Click_1(object sender, EventArgs e) { Bunifu.Framework.UI.BunifuThinButton2 cerrar = sender as Bunifu.Framework.UI.BunifuThinButton2; int boton = int.Parse(cerrar.Name[1] + ""); if (respuesta == (boton - 1)) { Pregunta pre = new Pregunta(this.nombre, this.preguntaNumero + 1); this.Close(); } else { MessageBox.Show("perdio, La respuesta es=>\n\t" + sRespuesta, label2.Text); this.Close(); Inicio inicio = new Inicio(); } }
/// <summary> /// 카테고리 버튼들 클릭 이벤트 처리 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void _categoryButton_Click(object sender, EventArgs e) { Bunifu.Framework.UI.BunifuThinButton2 _categoryButton = sender as Bunifu.Framework.UI.BunifuThinButton2; // 현재 카테고리 포커스 this.CurrentCategoryName = _categoryButton.ButtonText; // 선택 UI 포커스 언더라인 이동 Point pt = new Point(_categoryButton.Location.X, this.bunifuSeparator_SelectedCategoryLine.Location.Y); Size sz = new Size(_categoryButton.Width, this.bunifuSeparator_SelectedCategoryLine.Height); { this.bunifuSeparator_SelectedCategoryLine.Location = pt; this.bunifuSeparator_SelectedCategoryLine.Size = sz; } // 선택된 카테고리 페이지 상단으로 표시 this.dicMenuPages[CurrentCategoryName].BringToFront(); }
public void resetData(object sender, EventArgs e) { Bunifu.Framework.UI.BunifuThinButton2 btn = sender as Bunifu.Framework.UI.BunifuThinButton2; if (btn == reset) { System.Windows.Forms.DialogResult result = System.Windows.Forms.MessageBox.Show("האם אתה בטוח שאתה רוצה למחוק את השמירה הזאת?", "מחיקת שמירה", System.Windows.Forms.MessageBoxButtons.YesNo); if (result == System.Windows.Forms.DialogResult.Yes) { deleted = true; removeControlsFromPanel(); panel.Controls.Add(ShowMessage); ShowMessage.BringToFront(); nameSavement.Text = "שמירה חדשה"; if (ListSavementsPanel != null) { ListSavementsPanel.updateList(); } } } }
/* check if to enable the operation button */ private bool ColorBtn(ref Bunifu.Framework.UI.BunifuThinButton2 btn, Color c, List <string> chekingNotEmptyText = null) { bool flag = true; if (chekingNotEmptyText != null) { foreach (string str in chekingNotEmptyText) { if (str.Length == 0 || stringContainHebrewLetter(str)) { flag = false; } } } btn.ActiveFillColor = flag ? c : Color.Gray; btn.ActiveLineColor = flag ? c : Color.Gray; btn.ForeColor = flag ? c : Color.Gray; btn.IdleForecolor = flag ? c : Color.Gray; btn.IdleLineColor = flag ? c : Color.Gray; return(flag); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { System.Windows.Forms.Panel panel2; Bunifu.Framework.UI.BunifuThinButton2 InpBtn; System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(BracketBalancer)); this.TempStk = new System.Windows.Forms.FlowLayoutPanel(); this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel(); this.FinalShowPanel = new System.Windows.Forms.FlowLayoutPanel(); this.StackePnl = new System.Windows.Forms.FlowLayoutPanel(); this.bunifuSeparator1 = new Bunifu.Framework.UI.BunifuSeparator(); this.bunifuImageButton1 = new Bunifu.Framework.UI.BunifuImageButton(); this.inpbox = new Bunifu.Framework.UI.BunifuMaterialTextbox(); panel2 = new System.Windows.Forms.Panel(); InpBtn = new Bunifu.Framework.UI.BunifuThinButton2(); this.tableLayoutPanel1.SuspendLayout(); panel2.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.bunifuImageButton1)).BeginInit(); this.SuspendLayout(); // // TempStk // this.TempStk.BackColor = System.Drawing.Color.Lavender; this.TempStk.Dock = System.Windows.Forms.DockStyle.Top; this.TempStk.FlowDirection = System.Windows.Forms.FlowDirection.BottomUp; this.TempStk.Location = new System.Drawing.Point(192, 3); this.TempStk.Name = "TempStk"; this.TempStk.Size = new System.Drawing.Size(177, 578); this.TempStk.TabIndex = 4; // // tableLayoutPanel1 // this.tableLayoutPanel1.ColumnCount = 3; this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50.82418F)); this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 49.17582F)); this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 546F)); this.tableLayoutPanel1.Controls.Add(panel2, 2, 0); this.tableLayoutPanel1.Controls.Add(this.StackePnl, 0, 0); this.tableLayoutPanel1.Controls.Add(this.TempStk, 1, 0); this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill; this.tableLayoutPanel1.Location = new System.Drawing.Point(0, 0); this.tableLayoutPanel1.Name = "tableLayoutPanel1"; this.tableLayoutPanel1.RowCount = 1; this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F)); this.tableLayoutPanel1.Size = new System.Drawing.Size(919, 584); this.tableLayoutPanel1.TabIndex = 1; // // panel2 // panel2.BackColor = System.Drawing.Color.PowderBlue; panel2.Controls.Add(this.inpbox); panel2.Controls.Add(this.bunifuSeparator1); panel2.Controls.Add(this.FinalShowPanel); panel2.Controls.Add(InpBtn); panel2.Controls.Add(this.bunifuImageButton1); panel2.Dock = System.Windows.Forms.DockStyle.Fill; panel2.Location = new System.Drawing.Point(375, 3); panel2.Name = "panel2"; panel2.Size = new System.Drawing.Size(541, 578); panel2.TabIndex = 3; // // FinalShowPanel // this.FinalShowPanel.AutoSize = true; this.FinalShowPanel.BackColor = System.Drawing.SystemColors.AppWorkspace; this.FinalShowPanel.Dock = System.Windows.Forms.DockStyle.Top; this.FinalShowPanel.Location = new System.Drawing.Point(0, 0); this.FinalShowPanel.Name = "FinalShowPanel"; this.FinalShowPanel.Size = new System.Drawing.Size(541, 0); this.FinalShowPanel.TabIndex = 2; // // InpBtn // InpBtn.ActiveBorderThickness = 1; InpBtn.ActiveCornerRadius = 20; InpBtn.ActiveFillColor = System.Drawing.Color.Turquoise; InpBtn.ActiveForecolor = System.Drawing.Color.Transparent; InpBtn.ActiveLineColor = System.Drawing.Color.Aqua; InpBtn.BackColor = System.Drawing.Color.PowderBlue; InpBtn.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("InpBtn.BackgroundImage"))); InpBtn.ButtonText = "Input"; InpBtn.Cursor = System.Windows.Forms.Cursors.Hand; InpBtn.Font = new System.Drawing.Font("Pasajero", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); InpBtn.ForeColor = System.Drawing.Color.SeaGreen; InpBtn.IdleBorderThickness = 1; InpBtn.IdleCornerRadius = 20; InpBtn.IdleFillColor = System.Drawing.Color.White; InpBtn.IdleForecolor = System.Drawing.Color.DeepSkyBlue; InpBtn.IdleLineColor = System.Drawing.SystemColors.GrayText; InpBtn.Location = new System.Drawing.Point(190, 511); InpBtn.Margin = new System.Windows.Forms.Padding(5); InpBtn.Name = "InpBtn"; InpBtn.Size = new System.Drawing.Size(181, 41); InpBtn.TabIndex = 1; InpBtn.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; InpBtn.Click += new System.EventHandler(this.InpBtn_Click); // // StackePnl // this.StackePnl.BackColor = System.Drawing.SystemColors.ControlDark; this.StackePnl.Dock = System.Windows.Forms.DockStyle.Top; this.StackePnl.FlowDirection = System.Windows.Forms.FlowDirection.BottomUp; this.StackePnl.Location = new System.Drawing.Point(3, 3); this.StackePnl.Name = "StackePnl"; this.StackePnl.Size = new System.Drawing.Size(183, 578); this.StackePnl.TabIndex = 1; // // bunifuSeparator1 // this.bunifuSeparator1.BackColor = System.Drawing.Color.Transparent; this.bunifuSeparator1.LineColor = System.Drawing.Color.MediumTurquoise; this.bunifuSeparator1.LineThickness = 3; this.bunifuSeparator1.Location = new System.Drawing.Point(3, 554); this.bunifuSeparator1.Name = "bunifuSeparator1"; this.bunifuSeparator1.Size = new System.Drawing.Size(534, 20); this.bunifuSeparator1.TabIndex = 3; this.bunifuSeparator1.Transparency = 255; this.bunifuSeparator1.Vertical = false; this.bunifuSeparator1.Load += new System.EventHandler(this.bunifuSeparator1_Load); // // bunifuImageButton1 // this.bunifuImageButton1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.bunifuImageButton1.BackColor = System.Drawing.Color.Transparent; this.bunifuImageButton1.Image = ((System.Drawing.Image)(resources.GetObject("bunifuImageButton1.Image"))); this.bunifuImageButton1.ImageActive = null; this.bunifuImageButton1.Location = new System.Drawing.Point(467, 495); this.bunifuImageButton1.Name = "bunifuImageButton1"; this.bunifuImageButton1.Size = new System.Drawing.Size(74, 54); this.bunifuImageButton1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; this.bunifuImageButton1.TabIndex = 10; this.bunifuImageButton1.TabStop = false; this.bunifuImageButton1.Zoom = 10; this.bunifuImageButton1.Click += new System.EventHandler(this.bunifuImageButton1_Click); // // inpbox // this.inpbox.BackColor = System.Drawing.Color.AliceBlue; this.inpbox.Cursor = System.Windows.Forms.Cursors.IBeam; this.inpbox.Font = new System.Drawing.Font("Pasajero", 18F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.inpbox.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.inpbox.HintForeColor = System.Drawing.Color.Empty; this.inpbox.HintText = ""; this.inpbox.isPassword = false; this.inpbox.LineFocusedColor = System.Drawing.Color.LightSkyBlue; this.inpbox.LineIdleColor = System.Drawing.Color.DeepSkyBlue; this.inpbox.LineMouseHoverColor = System.Drawing.Color.AliceBlue; this.inpbox.LineThickness = 6; this.inpbox.Location = new System.Drawing.Point(81, 461); this.inpbox.Margin = new System.Windows.Forms.Padding(4); this.inpbox.Name = "inpbox"; this.inpbox.Size = new System.Drawing.Size(379, 41); this.inpbox.TabIndex = 0; this.inpbox.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; // // BracketBalancer // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(919, 584); this.Controls.Add(this.tableLayoutPanel1); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; this.Name = "BracketBalancer"; this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "BracketBalancer"; this.tableLayoutPanel1.ResumeLayout(false); panel2.ResumeLayout(false); panel2.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.bunifuImageButton1)).EndInit(); this.ResumeLayout(false); }
/// <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(Send_Picture)); this.bunifuElipse1 = new Bunifu.Framework.UI.BunifuElipse(this.components); this.txt_Admissionid = new Bunifu.Framework.UI.BunifuMaterialTextbox(); this.btn_ٍSelectpicture = new Bunifu.Framework.UI.BunifuThinButton2(); this.pictureBox1 = new System.Windows.Forms.PictureBox(); this.btn_sendpicture = new Bunifu.Framework.UI.BunifuThinButton2(); this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog(); this.panel1 = new System.Windows.Forms.Panel(); ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit(); this.panel1.SuspendLayout(); this.SuspendLayout(); // // bunifuElipse1 // this.bunifuElipse1.ElipseRadius = 0; this.bunifuElipse1.TargetControl = this; // // txt_Admissionid // this.txt_Admissionid.Anchor = System.Windows.Forms.AnchorStyles.Top; this.txt_Admissionid.Cursor = System.Windows.Forms.Cursors.IBeam; this.txt_Admissionid.Font = new System.Drawing.Font("Century Gothic", 13.8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.txt_Admissionid.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.txt_Admissionid.HintForeColor = System.Drawing.Color.Empty; this.txt_Admissionid.HintText = "رقم دخولية المريض"; this.txt_Admissionid.isPassword = false; this.txt_Admissionid.LineFocusedColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); this.txt_Admissionid.LineIdleColor = System.Drawing.Color.Gray; this.txt_Admissionid.LineMouseHoverColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); this.txt_Admissionid.LineThickness = 4; this.txt_Admissionid.Location = new System.Drawing.Point(539, 19); this.txt_Admissionid.Margin = new System.Windows.Forms.Padding(6, 5, 6, 5); this.txt_Admissionid.Name = "txt_Admissionid"; this.txt_Admissionid.RightToLeft = System.Windows.Forms.RightToLeft.Yes; this.txt_Admissionid.Size = new System.Drawing.Size(220, 60); this.txt_Admissionid.TabIndex = 31; this.txt_Admissionid.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; this.txt_Admissionid.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.txt_Admissionid_KeyPress); // // btn_ٍSelectpicture // this.btn_ٍSelectpicture.ActiveBorderThickness = 1; this.btn_ٍSelectpicture.ActiveCornerRadius = 20; this.btn_ٍSelectpicture.ActiveFillColor = System.Drawing.Color.Silver; this.btn_ٍSelectpicture.ActiveForecolor = System.Drawing.Color.White; this.btn_ٍSelectpicture.ActiveLineColor = System.Drawing.Color.White; this.btn_ٍSelectpicture.Anchor = System.Windows.Forms.AnchorStyles.Top; this.btn_ٍSelectpicture.BackColor = System.Drawing.SystemColors.Control; this.btn_ٍSelectpicture.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btn_ٍSelectpicture.BackgroundImage"))); this.btn_ٍSelectpicture.ButtonText = "اختيار الصورة"; this.btn_ٍSelectpicture.Cursor = System.Windows.Forms.Cursors.Hand; this.btn_ٍSelectpicture.Font = new System.Drawing.Font("Tahoma", 12F, System.Drawing.FontStyle.Bold); this.btn_ٍSelectpicture.ForeColor = System.Drawing.Color.Black; this.btn_ٍSelectpicture.IdleBorderThickness = 1; this.btn_ٍSelectpicture.IdleCornerRadius = 20; this.btn_ٍSelectpicture.IdleFillColor = System.Drawing.Color.White; this.btn_ٍSelectpicture.IdleForecolor = System.Drawing.Color.Black; this.btn_ٍSelectpicture.IdleLineColor = System.Drawing.Color.Black; this.btn_ٍSelectpicture.Location = new System.Drawing.Point(291, 17); this.btn_ٍSelectpicture.Margin = new System.Windows.Forms.Padding(5); this.btn_ٍSelectpicture.Name = "btn_ٍSelectpicture"; this.btn_ٍSelectpicture.Size = new System.Drawing.Size(220, 66); this.btn_ٍSelectpicture.TabIndex = 30; this.btn_ٍSelectpicture.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.btn_ٍSelectpicture.Click += new System.EventHandler(this.btn_ٍSelectpicture_Click); // // pictureBox1 // this.pictureBox1.BackColor = System.Drawing.SystemColors.ActiveBorder; this.pictureBox1.Dock = System.Windows.Forms.DockStyle.Fill; this.pictureBox1.Location = new System.Drawing.Point(0, 100); this.pictureBox1.Name = "pictureBox1"; this.pictureBox1.Size = new System.Drawing.Size(800, 350); this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; this.pictureBox1.TabIndex = 32; this.pictureBox1.TabStop = false; this.pictureBox1.Click += new System.EventHandler(this.pictureBox1_Click); // // btn_sendpicture // this.btn_sendpicture.ActiveBorderThickness = 1; this.btn_sendpicture.ActiveCornerRadius = 20; this.btn_sendpicture.ActiveFillColor = System.Drawing.Color.Silver; this.btn_sendpicture.ActiveForecolor = System.Drawing.Color.White; this.btn_sendpicture.ActiveLineColor = System.Drawing.Color.White; this.btn_sendpicture.Anchor = System.Windows.Forms.AnchorStyles.Top; this.btn_sendpicture.BackColor = System.Drawing.SystemColors.Control; this.btn_sendpicture.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btn_sendpicture.BackgroundImage"))); this.btn_sendpicture.ButtonText = "إرسال النتيجة"; this.btn_sendpicture.Cursor = System.Windows.Forms.Cursors.Hand; this.btn_sendpicture.Font = new System.Drawing.Font("Tahoma", 12F, System.Drawing.FontStyle.Bold); this.btn_sendpicture.ForeColor = System.Drawing.Color.Black; this.btn_sendpicture.IdleBorderThickness = 1; this.btn_sendpicture.IdleCornerRadius = 20; this.btn_sendpicture.IdleFillColor = System.Drawing.Color.White; this.btn_sendpicture.IdleForecolor = System.Drawing.Color.Black; this.btn_sendpicture.IdleLineColor = System.Drawing.Color.Black; this.btn_sendpicture.Location = new System.Drawing.Point(40, 17); this.btn_sendpicture.Margin = new System.Windows.Forms.Padding(5); this.btn_sendpicture.Name = "btn_sendpicture"; this.btn_sendpicture.Size = new System.Drawing.Size(220, 66); this.btn_sendpicture.TabIndex = 33; this.btn_sendpicture.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.btn_sendpicture.Click += new System.EventHandler(this.btn_sendpicture_Click); // // openFileDialog1 // this.openFileDialog1.FileName = "openFileDialog1"; // // panel1 // this.panel1.Controls.Add(this.btn_sendpicture); this.panel1.Controls.Add(this.btn_ٍSelectpicture); this.panel1.Controls.Add(this.txt_Admissionid); 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(800, 100); this.panel1.TabIndex = 34; // // Send_Picture // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(800, 450); this.Controls.Add(this.pictureBox1); this.Controls.Add(this.panel1); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; this.Name = "Send_Picture"; this.Text = "Sen_Picture"; ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit(); this.panel1.ResumeLayout(false); 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 OgeOlustur(DateTime entryDate, string strMetin, int isOpen) { Panel subitem_item = new Panel(); BunifuSeparator subitem_seperator = new BunifuSeparator(); Label subitem_date = new Label(); Panel subitem_panel_textframe = new Panel(); Panel subpanel_item_panel_rightbutton = new Panel(); Bunifu.Framework.UI.BunifuThinButton2 subitem_button_rightbutton = new Bunifu.Framework.UI.BunifuThinButton2(); // // subitem_item // if (subitem_count % 2 == 0) { subitem_item.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(220)))), ((int)(((byte)(215))))); } else { subitem_item.BackColor = Color.White; } subitem_count++; subitem_item.Controls.Add(subitem_panel_textframe); subitem_item.Controls.Add(subpanel_item_panel_rightbutton); subitem_item.Controls.Add(subitem_seperator); subitem_item.Controls.Add(subitem_date); subitem_item.Margin = new System.Windows.Forms.Padding(0); subitem_item.Name = "subitem_item"; subitem_item.Size = new System.Drawing.Size(805, 40); subitem_item.Tag = isOpen; // // subitem_seperator // subitem_seperator.BackColor = System.Drawing.Color.Transparent; subitem_seperator.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; subitem_seperator.LineColor = System.Drawing.Color.Black; subitem_seperator.LineStyle = Bunifu.UI.WinForms.BunifuSeparator.LineStyles.DoubleEdgeFaded; subitem_seperator.LineThickness = 1; subitem_seperator.Location = new System.Drawing.Point(148, 5); subitem_seperator.Name = "subitem_seperator"; subitem_seperator.Orientation = Bunifu.UI.WinForms.BunifuSeparator.LineOrientation.Vertical; subitem_seperator.Size = new System.Drawing.Size(32, 1); subitem_seperator.TabIndex = 1; // // subitem_date // subitem_date.AutoSize = true; subitem_date.Font = new System.Drawing.Font("Microsoft Sans Serif", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(162))); subitem_date.Location = new System.Drawing.Point(6, 11); subitem_date.Name = "subitem_date"; subitem_date.Size = new System.Drawing.Size(112, 18); subitem_date.TabIndex = 0; subitem_date.Text = entryDate.ToString(); // // subpanel_item_panel_rightbutton // subpanel_item_panel_rightbutton.Controls.Add(subitem_button_rightbutton); subpanel_item_panel_rightbutton.Dock = System.Windows.Forms.DockStyle.Right; subpanel_item_panel_rightbutton.Location = new System.Drawing.Point(673, 0); subpanel_item_panel_rightbutton.Name = "subpanel_item_panel_rightbutton"; subpanel_item_panel_rightbutton.Padding = new System.Windows.Forms.Padding(1); subpanel_item_panel_rightbutton.Size = new System.Drawing.Size(60, 40); subpanel_item_panel_rightbutton.TabIndex = 3; subpanel_item_panel_rightbutton.BackColor = Color.Transparent; subpanel_item_panel_rightbutton.Visible = false; // // subitem_button_rightbutton // subitem_button_rightbutton.ActiveBorderThickness = 1; subitem_button_rightbutton.ActiveCornerRadius = 20; subitem_button_rightbutton.ActiveFillColor = System.Drawing.Color.SeaGreen; subitem_button_rightbutton.ActiveForecolor = System.Drawing.Color.White; subitem_button_rightbutton.ActiveLineColor = System.Drawing.Color.SeaGreen; subitem_button_rightbutton.BackColor = Color.Transparent; subitem_button_rightbutton.ButtonText = "İncele"; subitem_button_rightbutton.Cursor = System.Windows.Forms.Cursors.Hand; subitem_button_rightbutton.Dock = System.Windows.Forms.DockStyle.Fill; subitem_button_rightbutton.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); subitem_button_rightbutton.ForeColor = System.Drawing.Color.SeaGreen; subitem_button_rightbutton.IdleBorderThickness = 1; subitem_button_rightbutton.IdleCornerRadius = 20; subitem_button_rightbutton.IdleFillColor = System.Drawing.Color.White; subitem_button_rightbutton.IdleForecolor = System.Drawing.Color.SeaGreen; subitem_button_rightbutton.IdleLineColor = System.Drawing.Color.SeaGreen; subitem_button_rightbutton.Location = new System.Drawing.Point(1, 1); subitem_button_rightbutton.Margin = new System.Windows.Forms.Padding(5); subitem_button_rightbutton.Name = "subitem_button_rightbutton"; subitem_button_rightbutton.Size = new System.Drawing.Size(120, 38); subitem_button_rightbutton.TabIndex = 0; subitem_button_rightbutton.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; subitem_button_rightbutton.Click += new EventHandler(Subitem_button_rightbutton_Click); subitem_button_rightbutton.Visible = false; // // subitem_panel_textframe // subitem_panel_textframe.Dock = System.Windows.Forms.DockStyle.Right; subitem_panel_textframe.Location = new System.Drawing.Point(20, 0); subitem_panel_textframe.Name = "subitem_panel_textframe"; subitem_panel_textframe.Padding = new System.Windows.Forms.Padding(1); subitem_panel_textframe.Size = new System.Drawing.Size(650, 40); subitem_panel_textframe.TabIndex = 4; subitem_panel_textframe.Paint += new PaintEventHandler(AddPaintedText); text = strMetin; subitem_seperator.Orientation = BunifuSeparator.LineOrientation.Vertical; this.vscrollbar1.LargeChange = this.vscrollbar1.Maximum / 2; p_panel.Controls.Add(subitem_item); p_panel.Refresh(); }
private Bunifu.Framework.UI.BunifuThinButton2 initButtons(Bunifu.Framework.UI.BunifuThinButton2 btn, TYPES type) { if (btn == null) { btn = new Bunifu.Framework.UI.BunifuThinButton2(); } string text = ""; int width = 0, height = 0, locY = 0, locX = 0; Color lineColor = Color.Transparent, textColor = Color.Transparent; switch (type) { case TYPES.SAVE: text = "שמור"; width = (int)WIDTHS.SAVE; lineColor = Color.DeepSkyBlue; textColor = Color.SkyBlue; locX = 0; // btn.Click += new EventHandler(saveData); break; case TYPES.LOAD: text = "טען"; width = (int)WIDTHS.LOAD; lineColor = Color.SeaGreen; textColor = Color.Aquamarine; locX = 1; // btn.Click += new EventHandler(loadData); break; case TYPES.RESET: text = "אפס"; width = (int)WIDTHS.RESET; lineColor = Color.Crimson; textColor = Color.Pink; locX = 2; // btn.Click += new EventHandler(resetData); break; default: break; } height = HEIGHT_ROW - 10; btn.BackColor = Color.Transparent; btn.IdleLineColor = lineColor; btn.ActiveLineColor = textColor; btn.IdleForecolor = textColor; btn.ActiveForecolor = Color.White; btn.IdleFillColor = Color.Transparent; btn.ActiveFillColor = lineColor; btn.AutoSize = false; btn.Width = width; btn.Height = height; btn.IdleBorderThickness = 2; btn.ActiveBorderThickness = 2; btn.IdleCornerRadius = 10; btn.ActiveCornerRadius = 10; btn.ButtonText = text.ToString(); btn.TextAlign = ContentAlignment.MiddleCenter; btn.Location = new Point(locX, locY); btn.RightToLeft = System.Windows.Forms.RightToLeft.Yes; return(btn); }
public void ChangeButtonLocation(Bunifu.Framework.UI.BunifuThinButton2 A, int X, int Y) { A.Location = new Point(X, Y); }
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); }
private void Acomodar_cajas() { String sele = tmp.selectedValue;//obtiene elvalor del combobox tmp switch (sele) { case "2/4": compas = 2; break; case "3/4": compas = 3; break; case "4/4": compas = 4; break; } int phorizontal = 17; //posicion horizontal de cada rectangulo for (int k = 0; k < compas; k++) //imprime todos los rectangulos //acomoda las cajas de los clicks { cajas[k] = new Bunifu.Framework.UI.BunifuThinButton2(); cajas[k].ActiveBorderThickness = 1; cajas[k].ActiveCornerRadius = 20; cajas[k].ActiveFillColor = Color.SeaGreen; cajas[k].ActiveForecolor = Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); cajas[k].ActiveLineColor = Color.SeaGreen; cajas[k].Anchor = AnchorStyles.Top | AnchorStyles.Bottom; cajas[k].BackColor = Color.FromArgb(((int)(((byte)(37)))), ((int)(((byte)(46)))), ((int)(((byte)(59))))); cajas[k].ButtonText = ""; cajas[k].Cursor = Cursors.Hand; paneltransition.SetDecoration(cajas[k], BunifuAnimatorNS.DecorationType.None); cajas[k].Font = new Font("Century Gothic", 12F, FontStyle.Regular, GraphicsUnit.Point, ((byte)(0))); cajas[k].ForeColor = Color.SeaGreen; cajas[k].IdleBorderThickness = 1; cajas[k].IdleCornerRadius = 20; cajas[k].IdleFillColor = Color.Transparent; cajas[k].IdleForecolor = Color.White; cajas[k].IdleLineColor = Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(176)))), ((int)(((byte)(80))))); cajas[k].Location = new Point(phorizontal, 4); cajas[k].Margin = new Padding(5); if (panel3.Height == 173) { cajas[k].Size = new Size(80, 163); } else { cajas[k].Size = new Size(80, 78); } cajas[k].TabIndex = 4; cajas[k].TextAlign = ContentAlignment.MiddleCenter; separador_monitores.SendToBack(); separador_monitores.Controls.Add(cajas[k]); //muestra las cajas en el cajas[k].BringToFront(); phorizontal += 200; //aumenta para acomodar la siguiente caja } }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form3)); this.textBox1 = new System.Windows.Forms.TextBox(); this.textBox2 = new System.Windows.Forms.TextBox(); this.label1 = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label(); this.bunifuThinButton21 = new Bunifu.Framework.UI.BunifuThinButton2(); this.SuspendLayout(); // // textBox1 // this.textBox1.Location = new System.Drawing.Point(55, 69); this.textBox1.Name = "textBox1"; this.textBox1.Size = new System.Drawing.Size(355, 20); this.textBox1.TabIndex = 1; // // textBox2 // this.textBox2.Location = new System.Drawing.Point(55, 141); this.textBox2.Multiline = true; this.textBox2.Name = "textBox2"; this.textBox2.ScrollBars = System.Windows.Forms.ScrollBars.Vertical; this.textBox2.Size = new System.Drawing.Size(355, 222); this.textBox2.TabIndex = 2; // // label1 // this.label1.AutoSize = true; this.label1.Location = new System.Drawing.Point(70, 42); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(31, 13); this.label1.TabIndex = 4; this.label1.Text = "Titre:"; // // label2 // this.label2.AutoSize = true; this.label2.Location = new System.Drawing.Point(70, 114); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(37, 13); this.label2.TabIndex = 5; this.label2.Text = "Parole"; // // bunifuThinButton21 // this.bunifuThinButton21.ActiveBorderThickness = 1; this.bunifuThinButton21.ActiveCornerRadius = 20; this.bunifuThinButton21.ActiveFillColor = System.Drawing.Color.SeaGreen; this.bunifuThinButton21.ActiveForecolor = System.Drawing.Color.White; this.bunifuThinButton21.ActiveLineColor = System.Drawing.Color.SeaGreen; this.bunifuThinButton21.BackColor = System.Drawing.SystemColors.Control; this.bunifuThinButton21.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("bunifuThinButton21.BackgroundImage"))); this.bunifuThinButton21.ButtonText = "Ajouter"; this.bunifuThinButton21.Cursor = System.Windows.Forms.Cursors.Hand; this.bunifuThinButton21.Font = new System.Drawing.Font("Century Gothic", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.bunifuThinButton21.ForeColor = System.Drawing.Color.SeaGreen; this.bunifuThinButton21.IdleBorderThickness = 1; this.bunifuThinButton21.IdleCornerRadius = 20; this.bunifuThinButton21.IdleFillColor = System.Drawing.Color.White; this.bunifuThinButton21.IdleForecolor = System.Drawing.Color.SeaGreen; this.bunifuThinButton21.IdleLineColor = System.Drawing.Color.SeaGreen; this.bunifuThinButton21.Location = new System.Drawing.Point(229, 371); this.bunifuThinButton21.Margin = new System.Windows.Forms.Padding(5); this.bunifuThinButton21.Name = "bunifuThinButton21"; this.bunifuThinButton21.Size = new System.Drawing.Size(181, 41); this.bunifuThinButton21.TabIndex = 6; this.bunifuThinButton21.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.bunifuThinButton21.Click += new System.EventHandler(this.bunifuThinButton21_Click); // // Form3 // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(461, 426); this.Controls.Add(this.bunifuThinButton21); this.Controls.Add(this.label2); this.Controls.Add(this.label1); this.Controls.Add(this.textBox2); this.Controls.Add(this.textBox1); this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.Name = "Form3"; this.Text = "Ajouter"; this.Load += new System.EventHandler(this.Form3_Load); this.ResumeLayout(false); this.PerformLayout(); }
private void InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmPago)); this.datePay = new Bunifu.Framework.UI.BunifuDatepicker(); this.label3 = new System.Windows.Forms.Label(); this.label4 = new System.Windows.Forms.Label(); this.label5 = new System.Windows.Forms.Label(); this.btnAddPay = new Bunifu.Framework.UI.BunifuThinButton2(); this.btnDeletePay = new Bunifu.Framework.UI.BunifuThinButton2(); this.txtboxPay = new Bunifu.Framework.UI.BunifuMetroTextbox(); this.txtboxBank = new Bunifu.Framework.UI.BunifuMetroTextbox(); this.btnEditPay = new Bunifu.Framework.UI.BunifuThinButton2(); this.txtboxIDBuy = new Bunifu.Framework.UI.BunifuMetroTextbox(); this.label2 = new System.Windows.Forms.Label(); this.txtBoxIDPay = new Bunifu.Framework.UI.BunifuMetroTextbox(); this.label6 = new System.Windows.Forms.Label(); this.btnVerRegistros = new Bunifu.Framework.UI.BunifuThinButton2(); this.gvPayDetail = new System.Windows.Forms.DataGridView(); this.btnBuscar = new Bunifu.Framework.UI.BunifuThinButton2(); this.label7 = new System.Windows.Forms.Label(); this.txtboxSearch = new Bunifu.Framework.UI.BunifuMetroTextbox(); ((System.ComponentModel.ISupportInitialize)(this.gvPayDetail)).BeginInit(); this.SuspendLayout(); // // label1 // this.label1.Location = new System.Drawing.Point(242, 18); this.label1.Size = new System.Drawing.Size(112, 36); this.label1.Text = "PAGO"; // // datePay // this.datePay.BackColor = System.Drawing.Color.SeaGreen; this.datePay.BorderRadius = 0; this.datePay.ForeColor = System.Drawing.Color.White; this.datePay.Format = System.Windows.Forms.DateTimePickerFormat.Time; this.datePay.FormatCustom = null; this.datePay.Location = new System.Drawing.Point(140, 325); this.datePay.Name = "datePay"; this.datePay.Size = new System.Drawing.Size(250, 36); this.datePay.TabIndex = 17; this.datePay.Value = new System.DateTime(2020, 7, 4, 10, 56, 28, 132); // // label3 // this.label3.AutoSize = true; this.label3.Font = new System.Drawing.Font("Coolvetica Rg", 18F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label3.ForeColor = System.Drawing.SystemColors.GrayText; this.label3.Location = new System.Drawing.Point(25, 213); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(64, 29); this.label3.TabIndex = 19; this.label3.Text = "Pago"; this.label3.Click += new System.EventHandler(this.label3_Click); // // label4 // this.label4.AutoSize = true; this.label4.Font = new System.Drawing.Font("Coolvetica Rg", 18F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label4.ForeColor = System.Drawing.SystemColors.GrayText; this.label4.Location = new System.Drawing.Point(25, 277); this.label4.Name = "label4"; this.label4.Size = new System.Drawing.Size(76, 29); this.label4.TabIndex = 20; this.label4.Text = "Banco"; // // label5 // this.label5.AutoSize = true; this.label5.Font = new System.Drawing.Font("Coolvetica Rg", 18F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label5.ForeColor = System.Drawing.SystemColors.GrayText; this.label5.Location = new System.Drawing.Point(25, 332); this.label5.Name = "label5"; this.label5.Size = new System.Drawing.Size(72, 29); this.label5.TabIndex = 21; this.label5.Text = "Fecha"; // // btnAddPay // this.btnAddPay.ActiveBorderThickness = 1; this.btnAddPay.ActiveCornerRadius = 20; this.btnAddPay.ActiveFillColor = System.Drawing.Color.SeaGreen; this.btnAddPay.ActiveForecolor = System.Drawing.Color.White; this.btnAddPay.ActiveLineColor = System.Drawing.Color.SeaGreen; this.btnAddPay.BackColor = System.Drawing.SystemColors.Control; this.btnAddPay.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnAddPay.BackgroundImage"))); this.btnAddPay.ButtonText = "Agregar"; this.btnAddPay.Cursor = System.Windows.Forms.Cursors.Hand; this.btnAddPay.Font = new System.Drawing.Font("Century Gothic", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.btnAddPay.ForeColor = System.Drawing.Color.SeaGreen; this.btnAddPay.IdleBorderThickness = 1; this.btnAddPay.IdleCornerRadius = 20; this.btnAddPay.IdleFillColor = System.Drawing.Color.White; this.btnAddPay.IdleForecolor = System.Drawing.Color.SeaGreen; this.btnAddPay.IdleLineColor = System.Drawing.Color.SeaGreen; this.btnAddPay.Location = new System.Drawing.Point(17, 427); this.btnAddPay.Margin = new System.Windows.Forms.Padding(5); this.btnAddPay.Name = "btnAddPay"; this.btnAddPay.Size = new System.Drawing.Size(106, 41); this.btnAddPay.TabIndex = 22; this.btnAddPay.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.btnAddPay.Click += new System.EventHandler(this.btnAceptarPago_Click); // // btnDeletePay // this.btnDeletePay.ActiveBorderThickness = 1; this.btnDeletePay.ActiveCornerRadius = 20; this.btnDeletePay.ActiveFillColor = System.Drawing.Color.SeaGreen; this.btnDeletePay.ActiveForecolor = System.Drawing.Color.White; this.btnDeletePay.ActiveLineColor = System.Drawing.Color.SeaGreen; this.btnDeletePay.BackColor = System.Drawing.SystemColors.Control; this.btnDeletePay.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnDeletePay.BackgroundImage"))); this.btnDeletePay.ButtonText = "Eliminar"; this.btnDeletePay.Cursor = System.Windows.Forms.Cursors.Hand; this.btnDeletePay.Font = new System.Drawing.Font("Century Gothic", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.btnDeletePay.ForeColor = System.Drawing.Color.SeaGreen; this.btnDeletePay.IdleBorderThickness = 1; this.btnDeletePay.IdleCornerRadius = 20; this.btnDeletePay.IdleFillColor = System.Drawing.Color.White; this.btnDeletePay.IdleForecolor = System.Drawing.Color.SeaGreen; this.btnDeletePay.IdleLineColor = System.Drawing.Color.SeaGreen; this.btnDeletePay.Location = new System.Drawing.Point(580, 427); this.btnDeletePay.Margin = new System.Windows.Forms.Padding(5); this.btnDeletePay.Name = "btnDeletePay"; this.btnDeletePay.Size = new System.Drawing.Size(106, 41); this.btnDeletePay.TabIndex = 24; this.btnDeletePay.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.btnDeletePay.Click += new System.EventHandler(this.btnDeletePay_Click); // // txtboxPay // this.txtboxPay.BorderColorFocused = System.Drawing.Color.Blue; this.txtboxPay.BorderColorIdle = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.txtboxPay.BorderColorMouseHover = System.Drawing.Color.Blue; this.txtboxPay.BorderThickness = 3; this.txtboxPay.Cursor = System.Windows.Forms.Cursors.IBeam; this.txtboxPay.Font = new System.Drawing.Font("Century Gothic", 9.75F); this.txtboxPay.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.txtboxPay.isPassword = false; this.txtboxPay.Location = new System.Drawing.Point(140, 206); this.txtboxPay.Margin = new System.Windows.Forms.Padding(4); this.txtboxPay.Name = "txtboxPay"; this.txtboxPay.Size = new System.Drawing.Size(250, 36); this.txtboxPay.TabIndex = 25; this.txtboxPay.TextAlign = System.Windows.Forms.HorizontalAlignment.Left; // // txtboxBank // this.txtboxBank.BorderColorFocused = System.Drawing.Color.Blue; this.txtboxBank.BorderColorIdle = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.txtboxBank.BorderColorMouseHover = System.Drawing.Color.Blue; this.txtboxBank.BorderThickness = 3; this.txtboxBank.Cursor = System.Windows.Forms.Cursors.IBeam; this.txtboxBank.Font = new System.Drawing.Font("Century Gothic", 9.75F); this.txtboxBank.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.txtboxBank.isPassword = false; this.txtboxBank.Location = new System.Drawing.Point(140, 270); this.txtboxBank.Margin = new System.Windows.Forms.Padding(4); this.txtboxBank.Name = "txtboxBank"; this.txtboxBank.Size = new System.Drawing.Size(250, 36); this.txtboxBank.TabIndex = 26; this.txtboxBank.TextAlign = System.Windows.Forms.HorizontalAlignment.Left; // // btnEditPay // this.btnEditPay.ActiveBorderThickness = 1; this.btnEditPay.ActiveCornerRadius = 20; this.btnEditPay.ActiveFillColor = System.Drawing.Color.SeaGreen; this.btnEditPay.ActiveForecolor = System.Drawing.Color.White; this.btnEditPay.ActiveLineColor = System.Drawing.Color.SeaGreen; this.btnEditPay.BackColor = System.Drawing.SystemColors.Control; this.btnEditPay.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnEditPay.BackgroundImage"))); this.btnEditPay.ButtonText = "Modificar"; this.btnEditPay.Cursor = System.Windows.Forms.Cursors.Hand; this.btnEditPay.Font = new System.Drawing.Font("Century Gothic", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.btnEditPay.ForeColor = System.Drawing.Color.SeaGreen; this.btnEditPay.IdleBorderThickness = 1; this.btnEditPay.IdleCornerRadius = 20; this.btnEditPay.IdleFillColor = System.Drawing.Color.White; this.btnEditPay.IdleForecolor = System.Drawing.Color.SeaGreen; this.btnEditPay.IdleLineColor = System.Drawing.Color.SeaGreen; this.btnEditPay.Location = new System.Drawing.Point(464, 427); this.btnEditPay.Margin = new System.Windows.Forms.Padding(5); this.btnEditPay.Name = "btnEditPay"; this.btnEditPay.Size = new System.Drawing.Size(106, 41); this.btnEditPay.TabIndex = 27; this.btnEditPay.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.btnEditPay.Click += new System.EventHandler(this.btnEditPay_Click); // // txtboxIDBuy // this.txtboxIDBuy.BorderColorFocused = System.Drawing.Color.Blue; this.txtboxIDBuy.BorderColorIdle = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.txtboxIDBuy.BorderColorMouseHover = System.Drawing.Color.Blue; this.txtboxIDBuy.BorderThickness = 3; this.txtboxIDBuy.Cursor = System.Windows.Forms.Cursors.IBeam; this.txtboxIDBuy.Font = new System.Drawing.Font("Century Gothic", 9.75F); this.txtboxIDBuy.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.txtboxIDBuy.isPassword = false; this.txtboxIDBuy.Location = new System.Drawing.Point(140, 149); this.txtboxIDBuy.Margin = new System.Windows.Forms.Padding(4); this.txtboxIDBuy.Name = "txtboxIDBuy"; this.txtboxIDBuy.Size = new System.Drawing.Size(250, 36); this.txtboxIDBuy.TabIndex = 29; this.txtboxIDBuy.TextAlign = System.Windows.Forms.HorizontalAlignment.Left; // // label2 // this.label2.AutoSize = true; this.label2.Font = new System.Drawing.Font("Coolvetica Rg", 18F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label2.ForeColor = System.Drawing.SystemColors.GrayText; this.label2.Location = new System.Drawing.Point(25, 156); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(116, 29); this.label2.TabIndex = 28; this.label2.Text = "ID Compra"; // // txtBoxIDPay // this.txtBoxIDPay.BorderColorFocused = System.Drawing.Color.Blue; this.txtBoxIDPay.BorderColorIdle = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.txtBoxIDPay.BorderColorMouseHover = System.Drawing.Color.Blue; this.txtBoxIDPay.BorderThickness = 3; this.txtBoxIDPay.Cursor = System.Windows.Forms.Cursors.IBeam; this.txtBoxIDPay.Font = new System.Drawing.Font("Century Gothic", 9.75F); this.txtBoxIDPay.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.txtBoxIDPay.isPassword = false; this.txtBoxIDPay.Location = new System.Drawing.Point(140, 90); this.txtBoxIDPay.Margin = new System.Windows.Forms.Padding(4); this.txtBoxIDPay.Name = "txtBoxIDPay"; this.txtBoxIDPay.Size = new System.Drawing.Size(250, 36); this.txtBoxIDPay.TabIndex = 31; this.txtBoxIDPay.TextAlign = System.Windows.Forms.HorizontalAlignment.Left; // // label6 // this.label6.AutoSize = true; this.label6.Font = new System.Drawing.Font("Coolvetica Rg", 18F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label6.ForeColor = System.Drawing.SystemColors.GrayText; this.label6.Location = new System.Drawing.Point(25, 97); this.label6.Name = "label6"; this.label6.Size = new System.Drawing.Size(89, 29); this.label6.TabIndex = 30; this.label6.Text = "ID Pago"; // // btnVerRegistros // this.btnVerRegistros.ActiveBorderThickness = 1; this.btnVerRegistros.ActiveCornerRadius = 20; this.btnVerRegistros.ActiveFillColor = System.Drawing.Color.SeaGreen; this.btnVerRegistros.ActiveForecolor = System.Drawing.Color.White; this.btnVerRegistros.ActiveLineColor = System.Drawing.Color.SeaGreen; this.btnVerRegistros.BackColor = System.Drawing.SystemColors.Control; this.btnVerRegistros.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnVerRegistros.BackgroundImage"))); this.btnVerRegistros.ButtonText = "Ver Registros"; this.btnVerRegistros.Cursor = System.Windows.Forms.Cursors.Hand; this.btnVerRegistros.Font = new System.Drawing.Font("Century Gothic", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.btnVerRegistros.ForeColor = System.Drawing.Color.SeaGreen; this.btnVerRegistros.IdleBorderThickness = 1; this.btnVerRegistros.IdleCornerRadius = 20; this.btnVerRegistros.IdleFillColor = System.Drawing.Color.White; this.btnVerRegistros.IdleForecolor = System.Drawing.Color.SeaGreen; this.btnVerRegistros.IdleLineColor = System.Drawing.Color.SeaGreen; this.btnVerRegistros.Location = new System.Drawing.Point(140, 427); this.btnVerRegistros.Margin = new System.Windows.Forms.Padding(4); this.btnVerRegistros.Name = "btnVerRegistros"; this.btnVerRegistros.Size = new System.Drawing.Size(122, 41); this.btnVerRegistros.TabIndex = 32; this.btnVerRegistros.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.btnVerRegistros.Click += new System.EventHandler(this.btnVerRegistros_Click); // // gvPayDetail // this.gvPayDetail.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.gvPayDetail.Location = new System.Drawing.Point(397, 90); this.gvPayDetail.Name = "gvPayDetail"; this.gvPayDetail.Size = new System.Drawing.Size(434, 271); this.gvPayDetail.TabIndex = 33; // // btnBuscar // this.btnBuscar.ActiveBorderThickness = 1; this.btnBuscar.ActiveCornerRadius = 20; this.btnBuscar.ActiveFillColor = System.Drawing.Color.SeaGreen; this.btnBuscar.ActiveForecolor = System.Drawing.Color.White; this.btnBuscar.ActiveLineColor = System.Drawing.Color.SeaGreen; this.btnBuscar.BackColor = System.Drawing.SystemColors.Control; this.btnBuscar.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnBuscar.BackgroundImage"))); this.btnBuscar.ButtonText = "Buscar"; this.btnBuscar.Cursor = System.Windows.Forms.Cursors.Hand; this.btnBuscar.Font = new System.Drawing.Font("Century Gothic", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.btnBuscar.ForeColor = System.Drawing.Color.SeaGreen; this.btnBuscar.IdleBorderThickness = 1; this.btnBuscar.IdleCornerRadius = 20; this.btnBuscar.IdleFillColor = System.Drawing.Color.White; this.btnBuscar.IdleForecolor = System.Drawing.Color.SeaGreen; this.btnBuscar.IdleLineColor = System.Drawing.Color.SeaGreen; this.btnBuscar.Location = new System.Drawing.Point(695, 428); this.btnBuscar.Margin = new System.Windows.Forms.Padding(4); this.btnBuscar.Name = "btnBuscar"; this.btnBuscar.Size = new System.Drawing.Size(107, 41); this.btnBuscar.TabIndex = 34; this.btnBuscar.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.btnBuscar.Click += new System.EventHandler(this.btnBuscar_Click); // // label7 // this.label7.AutoSize = true; this.label7.Font = new System.Drawing.Font("Coolvetica Rg", 18F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label7.ForeColor = System.Drawing.SystemColors.GrayText; this.label7.Location = new System.Drawing.Point(472, 392); this.label7.Name = "label7"; this.label7.Size = new System.Drawing.Size(200, 29); this.label7.TabIndex = 36; this.label7.Text = "Ingrese id del pago"; // // txtboxSearch // this.txtboxSearch.BorderColorFocused = System.Drawing.Color.Blue; this.txtboxSearch.BorderColorIdle = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.txtboxSearch.BorderColorMouseHover = System.Drawing.Color.Blue; this.txtboxSearch.BorderThickness = 3; this.txtboxSearch.Cursor = System.Windows.Forms.Cursors.IBeam; this.txtboxSearch.Font = new System.Drawing.Font("Century Gothic", 9.75F); this.txtboxSearch.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.txtboxSearch.isPassword = false; this.txtboxSearch.Location = new System.Drawing.Point(695, 392); this.txtboxSearch.Margin = new System.Windows.Forms.Padding(4); this.txtboxSearch.Name = "txtboxSearch"; this.txtboxSearch.Size = new System.Drawing.Size(107, 29); this.txtboxSearch.TabIndex = 37; this.txtboxSearch.TextAlign = System.Windows.Forms.HorizontalAlignment.Left; // // frmPago // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.ClientSize = new System.Drawing.Size(843, 482); this.Controls.Add(this.txtboxSearch); this.Controls.Add(this.label7); this.Controls.Add(this.btnBuscar); this.Controls.Add(this.gvPayDetail); this.Controls.Add(this.btnVerRegistros); this.Controls.Add(this.txtBoxIDPay); this.Controls.Add(this.label6); this.Controls.Add(this.txtboxIDBuy); this.Controls.Add(this.label2); this.Controls.Add(this.btnEditPay); this.Controls.Add(this.txtboxBank); this.Controls.Add(this.txtboxPay); this.Controls.Add(this.btnDeletePay); this.Controls.Add(this.btnAddPay); this.Controls.Add(this.label5); this.Controls.Add(this.label4); this.Controls.Add(this.label3); this.Controls.Add(this.datePay); this.Name = "frmPago"; this.Load += new System.EventHandler(this.frmPago_Load); this.Controls.SetChildIndex(this.datePay, 0); this.Controls.SetChildIndex(this.label3, 0); this.Controls.SetChildIndex(this.label4, 0); this.Controls.SetChildIndex(this.label5, 0); this.Controls.SetChildIndex(this.btnAddPay, 0); this.Controls.SetChildIndex(this.btnDeletePay, 0); this.Controls.SetChildIndex(this.txtboxPay, 0); this.Controls.SetChildIndex(this.txtboxBank, 0); this.Controls.SetChildIndex(this.btnEditPay, 0); this.Controls.SetChildIndex(this.label2, 0); this.Controls.SetChildIndex(this.txtboxIDBuy, 0); this.Controls.SetChildIndex(this.label6, 0); this.Controls.SetChildIndex(this.txtBoxIDPay, 0); this.Controls.SetChildIndex(this.btnVerRegistros, 0); this.Controls.SetChildIndex(this.gvPayDetail, 0); this.Controls.SetChildIndex(this.btnBuscar, 0); this.Controls.SetChildIndex(this.label7, 0); this.Controls.SetChildIndex(this.txtboxSearch, 0); ((System.ComponentModel.ISupportInitialize)(this.gvPayDetail)).EndInit(); this.ResumeLayout(false); this.PerformLayout(); }
private void ChangeButtonColor(Bunifu.Framework.UI.BunifuThinButton2 button, Color color) { button.IdleForecolor = color; button.IdleLineColor = color; button.ActiveFillColor = color; }
private void InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Emp_CustomerInfo)); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle(); this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel(); this.tableLayoutPanel2 = new System.Windows.Forms.TableLayoutPanel(); this.bunifuImageButton1 = new Bunifu.Framework.UI.BunifuImageButton(); this.label1 = new System.Windows.Forms.Label(); this.tableLayoutPanel3 = new System.Windows.Forms.TableLayoutPanel(); this.dgvCustomerInfo = new Bunifu.Framework.UI.BunifuCustomDataGrid(); this.tableLayoutPanel4 = new System.Windows.Forms.TableLayoutPanel(); this.btnSearch = new Bunifu.Framework.UI.BunifuThinButton2(); this.txtSearch = new Bunifu.Framework.UI.BunifuTextbox(); this.bunifuImageButton2 = new Bunifu.Framework.UI.BunifuImageButton(); this.tableLayoutPanel1.SuspendLayout(); this.tableLayoutPanel2.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.bunifuImageButton1)).BeginInit(); this.tableLayoutPanel3.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.dgvCustomerInfo)).BeginInit(); this.tableLayoutPanel4.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.bunifuImageButton2)).BeginInit(); this.SuspendLayout(); // // tableLayoutPanel1 // this.tableLayoutPanel1.ColumnCount = 1; this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F)); this.tableLayoutPanel1.Controls.Add(this.tableLayoutPanel2, 0, 0); this.tableLayoutPanel1.Controls.Add(this.tableLayoutPanel3, 0, 1); this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill; this.tableLayoutPanel1.Location = new System.Drawing.Point(0, 0); this.tableLayoutPanel1.Name = "tableLayoutPanel1"; this.tableLayoutPanel1.RowCount = 2; this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 10.13616F)); this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 89.86385F)); this.tableLayoutPanel1.Size = new System.Drawing.Size(1184, 661); this.tableLayoutPanel1.TabIndex = 0; // // tableLayoutPanel2 // this.tableLayoutPanel2.ColumnCount = 2; this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F)); this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F)); this.tableLayoutPanel2.Controls.Add(this.bunifuImageButton1, 0, 0); this.tableLayoutPanel2.Controls.Add(this.label1, 1, 0); this.tableLayoutPanel2.Dock = System.Windows.Forms.DockStyle.Fill; this.tableLayoutPanel2.Location = new System.Drawing.Point(3, 3); this.tableLayoutPanel2.Name = "tableLayoutPanel2"; this.tableLayoutPanel2.RowCount = 1; this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F)); this.tableLayoutPanel2.Size = new System.Drawing.Size(1178, 61); this.tableLayoutPanel2.TabIndex = 0; // // bunifuImageButton1 // this.bunifuImageButton1.Anchor = System.Windows.Forms.AnchorStyles.Right; this.bunifuImageButton1.BackColor = System.Drawing.Color.Transparent; this.bunifuImageButton1.Image = ((System.Drawing.Image)(resources.GetObject("bunifuImageButton1.Image"))); this.bunifuImageButton1.ImageActive = null; this.bunifuImageButton1.Location = new System.Drawing.Point(515, 5); this.bunifuImageButton1.Name = "bunifuImageButton1"; this.bunifuImageButton1.Size = new System.Drawing.Size(71, 50); this.bunifuImageButton1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; this.bunifuImageButton1.TabIndex = 2; this.bunifuImageButton1.TabStop = false; this.bunifuImageButton1.Zoom = 10; // // label1 // this.label1.Anchor = System.Windows.Forms.AnchorStyles.Left; this.label1.AutoSize = true; this.label1.Font = new System.Drawing.Font("Sitka Small", 14.25F, ((System.Drawing.FontStyle)(((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic) | System.Drawing.FontStyle.Underline))), System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label1.Location = new System.Drawing.Point(592, 16); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(239, 28); this.label1.TabIndex = 3; this.label1.Text = "Customer Information"; // // tableLayoutPanel3 // this.tableLayoutPanel3.ColumnCount = 1; this.tableLayoutPanel3.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F)); this.tableLayoutPanel3.Controls.Add(this.dgvCustomerInfo, 0, 1); this.tableLayoutPanel3.Controls.Add(this.tableLayoutPanel4, 0, 0); this.tableLayoutPanel3.Dock = System.Windows.Forms.DockStyle.Fill; this.tableLayoutPanel3.Location = new System.Drawing.Point(3, 70); this.tableLayoutPanel3.Name = "tableLayoutPanel3"; this.tableLayoutPanel3.RowCount = 2; this.tableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 13.58234F)); this.tableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 86.41766F)); this.tableLayoutPanel3.Size = new System.Drawing.Size(1178, 588); this.tableLayoutPanel3.TabIndex = 1; // // dgvCustomerInfo // this.dgvCustomerInfo.AllowUserToAddRows = false; this.dgvCustomerInfo.AllowUserToDeleteRows = false; dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.dgvCustomerInfo.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1; this.dgvCustomerInfo.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill; this.dgvCustomerInfo.BackgroundColor = System.Drawing.Color.White; this.dgvCustomerInfo.BorderStyle = System.Windows.Forms.BorderStyle.None; this.dgvCustomerInfo.CellBorderStyle = System.Windows.Forms.DataGridViewCellBorderStyle.RaisedHorizontal; this.dgvCustomerInfo.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.None; dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; dataGridViewCellStyle2.BackColor = System.Drawing.Color.DarkSlateGray; dataGridViewCellStyle2.Font = new System.Drawing.Font("Segoe Print", 11F); dataGridViewCellStyle2.ForeColor = System.Drawing.Color.White; dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight; dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText; dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.True; this.dgvCustomerInfo.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2; this.dgvCustomerInfo.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.dgvCustomerInfo.Dock = System.Windows.Forms.DockStyle.Fill; this.dgvCustomerInfo.DoubleBuffered = true; this.dgvCustomerInfo.EnableHeadersVisualStyles = false; this.dgvCustomerInfo.GridColor = System.Drawing.SystemColors.ActiveCaption; this.dgvCustomerInfo.HeaderBgColor = System.Drawing.Color.DarkSlateGray; this.dgvCustomerInfo.HeaderForeColor = System.Drawing.Color.White; this.dgvCustomerInfo.Location = new System.Drawing.Point(3, 82); this.dgvCustomerInfo.Name = "dgvCustomerInfo"; this.dgvCustomerInfo.ReadOnly = true; this.dgvCustomerInfo.RowHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.None; this.dgvCustomerInfo.RowHeadersWidth = 48; dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; dataGridViewCellStyle3.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); dataGridViewCellStyle3.SelectionBackColor = System.Drawing.Color.Blue; dataGridViewCellStyle3.SelectionForeColor = System.Drawing.Color.White; this.dgvCustomerInfo.RowsDefaultCellStyle = dataGridViewCellStyle3; this.dgvCustomerInfo.Size = new System.Drawing.Size(1172, 503); this.dgvCustomerInfo.TabIndex = 1; // // tableLayoutPanel4 // this.tableLayoutPanel4.ColumnCount = 3; this.tableLayoutPanel4.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 49.82935F)); this.tableLayoutPanel4.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 16.12628F)); this.tableLayoutPanel4.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 34.12969F)); this.tableLayoutPanel4.Controls.Add(this.btnSearch, 0, 0); this.tableLayoutPanel4.Controls.Add(this.txtSearch, 0, 0); this.tableLayoutPanel4.Controls.Add(this.bunifuImageButton2, 2, 0); this.tableLayoutPanel4.Dock = System.Windows.Forms.DockStyle.Fill; this.tableLayoutPanel4.Location = new System.Drawing.Point(3, 3); this.tableLayoutPanel4.Name = "tableLayoutPanel4"; this.tableLayoutPanel4.RowCount = 1; this.tableLayoutPanel4.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); this.tableLayoutPanel4.Size = new System.Drawing.Size(1172, 73); this.tableLayoutPanel4.TabIndex = 2; // // btnSearch // this.btnSearch.ActiveBorderThickness = 1; this.btnSearch.ActiveCornerRadius = 20; this.btnSearch.ActiveFillColor = System.Drawing.Color.SeaGreen; this.btnSearch.ActiveForecolor = System.Drawing.Color.White; this.btnSearch.ActiveLineColor = System.Drawing.Color.SeaGreen; this.btnSearch.Anchor = System.Windows.Forms.AnchorStyles.Left; this.btnSearch.BackColor = System.Drawing.SystemColors.Control; this.btnSearch.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnSearch.BackgroundImage"))); this.btnSearch.ButtonText = "Search"; this.btnSearch.Cursor = System.Windows.Forms.Cursors.Hand; this.btnSearch.Font = new System.Drawing.Font("Century Gothic", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.btnSearch.ForeColor = System.Drawing.Color.SeaGreen; this.btnSearch.IdleBorderThickness = 1; this.btnSearch.IdleCornerRadius = 20; this.btnSearch.IdleFillColor = System.Drawing.Color.White; this.btnSearch.IdleForecolor = System.Drawing.Color.SeaGreen; this.btnSearch.IdleLineColor = System.Drawing.Color.SeaGreen; this.btnSearch.Location = new System.Drawing.Point(588, 6); this.btnSearch.Margin = new System.Windows.Forms.Padding(5); this.btnSearch.Name = "btnSearch"; this.btnSearch.Size = new System.Drawing.Size(178, 60); this.btnSearch.TabIndex = 6; this.btnSearch.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.btnSearch.Click += new System.EventHandler(this.btnSearch_Click); // // txtSearch // this.txtSearch.Anchor = System.Windows.Forms.AnchorStyles.Right; this.txtSearch.BackColor = System.Drawing.Color.White; this.txtSearch.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("txtSearch.BackgroundImage"))); this.txtSearch.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; this.txtSearch.ForeColor = System.Drawing.Color.SeaGreen; this.txtSearch.Icon = ((System.Drawing.Image)(resources.GetObject("txtSearch.Icon"))); this.txtSearch.Location = new System.Drawing.Point(133, 15); this.txtSearch.Name = "txtSearch"; this.txtSearch.Size = new System.Drawing.Size(447, 42); this.txtSearch.TabIndex = 4; this.txtSearch.text = ""; // // bunifuImageButton2 // this.bunifuImageButton2.Anchor = System.Windows.Forms.AnchorStyles.Left; this.bunifuImageButton2.BackColor = System.Drawing.Color.Transparent; this.bunifuImageButton2.Image = ((System.Drawing.Image)(resources.GetObject("bunifuImageButton2.Image"))); this.bunifuImageButton2.ImageActive = null; this.bunifuImageButton2.Location = new System.Drawing.Point(774, 14); this.bunifuImageButton2.Name = "bunifuImageButton2"; this.bunifuImageButton2.Size = new System.Drawing.Size(48, 45); this.bunifuImageButton2.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; this.bunifuImageButton2.TabIndex = 7; this.bunifuImageButton2.TabStop = false; this.bunifuImageButton2.Zoom = 10; this.bunifuImageButton2.Click += new System.EventHandler(this.bunifuImageButton2_Click); // // Emp_CustomerInfo // this.ClientSize = new System.Drawing.Size(1184, 661); this.Controls.Add(this.tableLayoutPanel1); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Fixed3D; this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.Name = "Emp_CustomerInfo"; this.Load += new System.EventHandler(this.Emp_CustomerInfo_Load); this.tableLayoutPanel1.ResumeLayout(false); this.tableLayoutPanel2.ResumeLayout(false); this.tableLayoutPanel2.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.bunifuImageButton1)).EndInit(); this.tableLayoutPanel3.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.dgvCustomerInfo)).EndInit(); this.tableLayoutPanel4.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.bunifuImageButton2)).EndInit(); this.ResumeLayout(false); }
private void mes_Click(object sender, EventArgs e) { Bunifu.Framework.UI.BunifuThinButton2 clickedButton = sender as Bunifu.Framework.UI.BunifuThinButton2; string fon = Vars.mesSelec2; if (clickedButton.ButtonText == "Janeiro") { Vars.mesSelec = "1"; Vars.mesSelec2 = "Janeiro"; Vars.mesSelecArray = new string[] { "01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31", "", "", "", "" }; } if (clickedButton.ButtonText == "Fevereiro") { Vars.mesSelec = "2"; Vars.mesSelec2 = "Fevereiro"; Vars.mesSelecArray = new string[] { "", "", "", "01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "", "", "", "" }; } if (clickedButton.ButtonText == "Março") { Vars.mesSelec = "3"; Vars.mesSelec2 = "Março"; Vars.mesSelecArray = new string[] { "", "", "", "01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31", "" }; } if (clickedButton.ButtonText == "Abril") { Vars.mesSelec = "4"; Vars.mesSelec2 = "Abril"; Vars.mesSelecArray = new string[] { "30", "", "", "", "", "", "01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", }; } if (clickedButton.ButtonText == "Maio") { Vars.mesSelec = "5"; Vars.mesSelec2 = "Maio"; Vars.mesSelecArray = new string[] { "", "01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31", "", "", "" }; } if (clickedButton.ButtonText == "Junho") { Vars.mesSelec = "6"; Vars.mesSelec2 = "Junho"; Vars.mesSelecArray = new string[] { "", "", "", "", "01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "" }; } if (clickedButton.ButtonText == "Julho") { Vars.mesSelec = "7"; Vars.mesSelec2 = "Julho"; Vars.mesSelecArray = new string[] { "30", "31", "", "", "", "", "01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", }; } if (clickedButton.ButtonText == "Agosto") { Vars.mesSelec = "8"; Vars.mesSelec2 = "Agosto"; Vars.mesSelecArray = new string[] { "", "", "01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31", "", "" }; } if (clickedButton.ButtonText == "Setembro") { Vars.mesSelec = "9"; Vars.mesSelec2 = "Setembro"; Vars.mesSelecArray = new string[] { "", "", "", "", "", "01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30" }; } if (clickedButton.ButtonText == "Outubro") { Vars.mesSelec = "10"; Vars.mesSelec2 = "Outubro"; Vars.mesSelecArray = new string[] { "01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31", "", "", "", "" }; } if (clickedButton.ButtonText == "Novembro") { Vars.mesSelec = "11"; Vars.mesSelec2 = "Novembro"; Vars.mesSelecArray = new string[] { "", "", "", "01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "", "" }; } if (clickedButton.ButtonText == "Dezembro") { Vars.mesSelec = "12"; Vars.mesSelec2 = "Dezembro"; Vars.mesSelecArray = new string[35] { "31", "", "", "", "", "01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", }; } Vars.teste.Controls.Clear(); if (Vars.af.calendario == null || fon != Vars.mesSelec2) { Vars.af.calendario = new Calendario(Vars.mesSelec2) { Dock = DockStyle.Fill } } ; Vars.teste.Controls.Add(Vars.af.calendario); }