public void OnTlfListenByChanged(object sender, EventArgs e) { ListenBy listenBy = _StateManager.Tlf.ListenBy; if (!string.IsNullOrEmpty(listenBy.PreviusStateDescription)) { _MsgLB.Items.Remove(listenBy.PreviusStateDescription); } if (!string.IsNullOrEmpty(listenBy.StateDescription)) { _MsgLB.Items.Add(listenBy.StateDescription); } _MsgLB.BackColor = listenBy.IsListen ? VisualStyle.Colors.Orange : VisualStyle.Colors.White; }
public void OnTlfListenByChanged(object sender, EventArgs e) { ListenBy listenBy = (ListenBy)sender; _MsgLB.BackColor = listenBy.IsListen ? VisualStyle.Colors.Orange : VisualStyle.Colors.White; }