//Link Properties click handler private void lnkProperties_Click(object sender, EventArgs e) { frmProperties Properties = new frmProperties(ActualPreferences.Algorithm, ActualPreferences.Password, ActualPreferences.Key, ActualPreferences.AskPassword); Properties.ShowDialog(); if (Properties.IsCanceled == false) { ActualPreferences.Algorithm = Properties.Algorithm; ActualPreferences.Key = Properties.Key; ActualPreferences.Password = Properties.Password; ActualPreferences.AskPassword = Properties.AskPassword; } }