Example #1
0
        // フォームを開いてtokensを返す静的メソッド
        static public Tokens ShowAuthForm()
        {
            AuthWindow authWindow = new AuthWindow();

            authWindow.ShowDialog();

            Tokens retTokens = authWindow.tokens;

            return(retTokens);
        }
Example #2
0
        private void OpenAuthWindow(object sender, RoutedEventArgs e)
        {
            Tokens rt = AuthWindow.ShowAuthForm();

            if (rt != null)
            {
                this.tokens = rt;
                var userinfo = tokens.Account.VerifyCredentials();
                vm.CoopTwitterID.Value = userinfo.ScreenName;
            }
        }