Exemple #1
0
 public FormConnect(CrashSettings s)
 {
     InitializeComponent();
     settings = s;
 }
Exemple #2
0
        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;
            }
        }
Exemple #3
0
 public FormSourceActivity(CrashSettings settings, Spectrum spec)
 {
     InitializeComponent();
     mSettings = settings;
     mSpectrum = spec;
 }