Ejemplo n.º 1
0
 private void Degraduj_Click(object sender, EventArgs e)
 {
     Osoba.Items.Clear();
     nowapensja = int.Parse(tekst_pensja.Text);
     using (P_BankowoscEntities Dane = new P_BankowoscEntities()) {
         Dane.Pracownik_Manage(this.next, this.id, this.nowapensja);
         Dane.SaveChanges();
         this.IdTab = printDane();
     }
     tekst_pensja.Text = "";
 }
Ejemplo n.º 2
0
 private void FormAwans_Click(object sender, EventArgs e)
 {
     try {
         float nowaPensja = float.Parse(Pensja2.Text);
         Osoba.Items.Clear();
         using (P_BankowoscEntities Dane = new P_BankowoscEntities()) {
             Dane.Pracownik_Manage(this.next, this.id, nowaPensja);
             Dane.SaveChanges();
             this.IdTab = printDane();
         }
     }
     catch (System.FormatException) {
     }
     Pensja2.Text = "";
 }