Exemple #1
0
        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);
        }
Exemple #2
0
        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;
        }
Exemple #3
0
        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;
        }