Exemplo n.º 1
0
 private void btnRecivePlace_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         var frm_ShowFunds = new Frm_ShowFunds();
         frm_ShowFunds.ShowDialog();
         var fund = Business.GetFundsBusiness().GetById(frm_ShowFunds.FundId);
         if (fund == null)
         {
             return;
         }
         FundId = fund.ID;
         txtRecivePlace.Text = string.Format("{0}{1}{2}", fund.FAccountnumber, Localize.Cheque_Fund_Seperator, fund.FName);
         //}
         //else
         //{
         //    var frm_ShowBanks = new Frm_ShowBanks();
         //    frm_ShowBanks.ShowDialog();
         //    var fund = Business.GetFundsBusiness().GetById(frm_ShowBanks.FundId);
         //    if (fund == null)
         //        return;
         //    txtRecivePlace.Text = string.Format("{0}{1}{2}", fund.FAccountnumber, Localize.Cheque_Fund_Seperator, fund.FBank);
         //}
     }
     catch (Exception ex)
     {
         AccountingKernel.Forms.Base.BaseWindow.ShowError(ex);
     }
 }
 private void btnRecivePlace_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         var frm_ShowFunds = new Frm_ShowFunds(Common.Constants.BankType.Sandogh);
         frm_ShowFunds.ShowDialog();
         FundId = frm_ShowFunds.FundId;
     }
     catch (Exception ex)
     {
         AccountingKernel.Forms.Base.BaseWindow.ShowError(ex);
     }
 }