public SaveForma(string korisnicko, Prenos s) { p = s; InitializeComponent(); this.user = korisnicko; textBox1.Focus(); }
public RandomForma(Sema sema, int idBrojac, int idGrana, Prenos p) { this.p = p; this.sema = sema; this.idBrojac = idBrojac; idGra = idGrana; InitializeComponent(); }
public konfiguracijaNaloga(Prenos pr) { InitializeComponent(); this.CenterToScreen(); Color lightRed = ControlPaint.Light(Color.Red); this.textBox5.LostFocus += (source, e) => { t5 = true; if (string.IsNullOrWhiteSpace(textBox5.Text)) { panel9.BackColor = lightRed; } else { panel9.BackColor = Color.CornflowerBlue; } timer1.Stop(); }; this.textBox6.LostFocus += (source, e) => { t6 = true; if (string.IsNullOrWhiteSpace(textBox6.Text)) { panel10.BackColor = lightRed; } else { panel10.BackColor = Color.CornflowerBlue; } timer1.Stop(); }; this.textBox3.LostFocus += (source, e) => { t3 = true; if (string.IsNullOrWhiteSpace(textBox3.Text)) { panel4.BackColor = lightRed; } else { panel4.BackColor = Color.LightSkyBlue; } timer1.Stop(); }; this.textBox4.LostFocus += (source, e) => { t4 = true; if (string.IsNullOrWhiteSpace(textBox4.Text)) { panel6.BackColor = lightRed; } else { panel6.BackColor = Color.LightSkyBlue; } timer1.Stop(); }; this.textBox1.LostFocus += (source, e) => { t1 = true; if (!string.IsNullOrWhiteSpace(textBox1.Text) && !string.IsNullOrWhiteSpace(textBox2.Text)) { if (textBox1.Text != textBox2.Text) { panel11.BackColor = lightRed; panel12.BackColor = lightRed; } else { panel11.BackColor = Color.LightSkyBlue; panel12.BackColor = Color.LightSkyBlue; } } timer2.Stop(); }; this.textBox2.LostFocus += (source, e) => { t2 = true; if (!string.IsNullOrWhiteSpace(textBox1.Text) && !string.IsNullOrWhiteSpace(textBox2.Text)) { if (textBox1.Text != textBox2.Text) { panel11.BackColor = lightRed; panel12.BackColor = lightRed; } else { panel11.BackColor = Color.LightSkyBlue; panel12.BackColor = Color.LightSkyBlue; } } timer2.Stop(); }; this.textBox1.GotFocus += (source, e) => { trenutni = textBox1; if (t1 && t2) { timer2.Start(); } }; this.textBox2.GotFocus += (source, e) => { trenutni = textBox2; if (t2 && t1) { timer2.Start(); } }; this.textBox3.GotFocus += (source, e) => { trenutni = textBox3; if (t3) { timer1.Start(); } }; this.textBox4.GotFocus += (source, e) => { trenutni = textBox4; if (t4) { timer1.Start(); } }; this.textBox5.GotFocus += (source, e) => { trenutni = textBox5; if (t5) { timer1.Start(); } }; this.textBox6.GotFocus += (source, e) => { trenutni = textBox6; if (t6) { timer1.Start(); } }; textBox1.PasswordChar = '*'; textBox2.PasswordChar = '*'; preneseno = pr; label7.Text = "WELCOME " + pr.ime; this.ActiveControl = label7; }