예제 #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();
                }
            }
        }
예제 #2
0
        public void InitializeSearchClientForm()
        {
            SearchClientForm searchClientForm = SearchClientForm.GetInstance(this);

            searchClientForm.BringToFront();
            searchClientForm.WindowState = FormWindowState.Normal;
            searchClientForm.Show();
        }
예제 #3
0
        private void OnSearchClientClick(object sender, LinkLabelLinkClickedEventArgs e)
        {
            var searchForm = SearchClientForm.GetInstance(this);

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

            return(_theUniqueInstance1);
        }
예제 #5
0
        public static SearchClientForm GetInstance(OClientTypes pTiersEnum, bool includeNotactiveOnly)
        {
            if (_theUniqueInstance3 == null)
            {
                return(_theUniqueInstance3 = new SearchClientForm(pTiersEnum, includeNotactiveOnly));
            }

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

            return(_theUniqueInstance3);
        }
예제 #7
0
        public static SearchClientForm GetInstance(Control pMDIForm, IApplicationController applicationController)
        {
            if (_theUniqueInstance1 == null)
            {
                return(_theUniqueInstance1 = new SearchClientForm(pMDIForm, applicationController));
            }

            return(_theUniqueInstance1);
        }
예제 #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;
     }
 }
예제 #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;
 }
예제 #10
0
        public static SearchClientForm GetInstance(OClientTypes pTiersEnum, bool includeNotactiveOnly)
        {
            if (_theUniqueInstance3 == null)
                return _theUniqueInstance3 = new SearchClientForm(pTiersEnum, includeNotactiveOnly);

            return _theUniqueInstance3;
        }
예제 #11
0
        public static SearchClientForm GetInstance(Control pMDIForm)
        {
            if (_theUniqueInstance1 == null)
                return _theUniqueInstance1 = new SearchClientForm(pMDIForm);

            return _theUniqueInstance1;
        }