Beispiel #1
0
 private void button1_Click(object sender, EventArgs e)
 {
     using (BankDataContext context = new BankDataContext())
     {
         int numberId = Existansions.PhoneByNumber(context, txbx_number.Text);
         if (numberId != 0)
         {
             Session.model = query.GettAllCardById(numberId);
             if (Session.model.Count == 0)
             {
                 var data = context.People.Where(x => x.Id == numberId).ToList();
                 SessionDb.Session.People = data;
             }
             Form4 form = new Form4();
             this.Hide();
             form.ShowDialog();
         }
         else
         {
             MessageBox.Show("Bele bir Nomrenin Card Sahibi Yoxdur");
         }
     }
 }