private void button8_Click(object sender, EventArgs e) { this.Hide(); u.Logout(); Login_Form f1 = new Login_Form(0); f1.ShowDialog(); }
private void timer1_Tick(object sender, EventArgs e) { metroProgressBar1.Increment(1); if (metroProgressBar1.Value == 100) { timer1.Stop(); this.Hide(); Login_Form lg = new Login_Form(); lg.ShowDialog(); } }
public Nurse() { InitializeComponent(); if (SessionClass.SessionId == 0) { Login_Form f1 = new Login_Form(0); f1.ShowDialog(); } label1.Text = " " + SessionClass.SessionId.ToString(); }
private void FormPrincipal_Load(object sender, EventArgs e) { Test_Configuration.Test_Flies(); ShowCredit(credits); var form = new Login_Form(); sendId send = new sendId(form.FoundFp); send(this); form.ShowDialog(); Load_Somme(); }
private void Form1_Load(object sender, EventArgs e) { PubCon.testFile(); var form = new Login_Form(); SendId send = new SendId(form.FundForm1); send(this); form.ShowDialog(); //Login_Form frm = new Login_Form(); //frm.ShowDialog(); //SendId send = new SendId(login.FundForm1); //send(this); ShowProduit(produit); }
private void closeFormToolStripMenuItem_Click(object sender, System.EventArgs e) { DialogResult dia = MessageBox.Show("Do You Really Wany To Log Out?", "Pharmacy System", MessageBoxButtons.YesNo); if (dia == DialogResult.Yes) { if (lblRank.Text == "1") { this.Hide(); Admin_Form ad = new Admin_Form(); ad.ShowDialog(); } else { this.Hide(); Login_Form lf = new Login_Form(); lf.ShowDialog(); } } else if (dia == DialogResult.No) { btnAddP.Focus(); } }