예제 #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            Helper hlp = new Helper();


            using (SqlDataReader dr = hlp.ExecuteReader("select * from saglayicilar", null))
            {
                dr.Read();
                if (txtYetkili.Text.ToLower() == dr[2].ToString().ToLower() && txtSifre.Text.ToLower() == dr[3].ToString().ToLower())
                {
                    Yonetici ynt = new Yonetici();
                    ynt.saglayici_sirket = dr[1].ToString();
                    ynt.saglayici_mail   = dr[2].ToString().ToLower();
                    ynt.saglayici_sifre  = dr[3].ToString().ToLower();
                    Yonetim frm1 = new Yonetim(ynt);
                    frm1.Show();
                }
                else
                {
                    MessageBox.Show("Yetkili Bilgisi Bulunamadı");
                }
            }
        }
예제 #2
0
 public MusteriAra(Yonetim form1)
 {
     InitializeComponent();
     this.form1 = form1;
 }