private void LoadInfosCompteInForm() { Cursor.Current = Cursors.WaitCursor; if (Classes.clsProperties.objCompte != null && Classes.clsProperties.objCompte.IdCompte != 0) { this.m_objCompte = (Compte.ObjetCompte)Classes.clsProperties.objCompte.Clone(); this.TXT_ADRESSE_COMPTE.Text = this.m_objCompte.AdresseCompte; this.TXT_CODE_POSTAL_COMPTE.Text = this.m_objCompte.CodePostalCompte; this.TXT_DESCRIPTION_COMPTE.Text = this.m_objCompte.DescriptionCompte; this.TXT_FAX_COMPTE.Text = this.m_objCompte.FaxCompte; this.TXT_LIBELLE_COMPTE.Text = this.m_objCompte.LibelleCompte; this.TXT_MAIL_COMPTE.Text = this.m_objCompte.MailCompte; this.TXT_NUM_SIRET_COMPTE.Text = this.m_objCompte.SiretCompte; this.TXT_NUM_TVA_COMPTE.Text = this.m_objCompte.TvaCompte; this.TXT_PAYS_COMPTE.Text = this.m_objCompte.PaysCompte; this.TXT_PORTABLE_COMPTE.Text = this.m_objCompte.PortableCompte; this.TXT_TELEPHONE_COMPTE.Text = this.m_objCompte.TelephoneCompte; this.TXT_VILLE_COMPTE.Text = this.m_objCompte.VilleCompte; this.CMB_COULEUR.SelectedValue = this.m_objCompte.Couleur.IdTypeCouleur; } Cursor.Current = Cursors.Default; }
public ObjetDevis() { this.m_objCompte = Classes.clsProperties.objCompte; }