Exemplo n.º 1
0
 ///<summary>Uploads Preferences to the Patient Portal /Mobile Web.</summary>
 public static void UploadPreference(PrefName prefname)
 {
     try {
         if (TestWebServiceExists())
         {
             Prefm prefm = Prefms.GetPrefm(prefname.ToString());
             mb.SetPreference(PrefC.GetString(PrefName.RegistrationKey), prefm);
         }
     }
     catch (Exception ex) {
         MessageBox.Show(ex.Message);                //may not show if called from a thread but that does not matter - the failing of this method should not stop the  the code from proceeding.
     }
 }
Exemplo n.º 2
0
 ///<summary>Uploads Preferences to the Patient Portal /Mobile Web.</summary>
 public static void UploadPreference(PrefName prefname)
 {
     if (PrefC.GetString(PrefName.RegistrationKey) == "")
     {
         return;                //Prevents a bug when using the trial version with no registration key.  Practice edit, OK, was giving error.
     }
     try {
         if (TestWebServiceExists())
         {
             Prefm prefm = Prefms.GetPrefm(prefname.ToString());
             mb.SetPreference(PrefC.GetString(PrefName.RegistrationKey), prefm);
         }
     }
     catch (Exception ex) {
         MessageBox.Show(ex.Message);                //may not show if called from a thread but that does not matter - the failing of this method should not stop the  the code from proceeding.
     }
 }