示例#1
0
        public void press()
        {
            bool checkOn = isOn();

            if (checkOn)
            {
                client.turnOff();
                this.on = false;
            }
            else
            {
            }
            client.turnOn();
            this.on = true;
        }