Esempio n. 1
0
        public void OnTlfConfListChanged(object sender, EventArgs e)
        {
            ConfList confList = _StateManager.Tlf.ConfList;

            if (!string.IsNullOrEmpty(confList.PreviusStateDescription))
            {
                if (!_ConfUnused.Remove(confList.PreviusStateDescription))
                {
                    _MsgLB.Items.Remove(confList.PreviusStateDescription);
                    _MsgLB.BackColor = System.Drawing.Color.Gainsboro;
                    _MsgLB.Refresh();
                }
            }
            if (!string.IsNullOrEmpty(confList.StateDescription))
            {
                if (_MsgLB.Items.Contains(confList.StateDescription))
                {
                    _ConfUnused.Add(confList.StateDescription);
                }
                else
                {
                    _MsgLB.Items.Add(confList.StateDescription);
                    _MsgLB.BackColor = System.Drawing.Color.White;
                    _MsgLB.Refresh();
                }
            }
        }
Esempio n. 2
0
        public void OnTlfConfListChanged(object sender, EventArgs e)
        {
            ConfList confList = _StateManager.Tlf.ConfList;

            if (!string.IsNullOrEmpty(confList.PreviusStateDescription))
            {
                if (!_ConfUnused.Remove(confList.PreviusStateDescription))
                {
                    _MsgLB.Text = _MsgLB.Text.Replace(confList.PreviusStateDescription, "");
                }
            }
            if (!string.IsNullOrEmpty(confList.StateDescription))
            {
                if (_MsgLB.Text.Contains(confList.StateDescription))
                {
                    _ConfUnused.Add(confList.StateDescription);
                }
                else
                {
                    _MsgLB.Text += confList.StateDescription;
                }
            }
        }