示例#1
0
        public InstagramAuthorization()
        {
            InitializeComponent();
            string OAuthURL = Instagram.Instagram.OAuth();

            WBrowserI.Navigate(new Uri(OAuthURL, UriKind.Absolute));
        }
示例#2
0
 private void WBrowserI_Navigated(object sender, System.Windows.Navigation.NavigationEventArgs e)
 {
     HideScriptErrors(WBrowserI, true);
     if (e.Uri.ToString().StartsWith("http://localhost/?code"))
     {
         Code = e.Uri.Query.Replace("?code=", "");
         Instagram.Instagram.Code = Code;
         WBrowserI.Navigate("about:blank");
         MessageBox.Show("Zalogowano!", "Instagram");
     }
 }