private void OBDGauge_Load(object sender, System.EventArgs e) { OBDSerial.CreateSingleton(); OBDRead.CreateSingleton(); OBDSensor.CreateSingleton(); OBDPrefs.LoadPrefs(mPrefs); OBDRead.GetSingleton().Prefs = mPrefs; OBDSensor.GetSingleton().Prefs = mPrefs; OBDSensor.GetSingleton().Init(); }
private void preferencesMenuItem_Click(object sender, System.EventArgs e) { OBDRead.GetSingleton().ReadClose(); OBDPrefs OBDPrefs = new OBDPrefs(mPrefs); OBDPrefs.ShowDialog(); OBDPrefs.SavePrefs(mPrefs); OBDRead.GetSingleton().Prefs = mPrefs; OBDSensor.GetSingleton().Prefs = mPrefs; ReadOpen(); }