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