Esempio n. 1
0
        private void BtnAdd_Click(object sender, EventArgs e)
        {
            FlagSelectedBtn = 0;

            SaveToDB addForm = new SaveToDB(this);

            addForm.Show();
        }
Esempio n. 2
0
        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();
        }