Esempio n. 1
0
        void client_GetVersionCompleted(object sender, GetVersionCompletedEventArgs e)
        {
#if DEBUG
            version.Text = "Version: " + e.Result + " - DEBUG";
#elif DEV
            version.Text = "Version: " + e.Result + " - DEV";
#else
            version.Text = "Version: " + e.Result;
#endif
        }
Esempio n. 2
0
        void Client_GetVersionCompleted(object sender, GetVersionCompletedEventArgs e)
        {
            string msg     = null;
            bool   success = true;

            if (e.Error != null)
            {
                msg     = e.Error.Message;
                success = false;
            }
            else if (e.Cancelled)
            {
                msg     = Resources.GetString(Resource.String.msg_reqcancel);
                success = false;
            }
            else
            {
                RunOnUiThread(() => SystemUpdate(e.Result));
            }
        }
Esempio n. 3
0
 void Client_GetVersionCompleted(object sender, GetVersionCompletedEventArgs e)
 {
     string msg = null;
     bool success = true;
     if ( e.Error != null)
     {
         msg =  e.Error.Message;
         success = false;
     }
     else if ( e.Cancelled)
     {
         msg = Resources.GetString(Resource.String.msg_reqcancel);
         success = false;
     }
     else
     {
         RunOnUiThread (() => SystemUpdate(e.Result ));
     }
 }
Esempio n. 4
0
 void srv_GetVersionCompleted(object sender, GetVersionCompletedEventArgs e)
 {
     if (e.Result == null ||
         Assembly.GetExecutingAssembly().FullName.Split(',')[1].Trim().Replace("Version=", "") != e.Result)
         Application.Current.CheckAndDownloadUpdateAsync();
     else
     {
         UpdateUserInterface();
         gridLoading.Visibility = Visibility.Collapsed;
         btLogin.IsEnabled = true;
     }
 }