public void SavePassword(string login, string pass) { if (SavePass.Checked == true) { SavePassword SP = new SavePassword(login, pass); } }
private void LoginForm_Load(object sender, EventArgs e) { SavePassword SP = new SavePassword(); if (SP.CheckedFile()) { ConnectionToDB(SP.GetData(0), SP.GetData(1)); } }
private void ChangeButton_Click(object sender, EventArgs e) { SavePassword SP = new SavePassword(); SP.ClearData(); LoginForm lf = new LoginForm(); lf.Show(); this.Close(); }