private void SelectAGuarantor() { using (SearchClientForm searchClientForm = SearchClientForm.GetInstance(OClientTypes.Person, false, _applicationController)) { searchClientForm.ShowDialog(); _guarantor.Tiers = searchClientForm.Client; try { if (ServicesProvider.GetInstance().GetClientServices().ClientIsAPerson(_guarantor.Tiers)) { ServicesProvider.GetInstance().GetClientServices().ClientsNumberGuarantee(_guarantor.Tiers); textBoxName.Text = _guarantor.Tiers.Name; } else { textBoxName.Text = String.Empty; } } catch (Exception ex) { new frmShowError(CustomExceptionHandler.ShowExceptionText(ex)).ShowDialog(); } } }
public void InitializeSearchClientForm() { SearchClientForm searchClientForm = SearchClientForm.GetInstance(this); searchClientForm.BringToFront(); searchClientForm.WindowState = FormWindowState.Normal; searchClientForm.Show(); }
private void OnSearchClientClick(object sender, LinkLabelLinkClickedEventArgs e) { var searchForm = SearchClientForm.GetInstance(this); searchForm.BringToFront(); searchForm.WindowState = FormWindowState.Normal; searchForm.Show(); }