public async Task <bool> InitCoreAsync() { if (Properties.Settings.Default.Mode == 0 || Properties.Settings.Default.Mode == 1) { var loginResult = await _captchaService.LoginAsync(Properties.Settings.Default.DBCUser, Properties.Settings.Default.DBCPass); return(!loginResult.IsFail); } return(true); }