private void geri_Click(object sender, EventArgs e) { Form anaEkran = new anaEkran(); anaEkran.Show(); this.Hide(); }
private void frmOdalar_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Escape) { Form anaEkran = new anaEkran(); anaEkran.Show(); this.Hide(); } }
private void button3_Click(object sender, EventArgs e) { if (textBox1.Text == string.Empty || textBox2.Text == string.Empty) { MessageBox.Show("Lütfen kullamıcı adını ve şifrenizi giriniz.", "HATA | Hotel Otomasyonu", MessageBoxButtons.OK, MessageBoxIcon.Information); } else { grs.girisYap(textBox1.Text, textBox2.Text, DateTime.Now); string bilgiTut = textBox1.Text.ToString() + " " + textBox2.Text.ToString(); if (grs.girisDurumu == bilgiTut) { main.Show(); this.Hide(); } } }