private async void buttonLogin_Click(object sender, EventArgs e) { string res = await BiliApiHelper.LoginBilibili(textBoxLoginName.Text, textBoxLoginPasswd.Text); //MessageBox.Show(res); Log.Info("授权码:" + res); }
private async void buttonDo_Click(object sender, RoutedEventArgs e) { string accesskey = await BiliApiHelper.LoginBilibili(textBoxName.Text, textBoxPassword.Text); textBoxAccessKey.Text = accesskey; }