Esempio n. 1
0
 public NADHatVM(NADHat modele) : base(modele)
 {
     modele.SurReceptionReponseCommandeAT       += Modele_SurReceptionReponseCommandeAT;
     modele.SurReceptionNotificationAvecDonnees += Modele_SurReceptionReponseCommandeAT;
     modele.SurSuppressionTousSmsDansMemoire    += Modele_SurSuppressionTousSmsDansMemoire;
     modele.SurAjoutSmsDansMemoire         += Modele_SurAjoutSmsDansMemoire;
     modele.SurLectureTousSmsDepuisMemoire += Modele_SurLectureTousSmsDepuisMemoire;
     _timer       = new DispatcherTimer();
     _timer.Tick += _timer_Tick;
 }
Esempio n. 2
0
 private void ChargerValeurs(string modele, int posDebutTableau, int posFinTableau)
 {
     string[] tabValeurs = modele.Substring(posDebutTableau + 1, posFinTableau - posDebutTableau - 2).Split(new string[] { "\",\"" }, StringSplitOptions.None);
     EtatMessage     = tabValeurs[0];
     EnReception     = tabValeurs[0].StartsWith("REC ");
     NumeroTelephone = tabValeurs[1];
     if (tabValeurs.Length >= 4)
     {
         Horodatage = NADHat.ConvertGsmTimestampToDateTimeOffset(tabValeurs[3]);
     }
     else
     {
         Horodatage = null;
     }
     Texte = modele.Substring(posFinTableau + 2);
 }