public MainPage() { this.InitializeComponent(); this.NavigationCacheMode = NavigationCacheMode.Required; VKSDK.Initialize("5528332"); //VKSDK.WakeUpSession(); VKSDK.Authorize(_scope, false, false); }
public void login(string par) { string[] _scope = JsonHelper.Deserialize <string[]>(JsonHelper.Deserialize <string[]>(par)[0]); List <String> scope = new List <string>(_scope); DispatchInvoke(() => { VKSDK.Authorize(scope, false, false); }); }
public MainPage() { this.InitializeComponent(); this.NavigationCacheMode = NavigationCacheMode.Required; VKSDK.Initialize("5650916"); VKSDK.Authorize(_scope, false, false); Player.CurrentStateChanged += Player_CurrentStateChanged; Player.BufferingProgressChanged += Player_BufferingProgressChanged; // Player.DownloadProgressChanged += Player_DownloadProgressChanged; }
private void AuthorizeButtonOnClick(object sender, RoutedEventArgs routedEventArgs) { VKSDK.Authorize(_scope, false, false); }
void AuthorizeButton2_Click(object sender, RoutedEventArgs e) { VKSDK.Authorize(_scope, false, false, LoginType.VKApp); }