Last active
August 29, 2015 14:15
-
-
Save BrianJVarley/147cdc7342035705491c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using Facebook; | |
| using MyoSharp.Communication; | |
| using MyoSharp.Device; | |
| using MyoTestv4.Home; | |
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Text; | |
| using System.Windows; | |
| using System.Windows.Controls; | |
| using System.Windows.Data; | |
| using System.Windows.Documents; | |
| using System.Windows.Input; | |
| using System.Windows.Media; | |
| using System.Windows.Media.Imaging; | |
| using System.Windows.Navigation; | |
| using System.Windows.Shapes; | |
| namespace MyoTestv4 | |
| { | |
| /// <summary> | |
| /// Interaction logic for HomeView.xaml | |
| /// </summary> | |
| public partial class HomeView : UserControl | |
| { | |
| private FacebookClient FBClient; | |
| private FacebookClient fbC; | |
| public string AccessToken { get; set; } | |
| public string Name; | |
| public string Gender; | |
| public string Link; | |
| public HomeView() | |
| { | |
| InitializeComponent(); | |
| WBrowser.Navigate(new Uri("https://graph.facebook.com/oauth/authorize?client_id=559878724040104&redirect_uri=http://www.facebook.com/connect/login_success.html&type=user_agent&display=popup").AbsoluteUri); | |
| this.DataContext = new HomeViewModel(new UserLoginModel()); | |
| } | |
| private void WBrowser_OnNavigated(object sender, NavigationEventArgs e) | |
| { | |
| //create instance of VM, the invoke initLogin(e). | |
| HomeViewModel _vmObj = new HomeViewModel(new UserLoginModel()); | |
| _vmObj.initLogin(e); | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment