private void button2_Click(object sender, EventArgs e) { kursOOP.Add a = new kursOOP.Add(); a.tovarBindingSource.DataSource = tovarBindingSource; a.tovarBindingSource.Position = tovarBindingSource.Position; if (a.ShowDialog() == System.Windows.Forms.DialogResult.OK) tovarTableAdapter.Update(this.allDataSet.Tovar); }
private void button2_Click(object sender, EventArgs e) { kursOOP.Add a = new kursOOP.Add(); a.tovarBindingSource.DataSource = tovarBindingSource; a.tovarBindingSource.Position = tovarBindingSource.Position; if (a.ShowDialog() == System.Windows.Forms.DialogResult.OK) { tovarTableAdapter.Update(this.allDataSet.Tovar); } }