Esempio n. 1
0
        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();
        }
Esempio n. 3
0
        private void OnSearchClientClick(object sender, LinkLabelLinkClickedEventArgs e)
        {
            var searchForm = SearchClientForm.GetInstance(this);

            searchForm.BringToFront();
            searchForm.WindowState = FormWindowState.Normal;
            searchForm.Show();
        }
Esempio n. 4
0
        public static SearchClientForm GetInstance(Control pMDIForm)
        {
            if (_theUniqueInstance1 == null)
            {
                return(_theUniqueInstance1 = new SearchClientForm(pMDIForm));
            }

            return(_theUniqueInstance1);
        }
Esempio n. 5
0
        public static SearchClientForm GetInstance(OClientTypes pTiersEnum, bool includeNotactiveOnly)
        {
            if (_theUniqueInstance3 == null)
            {
                return(_theUniqueInstance3 = new SearchClientForm(pTiersEnum, includeNotactiveOnly));
            }

            return(_theUniqueInstance3);
        }
Esempio n. 6
0
        public static SearchClientForm GetInstance(OClientTypes pTiersEnum, bool includeNotactiveOnly, IApplicationController applicatinController)
        {
            if (_theUniqueInstance3 == null)
            {
                return(_theUniqueInstance3 = new SearchClientForm(pTiersEnum, includeNotactiveOnly, applicatinController));
            }

            return(_theUniqueInstance3);
        }
Esempio n. 7
0
        public static SearchClientForm GetInstance(Control pMDIForm, IApplicationController applicationController)
        {
            if (_theUniqueInstance1 == null)
            {
                return(_theUniqueInstance1 = new SearchClientForm(pMDIForm, applicationController));
            }

            return(_theUniqueInstance1);
        }
Esempio n. 8
0
 /// <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;
     }
 }
Esempio n. 9
0
 /// <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;
 }
Esempio n. 10
0
        public static SearchClientForm GetInstance(OClientTypes pTiersEnum, bool includeNotactiveOnly)
        {
            if (_theUniqueInstance3 == null)
                return _theUniqueInstance3 = new SearchClientForm(pTiersEnum, includeNotactiveOnly);

            return _theUniqueInstance3;
        }
Esempio n. 11
0
        public static SearchClientForm GetInstance(Control pMDIForm)
        {
            if (_theUniqueInstance1 == null)
                return _theUniqueInstance1 = new SearchClientForm(pMDIForm);

            return _theUniqueInstance1;
        }