예제 #1
0
 void syncManager_SyncError(object sender, NeologEventArgs e)
 {
     if (e.IsError)
     {
         MessageBox.Show(e.ErrorMessage);
     }
 }
예제 #2
0
 void syncManager_SyncError(object sender, NeologEventArgs e)
 {
     Deployment.Current.Dispatcher.BeginInvoke(() =>
     {
         LoadingError(this, new NeologEventArgs(e.IsError, e.ErrorMessage, e.XmlContent));
     });
 }
예제 #3
0
 void _networkHelper_DownloadError(object sender, NeologEventArgs e)
 {
     Deployment.Current.Dispatcher.BeginInvoke(() =>
     {
         SyncError(this, new NeologEventArgs(true, e.ErrorMessage, ""));
     });
 }
예제 #4
0
 void syncManager_SyncError(object sender, NeologEventArgs e)
 {
     Deployment.Current.Dispatcher.BeginInvoke(() =>
     {
         LoadingError(this, new NeologEventArgs(e.IsError, e.ErrorMessage, e.XmlContent));
     });
 }
예제 #5
0
 void _networkHelper_DownloadComplete(object sender, NeologEventArgs e)
 {
     if (!e.IsError)
     {
         this.dispatchDownload(e.XmlContent);
     }
 }
예제 #6
0
 void loadingPopup_LoadingError(object sender, NeologEventArgs e)
 {
     this.popup.IsOpen = false;
     if (e.IsError)
     {
         MessageBox.Show(e.ErrorMessage);
     }
 }
예제 #7
0
 void syncManager_SyncComplete(object sender, NeologEventArgs e)
 {
     MessageBox.Show(AppResources.thankYou);
     this.txtName.Text          = "";
     this.txtEmail.Text         = "";
     this.txtURL.Text           = "";
     this.txtWord.Text          = "";
     this.ddNests.SelectedIndex = 0;
     this.txtDescription.Text   = "";
     this.txtExample.Text       = "";
     this.txtEthimology.Text    = "";
 }
예제 #8
0
 void loadingPopup_LoadingComplete(object sender, NeologEventArgs e)
 {
     this.popup.IsOpen = false;
     if (this.nestID > 0)
     {
         this.wordsList.ItemsSource = App.DbViewModel.GetWordsForNest(this.nestID);
     }
     else
     {
         this.wordsList.ItemsSource = App.DbViewModel.GetWordsForLetter(this.letter);
     }
 }
예제 #9
0
 void syncManager_SyncError(object sender, NeologEventArgs e)
 {
     try
     {
         if (e.IsError)
         {
             MessageBox.Show(e.ErrorMessage);
         }
     }
     catch
     {
         MessageBox.Show(AppResources.generalError);
     }
 }
예제 #10
0
 void _networkHelper_DownloadInBackgroundComplete(object sender, NeologEventArgs e)
 {
     if (!e.IsError)
     {
         if (this.wordId > 0)
         {
             this.currentOp = AppSettings.ServiceOp.ServiceOpWordComments;
         }
         else
         {
             this.currentOp = AppSettings.ServiceOp.ServiceOpWords;
         }
         if (e.ServiceOp > 0)
         {
             this.currentOp = e.ServiceOp;
         }
         this.dispatchDownload(e.XmlContent);
     }
 }
예제 #11
0
 void syncManager_SyncComplete(object sender, NeologEventArgs e)
 {
     NavigationService.GoBack();
 }
예제 #12
0
 void syncManager_SyncError(object sender, NeologEventArgs e)
 {
 }
예제 #13
0
 void syncManager_SyncComplete(object sender, NeologEventArgs e)
 {
 }
예제 #14
0
 void syncComplete(object sender, NeologEventArgs e)
 {
     base.BuildApplicationBar();
     NavigationService.Navigate(new Uri("/Views/NestsAndLetters.xaml", UriKind.Relative));
 }