コード例 #1
0
 private void BtnSearch_Click(object sender, EventArgs e)
 {
     if (CodeClientDetails.Text != string.Empty)
     {
         DetailsRepository.DefractionnerObjetReaderDetails(ProgramManager.RecupDataDetails(CodeClientDetails.Text),
                                                           PicLicence1, PicLicence2, PicLicence3, DateExpirationDelais, DebutLicenceDetails, GropLicences, NumeroLicnceDetails,
                                                           JourRestant, NomClientDetail, txtZipeCode, JourRestant);
         LicenceDelaisManager.CodeCouleurDetails(JourRestant);
     }
 }
コード例 #2
0
 private void FrmDetails_Shown(object sender, EventArgs e)
 {
     CodeClientDetails.Text = ClientCode;
     try
     {
         if (Dialog)
         {
             DetailsRepository.DefractionnerObjetReaderDetails(ProgramManager.RecupDataDetails(CodeClientDetails.Text),
                                                               PicLicence1, PicLicence2, PicLicence3, DateExpirationDelais, DebutLicenceDetails, GropLicences, NumeroLicnceDetails, JourRestant, NomClientDetail, txtZipeCode, JourRestant);
             LicenceDelaisManager.CodeCouleurDetails(JourRestant); Dialog = false;
         }
         else
         {
             CodeClientDetails.Enabled = true;
             return;
         }
     }
     catch
     {
         MsgBox.Show(this, MessagesSystem.ErreurConsulterDetails);
         this.Close();
     }
 }