Example #1
0
 private void ConfigureSirenClick(object sender, EventArgs e)
 {
     var configureSiren = new ConfigureSirenDialog(_settings, SirenOfShameDevice);
     configureSiren.ShowDialog(this);
 }
Example #2
0
 private void _configureSiren_Click(object sender, EventArgs e)
 {
     const string fileName = "HardwareTestGui.Settings.xml";
     SirenOfShameSettings settings = SirenOfShameSettings.GetAppSettings(fileName);
     ConfigureSirenDialog dlg = new ConfigureSirenDialog(settings, Program.SirenOfShameDevice);
     if (dlg.ShowDialog(this) == DialogResult.OK)
     {
         settings.Save(fileName);
     }
 }