Example #1
0
 protected override void Cancel()
 {
     Lista_Fond();
     base.Cancel();
     FondEditBS.CancelEdit();
     FondEditBS.ResetBindings(false);
 }
Example #2
0
 protected override void Dodaj()
 {
     base.Dodaj();
     fond = FondEdit.CreateFondEdit();
     FondEditBS.DataSource = fond;
     FondEditBS.ResetBindings(false);
     txt_sifra_fond.Focus();
 }
Example #3
0
 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);
     }
 }