示例#1
0
 private void btngiris_Click(object sender, EventArgs e)
 {
     using (EntityDataModels db = new EntityDataModels())
     {
         Daire daire = (from ist in db.Istifadecilers
                        join d in db.Daires on ist.DaireKodu equals d.DaireKodu
                        where ist.Ist_ad == txtlogin.Text &&
                        ist.Parol == txtparol.Text
                        select d).FirstOrDefault <Daire>();
         if (daire != null)
         {
             MenuFRM menu = new MenuFRM();
             menu.daire = daire;
             this.Hide();
             menu.Show();
             //this.Close();
             //thr = new Thread(yeniform);
             //thr.TrySetApartmentState(ApartmentState.STA);
             //thr.Start();
         }
         else
         {
             lblmessage.Text = "İstifadəçi adı və ya parol səhvdir.";
         }
     }
 }
示例#2
0
        private void DaimiUC_Load_1(object sender, EventArgs e)
        {
            MenuFRM menu = this.Parent as MenuFRM;

            cmbmenteqeload(menu.daire.DaireKodu);
            cmbbinamertebeload();
            cmbsebeblaod();
            cmbdogumiliload();
            cmbdogumayload();
            cmbdogumgunuload();
            cmbseriyaload();
            cmbstatuslaod();
            cmbqurumadiload();
        }