void Ставка_статистикаRowModified(object sender, KrutDataSet.Ставка_статистикаRowChangeEvent e) { adapter.Update(dataset.Ставка_статистика); }
private void Button_Click_5(object sender, RoutedEventArgs e) { WageOfTheStatistician WoTs = new WageOfTheStatistician(); WoTs._variant = Convert.ToInt32(vCoverage.Text); WoTs._vozrast = Convert.ToInt32(document.Text); WoTs._pol = pol.Text; WoTs.DeleteInsuranseStatistac(WoTs._variant, WoTs._vozrast, WoTs._pol); vCoverage.Text = "0"; document.Text = "0"; lx.Text = "0"; dx.Text = "0"; bx.Text = "0"; zx.Text = "0"; fx.Text = "0"; KrutDataSetTableAdapters.Ставка_статистикаTableAdapter adapter2; KrutDataSet dataset2 = new KrutDataSet(); adapter2 = new KrutDataSetTableAdapters.Ставка_статистикаTableAdapter(); adapter2.Fill(dataset2.Ставка_статистика); dataset2.Ставка_статистика.Ставка_статистикаRowChanged += new KrutDataSet.Ставка_статистикаRowChangeEventHandler(Ставка_статистикаRowModified); this.DataContext = dataset2.Ставка_статистика.DefaultView; }
private void Button_Click_6(object sender, RoutedEventArgs e) { WageOfTheStatistician WoTs = new WageOfTheStatistician(); WoTs._variant = Convert.ToInt32(vCoverage.Text); WoTs._vozrast = Convert.ToInt32(document.Text); WoTs._pol = pol.Text; WoTs._life = Convert.ToInt32(lx.Text); WoTs._alldead = Convert.ToInt32(dx.Text); WoTs._DTP = Convert.ToInt32(bx.Text); WoTs._NS = Convert.ToInt32(zx.Text); WoTs._ES = Convert.ToInt32(fx.Text); WoTs._data = DateTime.Now; WoTs.UpdateInsuranseStatistac(WoTs._variant,WoTs._pol, WoTs._life, WoTs._alldead, WoTs._DTP, WoTs._NS, WoTs._ES, WoTs._vozrast, WoTs._data); KrutDataSetTableAdapters.Ставка_статистикаTableAdapter adapter2; KrutDataSet dataset2 = new KrutDataSet(); adapter2 = new KrutDataSetTableAdapters.Ставка_статистикаTableAdapter(); adapter2.Fill(dataset2.Ставка_статистика); dataset2.Ставка_статистика.Ставка_статистикаRowChanged += new KrutDataSet.Ставка_статистикаRowChangeEventHandler(Ставка_статистикаRowModified); this.DataContext = dataset2.Ставка_статистика.DefaultView; }