public void Insert(object sender, EventArgs e) { RazredForm razredForm = new RazredForm(Enums.FormEditMode.Insert, null); if (razredForm.ShowDialogForm("Razred") == DialogResult.OK) { try { BusinessLogic.Razredi.pSelectedIndex = UltraGridRazredi.ActiveRow.Index; } catch { } LoadGridRazredi(); } }
public void Copy(object sender, EventArgs e) { if (this.UltraGridRazredi.ActiveRow != null) { int id = Convert.ToInt32(this.UltraGridRazredi.ActiveRow.Cells["ID"].Value); RazredForm razredForm = new RazredForm(Enums.FormEditMode.Copy, id); if (razredForm.ShowDialogForm("Razred") == DialogResult.OK) { BusinessLogic.Razredi.pSelectedIndex = UltraGridRazredi.ActiveRow.Index; LoadGridRazredi(); } } }