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