Beispiel #1
0
        public void OnTlfInterruptedByChanged(object sender, EventArgs e)
        {
            InterruptedBy interruptedBy = _StateManager.Tlf.InterruptedBy;

            if (!string.IsNullOrEmpty(interruptedBy.PreviusStateDescription))
            {
                _MsgLB.Items.Remove(interruptedBy.PreviusStateDescription);
            }
            if (!string.IsNullOrEmpty(interruptedBy.StateDescription))
            {
                _MsgLB.Items.Add(interruptedBy.StateDescription);
            }
        }
Beispiel #2
0
        public void OnTlfInterruptedByChanged(object sender, EventArgs e)
        {
            InterruptedBy interruptedBy = _StateManager.Tlf.InterruptedBy;

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