public void viewBookingDetails(Bunifu.Framework.UI.BunifuMaterialTextbox box1, Bunifu.Framework.UI.BunifuMaterialTextbox box2, ComboBox combo1, ComboBox combo2) { bool check = false; SqlConnection con = new SqlConnection("Data Source=FCIS;Initial Catalog=CarRentalSystem;Integrated Security=True"); con.Open(); SqlCommand cmd = new SqlCommand("select * from Booking", con); SqlDataReader rd = cmd.ExecuteReader(); while (rd.Read()) { if (rd[0].ToString() == combo2.SelectedItem.ToString()) { check = true; box1.Text = rd[1].ToString(); //Duration box2.Text = rd[3].ToString(); //Date combo1.Text = rd[4].ToString(); //car combo box } } if (check == false) { box1.Text = ""; box2.Text = ""; combo1.Text = ""; MessageBox.Show("ID does not exise"); } }
//Funções private void setplaceholder(Bunifu.Framework.UI.BunifuMaterialTextbox texbox, string texto) { if (texbox.Text == "") { texbox.Text = texto; texbox.TextAlign = HorizontalAlignment.Center; } }
private void removePlaceholder(Bunifu.Framework.UI.BunifuMaterialTextbox texbox, string texto) { if (texbox.Text == texto) { texbox.Text = ""; texbox.TextAlign = HorizontalAlignment.Left; } }
private void TbSonPauseMinute_OnValueChanged(object sender, EventArgs e) { Bunifu.Framework.UI.BunifuMaterialTextbox tb = sender as Bunifu.Framework.UI.BunifuMaterialTextbox; if (tb.Text.Length > 0) { week.sonPauseMinutes = int.Parse(tbSonPauseMinute.Text); } }
private void TbSamPauseHour_OnValueChanged(object sender, EventArgs e) { Bunifu.Framework.UI.BunifuMaterialTextbox tb = sender as Bunifu.Framework.UI.BunifuMaterialTextbox; if (tb.Text.Length > 0) { week.samPauseHour = int.Parse(tbSamPauseHour.Text); } }
private void txtBoxesLogin_OnValueChanged(object sender, EventArgs e) { pnlQueDesce.Location = new Point(854, 462); Bunifu.Framework.UI.BunifuMaterialTextbox b = (Bunifu.Framework.UI.BunifuMaterialTextbox)sender; if (b.Name.Contains("Senha")) { txtSenha.isPassword = true; } }
private void Form1_Load(object sender, EventArgs e) { SqlConnection con = new SqlConnection("Data Source=yourpcnamehere\\servernamehere;Initial Catalog=POSdb;Integrated Security=True"); con.Open(); { } var materialTextBox = new Bunifu.Framework.UI.BunifuMaterialTextbox(); }
private void txt_Upper_OnValueChanged(object sender, EventArgs e) { Bunifu.Framework.UI.BunifuMaterialTextbox txtBox = sender as Bunifu.Framework.UI.BunifuMaterialTextbox; if (!string.IsNullOrEmpty(txtBox.Text)) { txtBox.OnValueChanged -= txt_Upper_OnValueChanged; txtBox.Text = txtBox.Text.ToUpper(); SendKeys.Send("{END}"); txtBox.OnValueChanged += txt_Upper_OnValueChanged; } }
public bool MinLength(Bunifu.Framework.UI.BunifuMaterialTextbox controls, int min) { if (controls.Text.Length < min) { return(false); } else { return(true); } }
public bool isRequired(Bunifu.Framework.UI.BunifuMaterialTextbox controls) { if (string.IsNullOrWhiteSpace(controls.Text)) { return(false); } else { return(true); } }
private void SetMaximumLength(Bunifu.Framework.UI.BunifuMaterialTextbox metroTextbox, int maximumLength) {//Modifico el largo máximo del textbox foreach (Control ctl in metroTextbox.Controls) { if (ctl.GetType() == typeof(TextBox)) { var txt = (TextBox)ctl; txt.MaxLength = maximumLength; } } }
public bool isNumeric(Bunifu.Framework.UI.BunifuMaterialTextbox controls) { int distance = 0; if (int.TryParse(controls.Text, out distance)) { return(true); } else { return(false); } }
private void SetMaximumLength(Bunifu.Framework.UI.BunifuMaterialTextbox MaterialTextbox, int maximumLength)//Setea el largo de los datos ingresados en un material textbox { foreach (Control ctl in MaterialTextbox.Controls) { if (ctl.GetType() == typeof(TextBox)) { var txt = (TextBox)ctl; txt.MaxLength = maximumLength; // Set other properties & events here... } } }
/// <summary> /// Opens a file dialog to get user avatar infos to set textbox text /// </summary> /// <param name="textBox">Textbox Control</param> public static void OpenFileDialog(Bunifu.Framework.UI.BunifuMaterialTextbox textBox) { OpenFileDialog ofdPicturePath = new OpenFileDialog(); ofdPicturePath.InitialDirectory = AppDomain.CurrentDomain.BaseDirectory + "Assets\\Avatars"; ofdPicturePath.Filter = "Image Files (*.png, *.jpg, *.jpeg)|*.png;*.jpg;*.jpeg"; ofdPicturePath.FilterIndex = 0; ofdPicturePath.RestoreDirectory = true; if (ofdPicturePath.ShowDialog() == DialogResult.OK) { string selectedFileName = ofdPicturePath.FileName; string[] selectedName = selectedFileName.Split(new string[] { "Assets\\" }, StringSplitOptions.None); textBox.Text = selectedName[selectedName.Length - 1]; } }
public void FileDialog(Bunifu.Framework.UI.BunifuMaterialTextbox textBox) { OpenFileDialog ofdPicturePath = new OpenFileDialog(); ofdPicturePath.InitialDirectory = AppDomain.CurrentDomain.BaseDirectory; ofdPicturePath.Filter = "Image Files (*.png, *.jpg)|*.png;*.jpg"; ofdPicturePath.FilterIndex = 0; ofdPicturePath.RestoreDirectory = true; if (ofdPicturePath.ShowDialog() == DialogResult.OK) { string selectedFileName = ofdPicturePath.FileName; string[] selectedName = selectedFileName.Split('\\'); textBox.Text = selectedName[selectedName.Length - 1]; } }
// >>>>> Formatação dos valores dos campos <<<<< private void txt_OnValueChanged(object sender, EventArgs e) { Bunifu.Framework.UI.BunifuMaterialTextbox txtBox = sender as Bunifu.Framework.UI.BunifuMaterialTextbox; if (!string.IsNullOrEmpty(txtBox.Text)) { txtBox.OnValueChanged -= txt_OnValueChanged; if (txtBox.Name.Contains("CPF")) { txtBox.Text = Data_Formater.Mask_CPF(txtBox.Text); } else { txtBox.Text = Data_Formater.Mask_RG(txtBox.Text); } SendKeys.Send("{END}"); txtBox.OnValueChanged += txt_OnValueChanged; } }
//Validation public bool Regexp(string re, Bunifu.Framework.UI.BunifuMaterialTextbox tb, PictureBox pc, string s) { ToolTip buttonToolTip = new ToolTip(); ToolTip n = new ToolTip(); Regex regex = new Regex(re); if (!regex.IsMatch(tb.Text)) { pc.Image = Properties.Resources.invalid; n.SetToolTip(pc, s); return(false); } else { pc.Image = null; return(true); } }
private Bunifu.Framework.UI.BunifuMaterialTextbox initTextBoxes(Bunifu.Framework.UI.BunifuMaterialTextbox tb) { if (tb == null) { tb = new Bunifu.Framework.UI.BunifuMaterialTextbox(); } tb.Text = "שמירה בשם"; tb.BackColor = Color.FromArgb(77, 102, 142); tb.ForeColor = Color.White; tb.LineIdleColor = Color.Transparent; tb.LineMouseHoverColor = Color.Orange; tb.LineFocusedColor = Color.Yellow; tb.LineThickness = 3; tb.RightToLeft = System.Windows.Forms.RightToLeft.Yes; tb.TextAlign = System.Windows.Forms.HorizontalAlignment.Left; tb.AutoSize = false; tb.Height = HEIGHT_ROW - 10; tb.Width = (int)WIDTHS.NAME; return(tb); }
// для перевірки пароля private void Passconfirm_Leave(object sender, EventArgs e) { Bunifu.Framework.UI.BunifuMaterialTextbox temp = sender as Bunifu.Framework.UI.BunifuMaterialTextbox; Lib.LeaveConfirm(temp); }
/// <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(Inscription_Enseignant)); Bunifu.Framework.UI.BunifuMaterialTextbox bunifuMaterialTextbox3; this.panel1 = new System.Windows.Forms.Panel(); this.bunifuCustomLabel9 = new Bunifu.Framework.UI.BunifuCustomLabel(); this.bunifuFlatButton4 = new Bunifu.Framework.UI.BunifuFlatButton(); this.bunifuFlatButton3 = new Bunifu.Framework.UI.BunifuFlatButton(); this.bunifuFlatButton2 = new Bunifu.Framework.UI.BunifuFlatButton(); this.bunifuFlatButton1 = new Bunifu.Framework.UI.BunifuFlatButton(); this.bunifuCustomLabel8 = new Bunifu.Framework.UI.BunifuCustomLabel(); this.bunifuMaterialTextbox7 = new Bunifu.Framework.UI.BunifuMaterialTextbox(); this.bunifuCustomLabel7 = new Bunifu.Framework.UI.BunifuCustomLabel(); this.bunifuImageButton1 = new Bunifu.Framework.UI.BunifuImageButton(); this.bunifuMaterialTextbox5 = new Bunifu.Framework.UI.BunifuMaterialTextbox(); this.cin = new Bunifu.Framework.UI.BunifuMaterialTextbox(); this.bunifuMaterialTextbox1 = new Bunifu.Framework.UI.BunifuMaterialTextbox(); this.bunifuCustomLabel4 = new Bunifu.Framework.UI.BunifuCustomLabel(); this.bunifuCustomLabel3 = new Bunifu.Framework.UI.BunifuCustomLabel(); this.bunifuCustomLabel2 = new Bunifu.Framework.UI.BunifuCustomLabel(); this.bunifuCustomLabel1 = new Bunifu.Framework.UI.BunifuCustomLabel(); bunifuMaterialTextbox3 = new Bunifu.Framework.UI.BunifuMaterialTextbox(); this.panel1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.bunifuImageButton1)).BeginInit(); this.SuspendLayout(); // // panel1 // this.panel1.BackColor = System.Drawing.Color.White; this.panel1.BackgroundImage = global::ERP_Enseignant.Properties.Resources._64_main_digital_stats; this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; this.panel1.Controls.Add(this.bunifuCustomLabel9); this.panel1.Controls.Add(this.bunifuFlatButton4); this.panel1.Controls.Add(this.bunifuFlatButton3); this.panel1.Controls.Add(this.bunifuFlatButton2); this.panel1.Controls.Add(this.bunifuFlatButton1); this.panel1.Controls.Add(this.bunifuCustomLabel8); this.panel1.Controls.Add(this.bunifuMaterialTextbox7); this.panel1.Controls.Add(this.bunifuCustomLabel7); this.panel1.Controls.Add(this.bunifuImageButton1); this.panel1.Controls.Add(this.bunifuMaterialTextbox5); this.panel1.Controls.Add(this.cin); this.panel1.Controls.Add(bunifuMaterialTextbox3); this.panel1.Controls.Add(this.bunifuMaterialTextbox1); this.panel1.Controls.Add(this.bunifuCustomLabel4); this.panel1.Controls.Add(this.bunifuCustomLabel3); this.panel1.Controls.Add(this.bunifuCustomLabel2); this.panel1.Controls.Add(this.bunifuCustomLabel1); this.panel1.Location = new System.Drawing.Point(6, 53); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(675, 390); this.panel1.TabIndex = 1; // // bunifuCustomLabel9 // this.bunifuCustomLabel9.BackColor = System.Drawing.Color.Transparent; this.bunifuCustomLabel9.Font = new System.Drawing.Font("Century Gothic", 11F, System.Drawing.FontStyle.Bold); this.bunifuCustomLabel9.ForeColor = System.Drawing.Color.White; this.bunifuCustomLabel9.Location = new System.Drawing.Point(24, 222); this.bunifuCustomLabel9.Name = "bunifuCustomLabel9"; this.bunifuCustomLabel9.Size = new System.Drawing.Size(132, 20); this.bunifuCustomLabel9.TabIndex = 47; this.bunifuCustomLabel9.Text = "Ou Bien ?"; // // bunifuFlatButton4 // this.bunifuFlatButton4.Activecolor = System.Drawing.Color.FromArgb(((int)(((byte)(46)))), ((int)(((byte)(139)))), ((int)(((byte)(87))))); this.bunifuFlatButton4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.bunifuFlatButton4.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; this.bunifuFlatButton4.BorderRadius = 0; this.bunifuFlatButton4.ButtonText = "Reconnaissance Faciale"; this.bunifuFlatButton4.Cursor = System.Windows.Forms.Cursors.Hand; this.bunifuFlatButton4.DisabledColor = System.Drawing.Color.Gray; this.bunifuFlatButton4.Font = new System.Drawing.Font("Century Gothic", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.bunifuFlatButton4.Iconcolor = System.Drawing.Color.Transparent; this.bunifuFlatButton4.Iconimage = null; this.bunifuFlatButton4.Iconimage_right = null; this.bunifuFlatButton4.Iconimage_right_Selected = null; this.bunifuFlatButton4.Iconimage_Selected = null; this.bunifuFlatButton4.IconMarginLeft = 0; this.bunifuFlatButton4.IconMarginRight = 0; this.bunifuFlatButton4.IconRightVisible = true; this.bunifuFlatButton4.IconRightZoom = 0D; this.bunifuFlatButton4.IconVisible = true; this.bunifuFlatButton4.IconZoom = 90D; this.bunifuFlatButton4.IsTab = false; this.bunifuFlatButton4.Location = new System.Drawing.Point(64, 255); this.bunifuFlatButton4.Name = "bunifuFlatButton4"; this.bunifuFlatButton4.Normalcolor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.bunifuFlatButton4.OnHovercolor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.bunifuFlatButton4.OnHoverTextColor = System.Drawing.Color.White; this.bunifuFlatButton4.selected = false; this.bunifuFlatButton4.Size = new System.Drawing.Size(164, 26); this.bunifuFlatButton4.TabIndex = 46; this.bunifuFlatButton4.Text = "Reconnaissance Faciale"; this.bunifuFlatButton4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.bunifuFlatButton4.Textcolor = System.Drawing.Color.White; this.bunifuFlatButton4.TextFont = new System.Drawing.Font("Century Gothic", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); // // bunifuFlatButton3 // this.bunifuFlatButton3.Activecolor = System.Drawing.Color.FromArgb(((int)(((byte)(46)))), ((int)(((byte)(139)))), ((int)(((byte)(87))))); this.bunifuFlatButton3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.bunifuFlatButton3.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; this.bunifuFlatButton3.BorderRadius = 0; this.bunifuFlatButton3.ButtonText = "Choisir votre Photo*"; this.bunifuFlatButton3.Cursor = System.Windows.Forms.Cursors.Hand; this.bunifuFlatButton3.DisabledColor = System.Drawing.Color.Gray; this.bunifuFlatButton3.Font = new System.Drawing.Font("Century Gothic", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.bunifuFlatButton3.Iconcolor = System.Drawing.Color.Transparent; this.bunifuFlatButton3.Iconimage = null; this.bunifuFlatButton3.Iconimage_right = null; this.bunifuFlatButton3.Iconimage_right_Selected = null; this.bunifuFlatButton3.Iconimage_Selected = null; this.bunifuFlatButton3.IconMarginLeft = 0; this.bunifuFlatButton3.IconMarginRight = 0; this.bunifuFlatButton3.IconRightVisible = true; this.bunifuFlatButton3.IconRightZoom = 0D; this.bunifuFlatButton3.IconVisible = true; this.bunifuFlatButton3.IconZoom = 90D; this.bunifuFlatButton3.IsTab = false; this.bunifuFlatButton3.Location = new System.Drawing.Point(495, 165); this.bunifuFlatButton3.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.bunifuFlatButton3.Name = "bunifuFlatButton3"; this.bunifuFlatButton3.Normalcolor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.bunifuFlatButton3.OnHovercolor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.bunifuFlatButton3.OnHoverTextColor = System.Drawing.Color.White; this.bunifuFlatButton3.selected = false; this.bunifuFlatButton3.Size = new System.Drawing.Size(159, 29); this.bunifuFlatButton3.TabIndex = 44; this.bunifuFlatButton3.Text = "Choisir votre Photo*"; this.bunifuFlatButton3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.bunifuFlatButton3.Textcolor = System.Drawing.Color.White; this.bunifuFlatButton3.TextFont = new System.Drawing.Font("Century Gothic", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); // // bunifuFlatButton2 // this.bunifuFlatButton2.Activecolor = System.Drawing.Color.FromArgb(((int)(((byte)(46)))), ((int)(((byte)(139)))), ((int)(((byte)(87))))); this.bunifuFlatButton2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.bunifuFlatButton2.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; this.bunifuFlatButton2.BorderRadius = 0; this.bunifuFlatButton2.ButtonText = "Générer"; this.bunifuFlatButton2.Cursor = System.Windows.Forms.Cursors.Hand; this.bunifuFlatButton2.DisabledColor = System.Drawing.Color.Gray; this.bunifuFlatButton2.Font = new System.Drawing.Font("Century Gothic", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.bunifuFlatButton2.Iconcolor = System.Drawing.Color.Transparent; this.bunifuFlatButton2.Iconimage = null; this.bunifuFlatButton2.Iconimage_right = null; this.bunifuFlatButton2.Iconimage_right_Selected = null; this.bunifuFlatButton2.Iconimage_Selected = null; this.bunifuFlatButton2.IconMarginLeft = 0; this.bunifuFlatButton2.IconMarginRight = 0; this.bunifuFlatButton2.IconRightVisible = true; this.bunifuFlatButton2.IconRightZoom = 0D; this.bunifuFlatButton2.IconVisible = true; this.bunifuFlatButton2.IconZoom = 90D; this.bunifuFlatButton2.IsTab = false; this.bunifuFlatButton2.Location = new System.Drawing.Point(382, 255); this.bunifuFlatButton2.Name = "bunifuFlatButton2"; this.bunifuFlatButton2.Normalcolor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.bunifuFlatButton2.OnHovercolor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); this.bunifuFlatButton2.OnHoverTextColor = System.Drawing.Color.White; this.bunifuFlatButton2.selected = false; this.bunifuFlatButton2.Size = new System.Drawing.Size(92, 26); this.bunifuFlatButton2.TabIndex = 43; this.bunifuFlatButton2.Text = "Générer"; this.bunifuFlatButton2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.bunifuFlatButton2.Textcolor = System.Drawing.Color.White; this.bunifuFlatButton2.TextFont = new System.Drawing.Font("Century Gothic", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); // // bunifuFlatButton1 // this.bunifuFlatButton1.Activecolor = System.Drawing.Color.FromArgb(((int)(((byte)(46)))), ((int)(((byte)(139)))), ((int)(((byte)(87))))); this.bunifuFlatButton1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(46)))), ((int)(((byte)(139)))), ((int)(((byte)(87))))); this.bunifuFlatButton1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; this.bunifuFlatButton1.BorderRadius = 0; this.bunifuFlatButton1.ButtonText = "S\'INSCRIRE"; this.bunifuFlatButton1.Cursor = System.Windows.Forms.Cursors.Hand; this.bunifuFlatButton1.DisabledColor = System.Drawing.Color.Gray; this.bunifuFlatButton1.Iconcolor = System.Drawing.Color.Transparent; this.bunifuFlatButton1.Iconimage = ((System.Drawing.Image)(resources.GetObject("bunifuFlatButton1.Iconimage"))); this.bunifuFlatButton1.Iconimage_right = null; this.bunifuFlatButton1.Iconimage_right_Selected = null; this.bunifuFlatButton1.Iconimage_Selected = null; this.bunifuFlatButton1.IconMarginLeft = 0; this.bunifuFlatButton1.IconMarginRight = 0; this.bunifuFlatButton1.IconRightVisible = true; this.bunifuFlatButton1.IconRightZoom = 0D; this.bunifuFlatButton1.IconVisible = true; this.bunifuFlatButton1.IconZoom = 90D; this.bunifuFlatButton1.IsTab = false; this.bunifuFlatButton1.Location = new System.Drawing.Point(316, 336); this.bunifuFlatButton1.Name = "bunifuFlatButton1"; this.bunifuFlatButton1.Normalcolor = System.Drawing.Color.FromArgb(((int)(((byte)(46)))), ((int)(((byte)(139)))), ((int)(((byte)(87))))); this.bunifuFlatButton1.OnHovercolor = System.Drawing.Color.FromArgb(((int)(((byte)(36)))), ((int)(((byte)(129)))), ((int)(((byte)(77))))); this.bunifuFlatButton1.OnHoverTextColor = System.Drawing.Color.White; this.bunifuFlatButton1.selected = false; this.bunifuFlatButton1.Size = new System.Drawing.Size(158, 37); this.bunifuFlatButton1.TabIndex = 42; this.bunifuFlatButton1.Text = "S\'INSCRIRE"; this.bunifuFlatButton1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; this.bunifuFlatButton1.Textcolor = System.Drawing.Color.White; this.bunifuFlatButton1.TextFont = new System.Drawing.Font("Century Gothic", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); // // bunifuCustomLabel8 // this.bunifuCustomLabel8.BackColor = System.Drawing.Color.Transparent; this.bunifuCustomLabel8.Font = new System.Drawing.Font("Century Gothic", 11F, System.Drawing.FontStyle.Bold); this.bunifuCustomLabel8.ForeColor = System.Drawing.Color.White; this.bunifuCustomLabel8.Location = new System.Drawing.Point(313, 219); this.bunifuCustomLabel8.Name = "bunifuCustomLabel8"; this.bunifuCustomLabel8.Size = new System.Drawing.Size(100, 23); this.bunifuCustomLabel8.TabIndex = 41; this.bunifuCustomLabel8.Text = "CURE CODE"; // // bunifuMaterialTextbox7 // this.bunifuMaterialTextbox7.BackColor = System.Drawing.Color.White; this.bunifuMaterialTextbox7.Cursor = System.Windows.Forms.Cursors.IBeam; this.bunifuMaterialTextbox7.Font = new System.Drawing.Font("Century Gothic", 9.75F); this.bunifuMaterialTextbox7.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(50)))), ((int)(((byte)(50)))), ((int)(((byte)(50))))); this.bunifuMaterialTextbox7.HintForeColor = System.Drawing.Color.Empty; this.bunifuMaterialTextbox7.HintText = ""; this.bunifuMaterialTextbox7.isPassword = false; this.bunifuMaterialTextbox7.LineFocusedColor = System.Drawing.Color.CornflowerBlue; this.bunifuMaterialTextbox7.LineIdleColor = System.Drawing.Color.Teal; this.bunifuMaterialTextbox7.LineMouseHoverColor = System.Drawing.Color.CornflowerBlue; this.bunifuMaterialTextbox7.LineThickness = 3; this.bunifuMaterialTextbox7.Location = new System.Drawing.Point(180, 156); this.bunifuMaterialTextbox7.Margin = new System.Windows.Forms.Padding(4); this.bunifuMaterialTextbox7.Name = "bunifuMaterialTextbox7"; this.bunifuMaterialTextbox7.Size = new System.Drawing.Size(210, 29); this.bunifuMaterialTextbox7.TabIndex = 40; this.bunifuMaterialTextbox7.TextAlign = System.Windows.Forms.HorizontalAlignment.Left; // // bunifuCustomLabel7 // this.bunifuCustomLabel7.BackColor = System.Drawing.Color.Transparent; this.bunifuCustomLabel7.Font = new System.Drawing.Font("Century Gothic", 11F, System.Drawing.FontStyle.Bold); this.bunifuCustomLabel7.ForeColor = System.Drawing.Color.White; this.bunifuCustomLabel7.Location = new System.Drawing.Point(41, 165); this.bunifuCustomLabel7.Name = "bunifuCustomLabel7"; this.bunifuCustomLabel7.Size = new System.Drawing.Size(132, 20); this.bunifuCustomLabel7.TabIndex = 39; this.bunifuCustomLabel7.Text = "Adresse Mail* "; // // bunifuImageButton1 // this.bunifuImageButton1.BackColor = System.Drawing.Color.SeaGreen; this.bunifuImageButton1.ErrorImage = global::ERP_Enseignant.Properties.Resources._29213222_男性のシルエットのアバターのプロフィールの写真; this.bunifuImageButton1.Image = ((System.Drawing.Image)(resources.GetObject("bunifuImageButton1.Image"))); this.bunifuImageButton1.ImageActive = null; this.bunifuImageButton1.Location = new System.Drawing.Point(508, 19); this.bunifuImageButton1.Name = "bunifuImageButton1"; this.bunifuImageButton1.Size = new System.Drawing.Size(134, 129); this.bunifuImageButton1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; this.bunifuImageButton1.TabIndex = 36; this.bunifuImageButton1.TabStop = false; this.bunifuImageButton1.Zoom = 10; // // bunifuMaterialTextbox5 // this.bunifuMaterialTextbox5.BackColor = System.Drawing.Color.White; this.bunifuMaterialTextbox5.Cursor = System.Windows.Forms.Cursors.IBeam; this.bunifuMaterialTextbox5.Font = new System.Drawing.Font("Century Gothic", 9.75F); this.bunifuMaterialTextbox5.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(50)))), ((int)(((byte)(50)))), ((int)(((byte)(50))))); this.bunifuMaterialTextbox5.HintForeColor = System.Drawing.Color.Empty; this.bunifuMaterialTextbox5.HintText = ""; this.bunifuMaterialTextbox5.isPassword = false; this.bunifuMaterialTextbox5.LineFocusedColor = System.Drawing.Color.Blue; this.bunifuMaterialTextbox5.LineIdleColor = System.Drawing.Color.Teal; this.bunifuMaterialTextbox5.LineMouseHoverColor = System.Drawing.Color.Blue; this.bunifuMaterialTextbox5.LineThickness = 3; this.bunifuMaterialTextbox5.Location = new System.Drawing.Point(335, 37); this.bunifuMaterialTextbox5.Margin = new System.Windows.Forms.Padding(4); this.bunifuMaterialTextbox5.Name = "bunifuMaterialTextbox5"; this.bunifuMaterialTextbox5.Size = new System.Drawing.Size(135, 29); this.bunifuMaterialTextbox5.TabIndex = 34; this.bunifuMaterialTextbox5.TextAlign = System.Windows.Forms.HorizontalAlignment.Left; // // cin // this.cin.BackColor = System.Drawing.Color.White; this.cin.Cursor = System.Windows.Forms.Cursors.IBeam; this.cin.Font = new System.Drawing.Font("Century Gothic", 9.75F); this.cin.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(50)))), ((int)(((byte)(50)))), ((int)(((byte)(50))))); this.cin.HintForeColor = System.Drawing.Color.Empty; this.cin.HintText = ""; this.cin.isPassword = false; this.cin.LineFocusedColor = System.Drawing.Color.CornflowerBlue; this.cin.LineIdleColor = System.Drawing.Color.Teal; this.cin.LineMouseHoverColor = System.Drawing.Color.CornflowerBlue; this.cin.LineThickness = 3; this.cin.Location = new System.Drawing.Point(131, 37); this.cin.Margin = new System.Windows.Forms.Padding(4); this.cin.Name = "cin"; this.cin.Size = new System.Drawing.Size(116, 29); this.cin.TabIndex = 33; this.cin.TextAlign = System.Windows.Forms.HorizontalAlignment.Left; // // bunifuMaterialTextbox3 // bunifuMaterialTextbox3.BackColor = System.Drawing.Color.White; bunifuMaterialTextbox3.Cursor = System.Windows.Forms.Cursors.IBeam; bunifuMaterialTextbox3.Font = new System.Drawing.Font("Century Gothic", 9.75F); bunifuMaterialTextbox3.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(50)))), ((int)(((byte)(50)))), ((int)(((byte)(50))))); bunifuMaterialTextbox3.HintForeColor = System.Drawing.Color.Empty; bunifuMaterialTextbox3.HintText = "*********"; bunifuMaterialTextbox3.isPassword = true; bunifuMaterialTextbox3.LineFocusedColor = System.Drawing.Color.CornflowerBlue; bunifuMaterialTextbox3.LineIdleColor = System.Drawing.Color.Teal; bunifuMaterialTextbox3.LineMouseHoverColor = System.Drawing.Color.CornflowerBlue; bunifuMaterialTextbox3.LineThickness = 3; bunifuMaterialTextbox3.Location = new System.Drawing.Point(131, 96); bunifuMaterialTextbox3.Margin = new System.Windows.Forms.Padding(4); bunifuMaterialTextbox3.Name = "bunifuMaterialTextbox3"; bunifuMaterialTextbox3.Size = new System.Drawing.Size(116, 29); bunifuMaterialTextbox3.TabIndex = 32; bunifuMaterialTextbox3.TextAlign = System.Windows.Forms.HorizontalAlignment.Left; // // bunifuMaterialTextbox1 // this.bunifuMaterialTextbox1.BackColor = System.Drawing.Color.White; this.bunifuMaterialTextbox1.Cursor = System.Windows.Forms.Cursors.IBeam; this.bunifuMaterialTextbox1.Font = new System.Drawing.Font("Century Gothic", 9.75F); this.bunifuMaterialTextbox1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(50)))), ((int)(((byte)(50)))), ((int)(((byte)(50))))); this.bunifuMaterialTextbox1.HintForeColor = System.Drawing.Color.Empty; this.bunifuMaterialTextbox1.HintText = ""; this.bunifuMaterialTextbox1.isPassword = false; this.bunifuMaterialTextbox1.LineFocusedColor = System.Drawing.Color.CornflowerBlue; this.bunifuMaterialTextbox1.LineIdleColor = System.Drawing.Color.Teal; this.bunifuMaterialTextbox1.LineMouseHoverColor = System.Drawing.Color.CornflowerBlue; this.bunifuMaterialTextbox1.LineThickness = 3; this.bunifuMaterialTextbox1.Location = new System.Drawing.Point(335, 96); this.bunifuMaterialTextbox1.Margin = new System.Windows.Forms.Padding(4); this.bunifuMaterialTextbox1.Name = "bunifuMaterialTextbox1"; this.bunifuMaterialTextbox1.Size = new System.Drawing.Size(135, 29); this.bunifuMaterialTextbox1.TabIndex = 30; this.bunifuMaterialTextbox1.TextAlign = System.Windows.Forms.HorizontalAlignment.Left; // // bunifuCustomLabel4 // this.bunifuCustomLabel4.BackColor = System.Drawing.Color.Transparent; this.bunifuCustomLabel4.Font = new System.Drawing.Font("Century Gothic", 11F, System.Drawing.FontStyle.Bold); this.bunifuCustomLabel4.ForeColor = System.Drawing.Color.White; this.bunifuCustomLabel4.Location = new System.Drawing.Point(4, 37); this.bunifuCustomLabel4.Name = "bunifuCustomLabel4"; this.bunifuCustomLabel4.Size = new System.Drawing.Size(100, 23); this.bunifuCustomLabel4.TabIndex = 27; this.bunifuCustomLabel4.Text = "CIN*"; // // bunifuCustomLabel3 // this.bunifuCustomLabel3.BackColor = System.Drawing.Color.Transparent; this.bunifuCustomLabel3.Font = new System.Drawing.Font("Century Gothic", 11F, System.Drawing.FontStyle.Bold); this.bunifuCustomLabel3.ForeColor = System.Drawing.Color.White; this.bunifuCustomLabel3.Location = new System.Drawing.Point(4, 102); this.bunifuCustomLabel3.Name = "bunifuCustomLabel3"; this.bunifuCustomLabel3.Size = new System.Drawing.Size(120, 23); this.bunifuCustomLabel3.TabIndex = 26; this.bunifuCustomLabel3.Text = "Mot de Passe*"; // // bunifuCustomLabel2 // this.bunifuCustomLabel2.BackColor = System.Drawing.Color.Transparent; this.bunifuCustomLabel2.Font = new System.Drawing.Font("Century Gothic", 11F, System.Drawing.FontStyle.Bold); this.bunifuCustomLabel2.ForeColor = System.Drawing.Color.White; this.bunifuCustomLabel2.Location = new System.Drawing.Point(254, 96); this.bunifuCustomLabel2.Name = "bunifuCustomLabel2"; this.bunifuCustomLabel2.Size = new System.Drawing.Size(67, 25); this.bunifuCustomLabel2.TabIndex = 25; this.bunifuCustomLabel2.Text = "Prénom*"; // // bunifuCustomLabel1 // this.bunifuCustomLabel1.BackColor = System.Drawing.Color.Transparent; this.bunifuCustomLabel1.Font = new System.Drawing.Font("Century Gothic", 11F, System.Drawing.FontStyle.Bold); this.bunifuCustomLabel1.ForeColor = System.Drawing.Color.White; this.bunifuCustomLabel1.Location = new System.Drawing.Point(254, 37); this.bunifuCustomLabel1.Name = "bunifuCustomLabel1"; this.bunifuCustomLabel1.Size = new System.Drawing.Size(58, 23); this.bunifuCustomLabel1.TabIndex = 24; this.bunifuCustomLabel1.Text = "Nom *"; // // Inscription_Enseignant // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(693, 451); this.Controls.Add(this.panel1); this.Name = "Inscription_Enseignant"; this.Text = "Inscription_Enseignant"; this.Load += new System.EventHandler(this.Inscription_Enseignant_Load); this.panel1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.bunifuImageButton1)).EndInit(); this.ResumeLayout(false); }
private void txtPassword_OnValueChanged(object sender, EventArgs e) { Bunifu.Framework.UI.BunifuMaterialTextbox textbox = (Bunifu.Framework.UI.BunifuMaterialTextbox)sender; textbox.isPassword = true; }
/// <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); }
/// <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(FormAbout)); this.btnOK = new System.Windows.Forms.Button(); this.label1 = new System.Windows.Forms.Label(); this.panel1 = new System.Windows.Forms.Panel(); this.textBox1 = new System.Windows.Forms.TextBox(); this.bunifuMaterialTextbox1 = new Bunifu.Framework.UI.BunifuMaterialTextbox(); this.SuspendLayout(); // // btnOK // this.btnOK.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnOK.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(173)))), ((int)(((byte)(239))))); this.btnOK.Location = new System.Drawing.Point(372, 361); this.btnOK.Name = "btnOK"; this.btnOK.Size = new System.Drawing.Size(103, 25); this.btnOK.TabIndex = 0; this.btnOK.Text = "Close"; this.btnOK.UseVisualStyleBackColor = true; this.btnOK.Click += new System.EventHandler(this.btnOK_Click); // // label1 // this.label1.AutoSize = true; this.label1.Font = new System.Drawing.Font("Sitka Banner", 20.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label1.ForeColor = System.Drawing.Color.Silver; this.label1.Location = new System.Drawing.Point(10, 18); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(126, 39); this.label1.TabIndex = 1; this.label1.Text = "Messenger"; // // panel1 // this.panel1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(173)))), ((int)(((byte)(239))))); this.panel1.Dock = System.Windows.Forms.DockStyle.Top; this.panel1.Location = new System.Drawing.Point(0, 0); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(500, 15); this.panel1.TabIndex = 28; // // textBox1 // this.textBox1.BackColor = System.Drawing.SystemColors.Control; this.textBox1.BorderStyle = System.Windows.Forms.BorderStyle.None; this.textBox1.Font = new System.Drawing.Font("Sitka Banner", 9.749999F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.textBox1.ForeColor = System.Drawing.Color.DarkGray; this.textBox1.Location = new System.Drawing.Point(289, 18); this.textBox1.Multiline = true; this.textBox1.Name = "textBox1"; this.textBox1.Size = new System.Drawing.Size(199, 47); this.textBox1.TabIndex = 29; this.textBox1.Text = "University of Information Technology\r\nIntuitive programming"; this.textBox1.TextChanged += new System.EventHandler(this.textBox1_TextChanged); // // bunifuMaterialTextbox1 // this.bunifuMaterialTextbox1.BackColor = System.Drawing.SystemColors.Control; this.bunifuMaterialTextbox1.Cursor = System.Windows.Forms.Cursors.IBeam; this.bunifuMaterialTextbox1.Font = new System.Drawing.Font("Century Gothic", 9.75F); this.bunifuMaterialTextbox1.ForeColor = System.Drawing.Color.DarkGray; this.bunifuMaterialTextbox1.HintForeColor = System.Drawing.Color.Empty; this.bunifuMaterialTextbox1.HintText = ""; this.bunifuMaterialTextbox1.isPassword = false; this.bunifuMaterialTextbox1.LineFocusedColor = System.Drawing.Color.Blue; this.bunifuMaterialTextbox1.LineIdleColor = System.Drawing.Color.Silver; this.bunifuMaterialTextbox1.LineMouseHoverColor = System.Drawing.Color.Blue; this.bunifuMaterialTextbox1.LineThickness = 3; this.bunifuMaterialTextbox1.Location = new System.Drawing.Point(17, 84); this.bunifuMaterialTextbox1.Margin = new System.Windows.Forms.Padding(4); this.bunifuMaterialTextbox1.Name = "bunifuMaterialTextbox1"; this.bunifuMaterialTextbox1.Size = new System.Drawing.Size(379, 37); this.bunifuMaterialTextbox1.TabIndex = 30; this.bunifuMaterialTextbox1.TextAlign = System.Windows.Forms.HorizontalAlignment.Left; // // FormAbout // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(500, 398); this.Controls.Add(this.bunifuMaterialTextbox1); this.Controls.Add(this.textBox1); this.Controls.Add(this.panel1); this.Controls.Add(this.label1); this.Controls.Add(this.btnOK); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.MaximizeBox = false; this.MinimizeBox = false; this.Name = "FormAbout"; this.ShowIcon = false; this.ShowInTaskbar = false; this.ResumeLayout(false); this.PerformLayout(); }
private void LeaveChange(object sender, EventArgs e) { Bunifu.Framework.UI.BunifuMaterialTextbox temp = sender as Bunifu.Framework.UI.BunifuMaterialTextbox; Lib.LeaveField(temp); }
//CUT DOWN ON LINES OF CODE public static void ConfirmSummaryIndividual(Bunifu.Framework.UI.BunifuMaterialTextbox Custom) { Custom.BackColor = Color.WhiteSmoke; Custom.Enabled = false; }
//CUT DOWN ON LINES OF CODE public static void EmptySummaryIndividual(Bunifu.Framework.UI.BunifuMaterialTextbox Custom) { Custom.Enabled = true; Custom.BackColor = Color.White; Custom.Text = ""; }
/// <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(FormAbout)); this.btnOK = new System.Windows.Forms.Button(); this.label1 = new System.Windows.Forms.Label(); this.panel1 = new System.Windows.Forms.Panel(); this.textBox1 = new System.Windows.Forms.TextBox(); this.bunifuMaterialTextbox1 = new Bunifu.Framework.UI.BunifuMaterialTextbox(); this.textBox2 = new System.Windows.Forms.TextBox(); this.textBox3 = new System.Windows.Forms.TextBox(); this.textBox4 = new System.Windows.Forms.TextBox(); this.textBox5 = new System.Windows.Forms.TextBox(); this.textBox6 = new System.Windows.Forms.TextBox(); this.textBox7 = new System.Windows.Forms.TextBox(); this.textBox8 = new System.Windows.Forms.TextBox(); this.pictureBox1 = new System.Windows.Forms.PictureBox(); ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit(); this.SuspendLayout(); // // btnOK // this.btnOK.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnOK.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(173)))), ((int)(((byte)(239))))); this.btnOK.Location = new System.Drawing.Point(293, 294); this.btnOK.Name = "btnOK"; this.btnOK.Size = new System.Drawing.Size(103, 25); this.btnOK.TabIndex = 0; this.btnOK.Text = "Close"; this.btnOK.UseVisualStyleBackColor = true; this.btnOK.Click += new System.EventHandler(this.btnOK_Click); // // label1 // this.label1.AutoSize = true; this.label1.Font = new System.Drawing.Font("Sitka Banner", 20.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(192)))), ((int)(((byte)(192))))); this.label1.Location = new System.Drawing.Point(128, 42); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(171, 39); this.label1.TabIndex = 1; this.label1.Text = "Lan Messenger"; this.label1.Click += new System.EventHandler(this.label1_Click); // // panel1 // this.panel1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(173)))), ((int)(((byte)(239))))); this.panel1.Dock = System.Windows.Forms.DockStyle.Top; this.panel1.Location = new System.Drawing.Point(0, 0); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(417, 15); this.panel1.TabIndex = 28; // // textBox1 // this.textBox1.BackColor = System.Drawing.SystemColors.Control; this.textBox1.BorderStyle = System.Windows.Forms.BorderStyle.None; this.textBox1.Font = new System.Drawing.Font("Sitka Banner", 9.749999F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.textBox1.ForeColor = System.Drawing.Color.DarkGray; this.textBox1.Location = new System.Drawing.Point(12, 19); this.textBox1.Multiline = true; this.textBox1.Name = "textBox1"; this.textBox1.Size = new System.Drawing.Size(199, 20); this.textBox1.TabIndex = 29; this.textBox1.Text = "University of Information Technolog"; this.textBox1.TextChanged += new System.EventHandler(this.textBox1_TextChanged); // // bunifuMaterialTextbox1 // this.bunifuMaterialTextbox1.BackColor = System.Drawing.SystemColors.Control; this.bunifuMaterialTextbox1.Cursor = System.Windows.Forms.Cursors.IBeam; this.bunifuMaterialTextbox1.Font = new System.Drawing.Font("Century Gothic", 9.75F); this.bunifuMaterialTextbox1.ForeColor = System.Drawing.Color.DarkGray; this.bunifuMaterialTextbox1.HintForeColor = System.Drawing.Color.Empty; this.bunifuMaterialTextbox1.HintText = ""; this.bunifuMaterialTextbox1.isPassword = false; this.bunifuMaterialTextbox1.LineFocusedColor = System.Drawing.Color.Blue; this.bunifuMaterialTextbox1.LineIdleColor = System.Drawing.Color.Silver; this.bunifuMaterialTextbox1.LineMouseHoverColor = System.Drawing.Color.Blue; this.bunifuMaterialTextbox1.LineThickness = 3; this.bunifuMaterialTextbox1.Location = new System.Drawing.Point(17, 73); this.bunifuMaterialTextbox1.Margin = new System.Windows.Forms.Padding(4); this.bunifuMaterialTextbox1.Name = "bunifuMaterialTextbox1"; this.bunifuMaterialTextbox1.Size = new System.Drawing.Size(379, 37); this.bunifuMaterialTextbox1.TabIndex = 30; this.bunifuMaterialTextbox1.TextAlign = System.Windows.Forms.HorizontalAlignment.Left; // // textBox2 // this.textBox2.BackColor = System.Drawing.SystemColors.Control; this.textBox2.BorderStyle = System.Windows.Forms.BorderStyle.None; this.textBox2.Font = new System.Drawing.Font("Sitka Banner", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.textBox2.ForeColor = System.Drawing.Color.Green; this.textBox2.Location = new System.Drawing.Point(17, 117); this.textBox2.Multiline = true; this.textBox2.Name = "textBox2"; this.textBox2.Size = new System.Drawing.Size(199, 20); this.textBox2.TabIndex = 31; this.textBox2.Text = "Đồ án Nhập môn Công nghệ Phần mềm"; // // textBox3 // this.textBox3.BackColor = System.Drawing.SystemColors.Control; this.textBox3.BorderStyle = System.Windows.Forms.BorderStyle.None; this.textBox3.Font = new System.Drawing.Font("Sitka Banner", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.textBox3.ForeColor = System.Drawing.Color.Green; this.textBox3.Location = new System.Drawing.Point(17, 143); this.textBox3.Multiline = true; this.textBox3.Name = "textBox3"; this.textBox3.Size = new System.Drawing.Size(213, 22); this.textBox3.TabIndex = 32; this.textBox3.Text = "Giảng viên: Phan Nguyệt Minh"; // // textBox4 // this.textBox4.BackColor = System.Drawing.SystemColors.Control; this.textBox4.BorderStyle = System.Windows.Forms.BorderStyle.None; this.textBox4.Font = new System.Drawing.Font("Sitka Banner", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.textBox4.ForeColor = System.Drawing.Color.Green; this.textBox4.Location = new System.Drawing.Point(86, 162); this.textBox4.Multiline = true; this.textBox4.Name = "textBox4"; this.textBox4.Size = new System.Drawing.Size(213, 23); this.textBox4.TabIndex = 33; this.textBox4.Text = "Huỳnh Hồ Thị Mộng Trinh"; // // textBox5 // this.textBox5.BackColor = System.Drawing.SystemColors.Control; this.textBox5.BorderStyle = System.Windows.Forms.BorderStyle.None; this.textBox5.Font = new System.Drawing.Font("Sitka Banner", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.textBox5.ForeColor = System.Drawing.Color.Green; this.textBox5.Location = new System.Drawing.Point(17, 191); this.textBox5.Multiline = true; this.textBox5.Name = "textBox5"; this.textBox5.Size = new System.Drawing.Size(247, 22); this.textBox5.TabIndex = 34; this.textBox5.Text = "Nhóm 9 gồm: Hồ Thái Ngọc - 16520825"; // // textBox6 // this.textBox6.BackColor = System.Drawing.SystemColors.Control; this.textBox6.BorderStyle = System.Windows.Forms.BorderStyle.None; this.textBox6.Font = new System.Drawing.Font("Sitka Banner", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.textBox6.ForeColor = System.Drawing.Color.Green; this.textBox6.Location = new System.Drawing.Point(100, 211); this.textBox6.Multiline = true; this.textBox6.Name = "textBox6"; this.textBox6.Size = new System.Drawing.Size(247, 22); this.textBox6.TabIndex = 35; this.textBox6.Text = "Nguyễn Công Minh - 16520740"; // // textBox7 // this.textBox7.BackColor = System.Drawing.SystemColors.Control; this.textBox7.BorderStyle = System.Windows.Forms.BorderStyle.None; this.textBox7.Font = new System.Drawing.Font("Sitka Banner", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.textBox7.ForeColor = System.Drawing.Color.Green; this.textBox7.Location = new System.Drawing.Point(100, 232); this.textBox7.Multiline = true; this.textBox7.Name = "textBox7"; this.textBox7.Size = new System.Drawing.Size(247, 22); this.textBox7.TabIndex = 36; this.textBox7.Text = "Pham Thị Hoàng Mai - 16520717"; // // textBox8 // this.textBox8.BackColor = System.Drawing.SystemColors.Control; this.textBox8.BorderStyle = System.Windows.Forms.BorderStyle.None; this.textBox8.Font = new System.Drawing.Font("Sitka Banner", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.textBox8.ForeColor = System.Drawing.Color.Green; this.textBox8.Location = new System.Drawing.Point(100, 253); this.textBox8.Multiline = true; this.textBox8.Name = "textBox8"; this.textBox8.Size = new System.Drawing.Size(247, 22); this.textBox8.TabIndex = 37; this.textBox8.Text = "Phan Vĩnh Long - 16520695"; // // pictureBox1 // this.pictureBox1.BackgroundImage = global::Lan_Messenger.Properties.Resources.logo_chat; this.pictureBox1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; this.pictureBox1.Location = new System.Drawing.Point(286, 114); this.pictureBox1.Name = "pictureBox1"; this.pictureBox1.Size = new System.Drawing.Size(120, 120); this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; this.pictureBox1.TabIndex = 38; this.pictureBox1.TabStop = false; // // FormAbout // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(417, 334); this.Controls.Add(this.pictureBox1); this.Controls.Add(this.textBox8); this.Controls.Add(this.textBox7); this.Controls.Add(this.textBox6); this.Controls.Add(this.textBox5); this.Controls.Add(this.textBox4); this.Controls.Add(this.textBox3); this.Controls.Add(this.textBox2); this.Controls.Add(this.bunifuMaterialTextbox1); this.Controls.Add(this.textBox1); this.Controls.Add(this.panel1); this.Controls.Add(this.label1); this.Controls.Add(this.btnOK); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.MaximizeBox = false; this.MinimizeBox = false; this.Name = "FormAbout"; this.ShowIcon = false; this.ShowInTaskbar = false; ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit(); this.ResumeLayout(false); this.PerformLayout(); }
// Перевірка пароля private void EnterConfirm(object sender, EventArgs e) { Bunifu.Framework.UI.BunifuMaterialTextbox temp = sender as Bunifu.Framework.UI.BunifuMaterialTextbox; Lib.EnterConfirm(temp); }
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(); }
/// <summary> /// Check length of the string and take desired max length sub string and return the latest value if its necessary. /// </summary> /// <param name="txt">Textbox Object</param> /// <param name="Length">Desired Length</param> /// <returns>Trimmed string</returns> public static string MaximumLength(this Bunifu.Framework.UI.BunifuMaterialTextbox txt, int Length) { return((txt.Text.Length > Length) ? txt.Text.Substring(0, Length) : txt.Text); }