コード例 #1
0
        private void BtnGeri_Click(object sender, EventArgs e)
        {
            YoneticiEkran AdminForm = new YoneticiEkran();

            AdminForm.Show();
            this.Hide();
        }
コード例 #2
0
 private void btnGiris_Click(object sender, EventArgs e)
 {
     if (TbKullaniciadi.Text == string.Empty || TbSifre.Text == string.Empty)
     {
         MessageBox.Show("Lütfen kullanıcı adı veya şifreyi boş bırakmayınız.", "Hata | Eczane Otomasyonu ", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
     else
     {
         grs.girisYap(TbKullaniciadi.Text, TbSifre.Text);
         string bilgiTut = TbKullaniciadi.Text + "" + TbSifre.Text.ToString();
         if (grs.girisDurumu == bilgiTut)
         {
             if (grs.yoneticimi_tut == true)
             {
                 YoneticiEkran AdminFormGiris = new YoneticiEkran();
                 AdminFormGiris.Show();
                 this.Hide();
             }
             else if (grs.yoneticimi_tut == false)
             {
                 EczaneOtomasyon PersonelFormGiris = new EczaneOtomasyon();
                 PersonelFormGiris.Show();
                 this.Hide();
             }
         }
     }
 }