Esempio n. 1
0
        public void OnTlfIntrudeToChanged(object sender, EventArgs e)
        {
            IntrudeTo intrudeTo = _StateManager.Tlf.IntrudeTo;

            if (!string.IsNullOrEmpty(intrudeTo.PreviusStateDescription))
            {
                _MsgLB.Items.Remove(intrudeTo.PreviusStateDescription);
            }
            if (!string.IsNullOrEmpty(intrudeTo.StateDescription))
            {
                _MsgLB.Items.Add(intrudeTo.StateDescription);
            }
        }
Esempio n. 2
0
        public void OnTlfIntrudeToChanged(object sender, EventArgs e)
        {
            IntrudeTo intrudeTo = _StateManager.Tlf.IntrudeTo;

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