private void btn_insert_Click(object sender, EventArgs e) { InsertNew fm = new InsertNew(); if (fm.ShowDialog() == DialogResult.OK) { dGrV_main.DataSource = SachBUS.LoadAll(); } ; }
private void btn_Update_Click(object sender, EventArgs e) { int index = dGrV_main.SelectedRows.Count; if (index > 0) { DataGridViewCellCollection r = dGrV_main.SelectedRows[0].Cells; Sach s = createSach(r); InsertNew fm = new InsertNew(s); if (fm.ShowDialog() == DialogResult.OK) { dGrV_main.DataSource = SachBUS.LoadAll(); } ; } }
private void Edit(Sach s) { InsertNew fm = new InsertNew(s); fm.ShowDialog(); }