private void Unlink_Tap(object sender, System.Windows.Input.GestureEventArgs e) { MessageBoxResult result = MessageBox.Show(AppResources.Privacy_UnlinkConfirmMsgBxText, AppResources.Privacy_UnlinkAccountHeader, MessageBoxButton.OKCancel); if (result == MessageBoxResult.Cancel) { return; } if (progress == null) { progress = new ProgressIndicatorControl(); } progress.Show(LayoutRoot, AppResources.Privacy_UnlinkAccountProgress); canGoBack = false; AccountUtils.unlinkAccount(new AccountUtils.postResponseFunction(unlinkAccountResponse_Callback)); }
private void refreshContacts_Click(object sender, EventArgs e) { App.AnalyticsInstance.addEvent(Analytics.REFRESH_CONTACTS); if (!NetworkInterface.GetIsNetworkAvailable()) { MessageBoxResult result = MessageBox.Show(AppResources.Please_Try_Again_Txt, AppResources.No_Network_Txt, MessageBoxButton.OK); return; } disableAppBar(); if (progressIndicator == null) { progressIndicator = new ProgressIndicatorControl(); } progressIndicator.Show(LayoutRoot, AppResources.SelectUser_RefreshWaitMsg_Txt); canGoBack = false; ContactUtils.getContacts(new ContactUtils.contacts_Callback(makePatchRequest_Callback)); }