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(); }
public static SearchClientForm GetInstance(Control pMDIForm) { if (_theUniqueInstance1 == null) { return(_theUniqueInstance1 = new SearchClientForm(pMDIForm)); } return(_theUniqueInstance1); }
public static SearchClientForm GetInstance(OClientTypes pTiersEnum, bool includeNotactiveOnly) { if (_theUniqueInstance3 == null) { return(_theUniqueInstance3 = new SearchClientForm(pTiersEnum, includeNotactiveOnly)); } return(_theUniqueInstance3); }
public static SearchClientForm GetInstance(OClientTypes pTiersEnum, bool includeNotactiveOnly, IApplicationController applicatinController) { if (_theUniqueInstance3 == null) { return(_theUniqueInstance3 = new SearchClientForm(pTiersEnum, includeNotactiveOnly, applicatinController)); } return(_theUniqueInstance3); }
public static SearchClientForm GetInstance(Control pMDIForm, IApplicationController applicationController) { if (_theUniqueInstance1 == null) { return(_theUniqueInstance1 = new SearchClientForm(pMDIForm, applicationController)); } return(_theUniqueInstance1); }
/// <summary> /// Nettoyage des ressources utilis�es. /// </summary> protected override void Dispose(bool disposing) { if (disposing) { if (components != null) { components.Dispose(); } } base.Dispose(disposing); if (test == 2) { _theUniqueInstance3 = null; } if (test == 1) { _theUniqueInstance1 = null; } }
/// <summary> /// Nettoyage des ressources utilis�es. /// </summary> protected override void Dispose(bool disposing) { if (disposing) { if (components != null) { components.Dispose(); } } base.Dispose(disposing); if (test == 2) _theUniqueInstance3 = null; if (test == 1) _theUniqueInstance1 = null; }
public static SearchClientForm GetInstance(OClientTypes pTiersEnum, bool includeNotactiveOnly) { if (_theUniqueInstance3 == null) return _theUniqueInstance3 = new SearchClientForm(pTiersEnum, includeNotactiveOnly); return _theUniqueInstance3; }
public static SearchClientForm GetInstance(Control pMDIForm) { if (_theUniqueInstance1 == null) return _theUniqueInstance1 = new SearchClientForm(pMDIForm); return _theUniqueInstance1; }