Пример #1
0
        private void ButtonNewGrad_Click(object sender, EventArgs e)
        {
            GradEditForm form = new GradEditForm();

            form.ShowDialog();
            LoadDatagrid();
        }
Пример #2
0
        private void ButtonEditGrad_Click(object sender, EventArgs e)
        {
            int id = int.Parse(dbDataGridView1.SelectedRows[0].Cells[0].Value.ToString());

            Grad.GetGradById(id);

            if (Odabir)
            {
                Close();
            }
            else
            {
                GradEditForm pn = new GradEditForm(Grad);
                pn.ShowDialog();
                LoadDatagrid();
            }
        }