private void btnSelectPerson_Click(object sender, RoutedEventArgs e) { try { var frmPersonInfo = new PersonInfoSubmit(); frmPersonInfo.ShowDialog(); var person = Business.GetPayrollPersonBusiness().GetById(frmPersonInfo.PersonId); txtPerson.Text = person == null ? string.Empty : person.PPerson_Code; } catch { throw; } }
private void btnSelectPerson_Click(object sender, RoutedEventArgs e) { try { var frmPersonInfo = new PersonInfoSubmit(); frmPersonInfo.ShowDialog(); var person = Business.GetPayrollPersonBusiness().GetById(frmPersonInfo.PersonId); txtPerson.Text = person == null ? string.Empty : person.PPerson_Code; } catch (Exception ex) { AccountingKernel.Forms.Base.BaseWindow.ShowError(ex); } }