예제 #1
0
        /// <summary>
        /// handle the error messege and returning to the login screen
        /// </summary>
        private void JSONConvertor_ErrorEvent(object sender, EventArgs e)
        {
            //stop worker
            if (worker.IsBusy)
            {
                worker.CancelAsync();
            }
            
            isErrorAccure = true;
            lastErrorMessege = e as ErrorMessege;
            worker.Dispose();
            

            
        }
예제 #2
0
 public void LoginErrorAccur()
 {
     worker.CancelAsync();
     lastErrorMessege = new ErrorMessege("We had problem to login, try again", 0);
     worker.Dispose();
      
     //print error to error label
     //errorMessegeFromServer.Content = 
     //errorMessegeFromServer.Visibility = Visibility.Visible;
 }