private void Clear() { if (controlSet == null) { return; } Changed = false; ProfileFileName = string.Empty; List <string> keys = new List <string>(controls.Keys); foreach (string key in keys) { controls[key] = string.Empty; } controlSet.SetSet(controls); }
private void SwitchToStickHornet() { if (controlSet != null) { UpdateControls(controlSet.GetSet()); controlSet.CleanUp(); } StickHornet stick = new StickHornet(this); controlSet = stick; controlSet.SetSet(controls); grd_diagram.Content = stick; }
private void SwitchToThrottle() { if (controlSet != null) { UpdateControls(controlSet.GetSet()); controlSet.CleanUp(); } Throttle throttle = new Throttle(this); controlSet = throttle; controlSet.SetSet(controls); grd_diagram.Content = throttle; }