private void button_save_Click(object sender, EventArgs e) { Api.key = textBox_key.Text; Api.secret = textBox_secret.Text; Api.passphrase = textBox_passphrase.Text; PreferenceManager.UpdateExchangeApi(Api); ParentForm.Close(); }