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 auth_Click(object sender, RoutedEventArgs e)
        {
            Tokens rt = AuthWindow.ShowAuthForm();

            if (rt != null)
            {
                this.tokens          = rt;
                AccountLabel.Content = "連携中:" + tokens.Account.VerifyCredentials().ScreenName;
                RaidType1.IsChecked  = true;
            }
        }