示例#1
0
 void syncManager_SyncError(object sender, NeologEventArgs e)
 {
     Deployment.Current.Dispatcher.BeginInvoke(() =>
     {
         SplashError(this, new NeologEventArgs(e.IsError, e.ErrorMessage, e.XmlContent));
     });
 }
示例#2
0
 void splashScreen_SplashError(object sender, NeologEventArgs e)
 {
     this.popup.IsOpen = false;
     if (e.IsError)
     {
         MessageBox.Show(e.ErrorMessage);
     }
     if (this.ApplicationBar != null)
     {
         this.ApplicationBar.IsVisible = true;
     }
     this.Dispatcher.BeginInvoke(() =>
     {
         SyncError(this, new NeologEventArgs(e.IsError, e.ErrorMessage, ""));
     });
 }
示例#3
0
 void splashScreen_SplashComplete(object sender, NeologEventArgs e)
 {
     this.Dispatcher.BeginInvoke(() =>
     {
         this.popup.IsOpen = false;
         if (this.ApplicationBar != null)
         {
             this.ApplicationBar.IsVisible = true;
         }
         try
         {
             SyncComplete(this, new NeologEventArgs(e.IsError, "", ""));
         }
         catch { }
     });
 }
示例#4
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);
 }
示例#5
0
 void loadingPopup_LoadingError(object sender, NeologEventArgs e)
 {
     this.popup.IsOpen = false;
     if (e.IsError)
         MessageBox.Show(e.ErrorMessage);
 }
示例#6
0
 void syncManager_SyncError(object sender, NeologEventArgs e)
 {
     try
     {
         if (e.IsError)
             MessageBox.Show(e.ErrorMessage);
     }
     catch
     {
         MessageBox.Show(AppResources.generalError);
     }
 }
示例#7
0
 void syncManager_SyncComplete(object sender, NeologEventArgs e)
 {
     NavigationService.GoBack();
 }
示例#8
0
 void syncManager_SyncError(object sender, NeologEventArgs e)
 {
 }
示例#9
0
 void splashScreen_SplashComplete(object sender, NeologEventArgs e)
 {
     this.Dispatcher.BeginInvoke(() =>
     {
         this.popup.IsOpen = false;
         if (this.ApplicationBar != null)
             this.ApplicationBar.IsVisible = true;
         try
         {
             SyncComplete(this, new NeologEventArgs(e.IsError, "", ""));
         }
         catch { }
     });
 }
示例#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 _networkHelper_DownloadError(object sender, NeologEventArgs e)
 {
     Deployment.Current.Dispatcher.BeginInvoke(() =>
     {
         SyncError(this, new NeologEventArgs(true, e.ErrorMessage, ""));
     });
 }
示例#12
0
 void _networkHelper_DownloadComplete(object sender, NeologEventArgs e)
 {
     if (!e.IsError)
         this.dispatchDownload(e.XmlContent);
 }
示例#13
0
 void syncComplete(object sender, NeologEventArgs e)
 {
     base.BuildApplicationBar();
     NavigationService.Navigate(new Uri("/Views/NestsAndLetters.xaml", UriKind.Relative));
 }
示例#14
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 = "";
 }
示例#15
0
 void splashScreen_SplashError(object sender, NeologEventArgs e)
 {
     this.popup.IsOpen = false;
     if (e.IsError)
         MessageBox.Show(e.ErrorMessage);
     if (this.ApplicationBar != null)
         this.ApplicationBar.IsVisible = true;
     this.Dispatcher.BeginInvoke(() =>
     {
         SyncError(this, new NeologEventArgs(e.IsError, e.ErrorMessage, ""));
     });
 }
示例#16
0
 void syncManager_SyncError(object sender, NeologEventArgs e)
 {
     if (e.IsError)
         MessageBox.Show(e.ErrorMessage);
 }
示例#17
0
 void syncManager_SyncComplete(object sender, NeologEventArgs e)
 {
 }