예제 #1
0
        public void OnSleepTimerOK(object o, EventArgs a)
        {
            int timervalue = (int)sleepHour.Value * 60 + (int)sleepMin.Value;

            plugin.SetSleepTimer(timervalue);
            this.Destroy();
        }
 protected override void OnResponse(ResponseType response)
 {
     if (response == ResponseType.Ok)
     {
         int timervalue = sleepHour.ValueAsInt * 60 + sleepMin.ValueAsInt;
         service.SleepTimerDuration = timervalue;
         service.SetSleepTimer(timervalue);
     }
 }