public void Update(object sender, EventArgs e) { if (ugdShema.ActiveRow != null) { BusinessLogic.Obracuni.pIDShema = (int)ugdShema.ActiveRow.Cells["ID"].Value; using (uscShema uscShema = new uscShema(Enums.FormEditMode.Update, BusinessLogic.Obracuni.pIDShema)) { uscShema.ShowDialogForm("Shema učeničko fakturiranje"); LoadGridShema(); } } }
public void Insert(object sender, EventArgs e) { //if (ugdShema.ActiveRow != null) //{ // MessageBox.Show("Nije moguče napravit više od jedne sheme\nknjiženja za učeničko fakturiranje."); //} //else //{ //} using (uscShema uscShema = new uscShema(Enums.FormEditMode.Insert, -1)) { uscShema.ShowDialogForm("Shema učeničko fakturiranje"); LoadGridShema(); } }