private void OnDownloadStringCompleted(object sender, DownloadEventArg e) { if (!e.Success) { Dispatcher.BeginInvoke( () => MessageBox.Show("������������ ����� ��� ������", "������ �����������", MessageBoxButton.OK)); //((PhoneApplicationFrame)Application.Current.RootVisual).GoBack(); return; } var token = JsonConvert.DeserializeObject<AccessToken>(e.Result); ITypedDataStorage<AccessToken> storage = new TypedStorage<AccessToken>(); storage.SaveEntity(token); }
public void OnDownloadStringCompleted(DownloadEventArg e) { var handler = DownloadStringCompleted; if (handler != null) handler(this, e); }