コード例 #1
0
 private void unlinkAccountResponse_Callback(JObject obj)
 {
     if (obj == null || HikeConstants.FAIL == (string)obj[HikeConstants.STAT])
     {
         Debug.WriteLine("Unlink Account", "Could not unlink account !!");
         Deployment.Current.Dispatcher.BeginInvoke(() =>
         {
             MessageBoxResult result = MessageBox.Show(AppResources.Privacy_UnlinkErrMsgBxText, AppResources.Privacy_UnlinkErrMsgBxCaptn, MessageBoxButton.OKCancel);
             progress.Hide(LayoutRoot);
             progress  = null;
             canGoBack = true;
         });
         return;
     }
     DeleteLocalStorage();
 }
コード例 #2
0
 protected override void OnBackKeyPress(CancelEventArgs e)
 {
     if (!canGoBack)
     {
         MessageBoxResult mbox = MessageBox.Show(AppResources.Stop_Contact_Scanning, AppResources.Stop_Caption_txt, MessageBoxButton.OKCancel);
         if (mbox == MessageBoxResult.OK)
         {
             stopContactScanning = true;
             progressIndicator.Hide(LayoutRoot);
             enableAppBar();
             canGoBack = true;
         }
         e.Cancel = true;
     }
     base.OnBackKeyPress(e);
 }