private void Settings_Click(object sender, EventArgs e) { if (PasswordForm.Authenticate(this, true, false)) { using (SettingsForm form = new SettingsForm()) form.ShowDialog(this); } }
private void Unlock() { if (PasswordForm.Authenticate(this, false, false)) { new MethodInvoker(() => { var url = SettingsTable.Get <string>(Strings.All_CentralServerUrl, Strings.All_CentralServerUrlPathDefault); var authUser = SettingsTable.Get <UserAuth>(Strings.Transferring_AuthObject); var countryId = SettingsTable.Get <int>(Strings.VScan_DefaultCountryCode, 826); //authUser.PassHash = ReceivingWebService.ValidateUser(authUser, url); #warning TODO SettingsTable.Set(Strings.Transferring_AuthObject, authUser); DBConfigValue.Save(Strings.Transferring_AuthObject, authUser); Stop(); }).FireAndForget(); } }