예제 #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;
        }
예제 #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;
 }
예제 #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 ();
 }
예제 #4
0
 void onAppBtnToggleOff()
 {
     // Delete the working copy
     newSettings  = null;
     this.showGUI = false;
 }