Пример #1
0
        public void Set_Bot(bool on)
        {
            if (this.label_target_name.InvokeRequired)
            {
                Set_Bot_Callback d = new Set_Bot_Callback(Set_Bot);
                label_target_name.Invoke(d, new object[] { on });
                return;
            }

            if (on)
            {
                label_target_name.ForeColor = Color.GreenYellow;
            }
            else
            {
                label_target_name.ForeColor = Color.LightSalmon;
            }
        }
Пример #2
0
        public void Set_Bot(bool on)
        {
            if (this.label_target_name.InvokeRequired)
            {
                Set_Bot_Callback d = new Set_Bot_Callback(Set_Bot);
                label_target_name.Invoke(d, new object[] { on });
                return;
            }

            if (on)
            {
                label_target_name.ForeColor = Color.GreenYellow;
            }
            else
            {
                label_target_name.ForeColor = Color.LightSalmon;
            }
        }