Esempio n. 1
0
        void onAppBtnToggleOn()
        {
            // Copy the current settings to a working copy that can be edited
            // in the GUI without modifying directly the settings
            newSettings       = this.CurrentSettings.ShallowClone();
            evaDistanceString = CurrentSettings.MaxDistance.ToString();

            this.showGUI = true;
        }
Esempio n. 2
0
 private void ReInitilize()          //Set our string data mirrors at start, and when we change settings
 {
     this.newSettings             = DangIt.Instance.CurrentSettings.ShallowClone();
     this.evaDistanceString       = newSettings.MaxDistance.ToString();
     this.SoundLoopsString_Low    = newSettings.Pri_Low_SoundLoops.ToString();
     this.SoundLoopsString_Medium = newSettings.Pri_Medium_SoundLoops.ToString();
     this.SoundLoopsString_High   = newSettings.Pri_High_SoundLoops.ToString();
     this.SoundVolumeString       = newSettings.AlarmVolume.ToString();
     this.lastEnabledValue        = newSettings.EnabledForSave;
 }
Esempio n. 3
0
 private void ReInitilize()
 {
     //Set our string data mirrors at start, and when we change settings
     this.newSettings = DangIt.Instance.CurrentSettings.ShallowClone();
     this.evaDistanceString = newSettings.MaxDistance.ToString();
     this.SoundLoopsString_Low = newSettings.Pri_Low_SoundLoops.ToString();
     this.SoundLoopsString_Medium = newSettings.Pri_Medium_SoundLoops.ToString();
     this.SoundLoopsString_High = newSettings.Pri_High_SoundLoops.ToString();
     this.SoundVolumeString = newSettings.AlarmVolume.ToString ();
 }
Esempio n. 4
0
 void onAppBtnToggleOff()
 {
     // Delete the working copy
     newSettings  = null;
     this.showGUI = false;
 }