예제 #1
0
 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();
 }
예제 #2
0
        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();
        }
예제 #3
0
파일: OBDGauge.cs 프로젝트: cail/obdgauge
        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();
        }