protected override void Cancel() { Lista_Fond(); base.Cancel(); FondEditBS.CancelEdit(); FondEditBS.ResetBindings(false); }
protected override void Dodaj() { base.Dodaj(); fond = FondEdit.CreateFondEdit(); FondEditBS.DataSource = fond; FondEditBS.ResetBindings(false); txt_sifra_fond.Focus(); }
protected override void Izmjeni() { base.Izmjeni(); try { if (FondInfoListBS.Current == null) { return; } var select = FondInfoListBS.Current as FondInfo; fond = FondEdit.GetFondEdit(select.Id); FondEditBS.DataSource = fond; fond.Id = select.Id; FondEditBS.ResetBindings(false); txt_sifra_fond.Focus(); } catch (DataPortalException ex) { MessageBox.Show(ex.BusinessException.Message, "Izmjeni", MessageBoxButtons.OK, MessageBoxIcon.Information); } }