// Check Session
if (TestProc.Properties.Settings.Default.Remember == true)
{
// Write Login
LoginUsernameTextBox.Text = Properties.Settings.Default.Username;
LoginPasswordTextBox.Text = Properties.Settings.Default.Password;
// Start Session
// CheckSession();
}
else
{
// Stop Session
TestProc.Properties.Settings.Default.Reset();
}
// Login
string Username = LoginUsernameTextBox.Text;
string Password = LoginPasswordTextBox.Text;
// Save Session
TestProc.Properties.Settings.Default.Username = Username;
TestProc.Properties.Settings.Default.Password = Password;
TestProc.Properties.Settings.Default.Remember = true;
TestProc.Properties.Settings.Default.Save();