Esempio n. 1
0
        public void OnJacksChanged(object sender, EventArgs e)
        {
            Jacks jacks = _StateManager.Jacks;

            if (!string.IsNullOrEmpty(jacks.PreviusStateDescription))
            {
                _MsgLB.Text.Replace(jacks.PreviusStateDescription, "");
            }

            if (_StateManager.Engine.Operative)
            {
                if (!string.IsNullOrEmpty(jacks.StateDescription))
                {
                    _MsgLB.Text += jacks.StateDescription;
                }
            }
        }
Esempio n. 2
0
        public void OnJacksChanged(object sender, EventArgs e)
        {
            Jacks jacks = _StateManager.Jacks;

            _RBJacksAlumno.Enabled     = jacks.LeftJack;
            _RBJacksInstructor.Enabled = jacks.RightJack;

            if (_RBJacksInstructor.Checked && _RBJacksAlumno.Enabled && !_RBJacksInstructor.Enabled)
            {
                _RBJacksAlumno.Checked     = true;
                _RBJacksInstructor.Checked = false;
            }
            if (_RBJacksAlumno.Checked && _RBJacksInstructor.Enabled && !_RBJacksAlumno.Enabled)
            {
                _RBJacksAlumno.Checked     = false;
                _RBJacksInstructor.Checked = true;
            }
        }
Esempio n. 3
0
        public void OnJacksChanged(object sender, EventArgs e)
        {
            Jacks jacks = _StateManager.Jacks;

            _SplitUC.LeftJackOn  = jacks.LeftJack;
            _SplitUC.RightJackOn = jacks.RightJack;

            if (!string.IsNullOrEmpty(jacks.PreviusStateDescription))
            {
                _MsgLB.Items.Remove(jacks.PreviusStateDescription);
            }

            if (_StateManager.Engine.Operative)
            {
                if (!string.IsNullOrEmpty(jacks.StateDescription))
                {
                    _MsgLB.Items.Add(jacks.StateDescription);
                }
            }
        }
Esempio n. 4
0
        public void OnJacksChanged(object sender, EventArgs e)
        {
            Jacks jacks = _StateManager.Jacks;

            _SplitUC.LeftJackOn  = jacks.LeftJack;
            _SplitUC.RightJackOn = jacks.RightJack;

            if (!string.IsNullOrEmpty(jacks.PreviusStateDescription))
            {
                _MsgLB.Items.Remove(jacks.PreviusStateDescription);
                _MsgLB.BackColor = System.Drawing.Color.Gainsboro;
                _MsgLB.Refresh();
            }

            if (_StateManager.Engine.Operative)
            {
                if (!string.IsNullOrEmpty(jacks.StateDescription))
                {
                    _MsgLB.Items.Add(jacks.StateDescription);
                    _MsgLB.BackColor = System.Drawing.Color.White;
                    _MsgLB.Refresh();
                }
            }
        }