public FormConnect(CrashSettings s) { InitializeComponent(); settings = s; }
private void LoadSettings() { if (!File.Exists(CrashEnvironment.SettingsFile)) return; // Deserialize settings from file using (StreamReader sr = new StreamReader(CrashEnvironment.SettingsFile)) { XmlSerializer x = new XmlSerializer(settings.GetType()); settings = x.Deserialize(sr) as CrashSettings; } }
public FormSourceActivity(CrashSettings settings, Spectrum spec) { InitializeComponent(); mSettings = settings; mSpectrum = spec; }