예제 #1
0
        public bool SetState(string State, string ID)
        {
            int sta;

            if (State == "关闭")
            {
                sta = 0;
            }
            else
            {
                sta = 1;
            }
            int id = Convert.ToInt32(ID);

            return(AlarmClocksLogic.UpdateState(sta, id));
        }
예제 #2
0
        public void SetState_g(string ID)
        {
            int id = Convert.ToInt32(ID);

            AlarmClocksLogic.UpdateState(0, id);
        }