// This method raises the Tap event
        void RaiseNavigatedEvent(Uri address, System.Net.WebResponse response)
        {
            NavigationRoutedEventArgs newEventArgs = new NavigationRoutedEventArgs(AccountAuthWindow.NavigatedEvent, address, response);

            newEventArgs.Source = this;
            RaiseEvent(newEventArgs);
        }
예제 #2
0
        private void HandleDropboxAuth(object sender, NavigationRoutedEventArgs e)
        {
            //if (_GeneratedToken == null && e.Uri.ToString().StartsWith(_UsedConfig.AuthorizationCallBack.ToString()))
            //{
            //    _GeneratedToken = DropBoxStorageProviderTools.ExchangeDropBoxRequestTokenIntoAccessToken(_UsedConfig, Networks.DropBoxAuth.Key, Networks.DropBoxAuth.Secret, _CurrentRequestToken);

            //    (sender as Window).Close();

            //    CloudStorage cs = new CloudStorage();
            //    cs.Open(_UsedConfig, _GeneratedToken);

            //    Complete(cs.IsOpened, "Dropbox");
            //    //cs.SerializeSecurityToken(_GeneratedToken);

            //    cs.Close();
            //}
        }
		// This method raises the Tap event 
		void RaiseNavigatedEvent(Uri address, System.Net.WebResponse response) {
			NavigationRoutedEventArgs newEventArgs = new NavigationRoutedEventArgs(AccountAuthWindow.NavigatedEvent, address, response);
			newEventArgs.Source = this;
			RaiseEvent(newEventArgs);
		}
		private void HandleDropboxAuth(object sender, NavigationRoutedEventArgs e) {
			//if (_GeneratedToken == null && e.Uri.ToString().StartsWith(_UsedConfig.AuthorizationCallBack.ToString()))
			//{
			//    _GeneratedToken = DropBoxStorageProviderTools.ExchangeDropBoxRequestTokenIntoAccessToken(_UsedConfig, Networks.DropBoxAuth.Key, Networks.DropBoxAuth.Secret, _CurrentRequestToken);

			//    (sender as Window).Close();

			//    CloudStorage cs = new CloudStorage();
			//    cs.Open(_UsedConfig, _GeneratedToken);

			//    Complete(cs.IsOpened, "Dropbox");
			//    //cs.SerializeSecurityToken(_GeneratedToken);

			//    cs.Close();
			//}
		}