Exemplo n.º 1
0
 public Wage()
 {
     InitializeComponent();
     adapter = new KrutDataSetTableAdapters.СтавкаTableAdapter();
     adapter.Fill(dataset.Ставка);
     this.DataContext = dataset.Ставка.DefaultView;
 }
Exemplo n.º 2
0
 private void Button_Click_6(object sender, RoutedEventArgs e)
 {
     CommonWage commonWage = new CommonWage();
     commonWage._PoY = Convert.ToInt32(pokaz.Text);
     commonWage._PoYinv = Convert.ToInt32(lx.Text);
     commonWage._ProgSrefen = Convert.ToInt32(dx.Text);
     commonWage._srProSt = Convert.ToDouble(pokazat2.Text);
     commonWage.UpdateWage(commonWage._PoY, commonWage._PoYinv, commonWage._ProgSrefen, commonWage._srProSt);
     adapter = new KrutDataSetTableAdapters.СтавкаTableAdapter();
     adapter.Fill(dataset.Ставка);
     this.DataContext = dataset.Ставка.DefaultView;
     MessageBox.Show("Внесены изменения в таблицу ставки");
 }