private void BtnAdd_Click(object sender, EventArgs e) { FlagSelectedBtn = 0; SaveToDB addForm = new SaveToDB(this); addForm.Show(); }
private void BtnUpdate_Click(object sender, EventArgs e) { FlagSelectedBtn = 1; DataForBtnUpdate = new List <string>(); for (int i = 0; i < 7; i++) { DataForBtnUpdate.Add(dataGridView1.SelectedCells[i].Value.ToString()); } SaveToDB addForm = new SaveToDB(this); addForm.Show(); }