Exemplo n.º 1
0
        private void ButtonNewGrad_Click(object sender, EventArgs e)
        {
            GradEditForm form = new GradEditForm();

            form.ShowDialog();
            LoadDatagrid();
        }
Exemplo n.º 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();
            }
        }