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)); }
public void SetState_g(string ID) { int id = Convert.ToInt32(ID); AlarmClocksLogic.UpdateState(0, id); }