// Decompiled with JetBrains decompiler
// Type: TaskScheduler.StartableTrigger
// Assembly: AutoKMS, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
// MVID: D1CED9E3-1FC7-49B8-B3AC-44976AB7F6E4
// Assembly location: C:\Users\Administrateur\Downloads\Virusshare-00000-msil\HackTool.Win32.KMSAuto.i-f317ba4d4051fad64a0aa45b587fa3dcea795bac30acec2872779abe31a07cbe.exe

using System;
using TaskSchedulerInterop;

namespace TaskScheduler
{
  public abstract class StartableTrigger : Trigger
  {
    internal StartableTrigger()
    {
    }

    internal StartableTrigger(ITaskTrigger iTrigger)
      : base(iTrigger)
    {
    }

    protected void SetStartTime(ushort hour, ushort minute)
    {
      this.StartHour = (short) hour;
      this.StartMinute = (short) minute;
    }

    public short StartHour
    {
      get => (short) this.taskTrigger.StartHour;
      set
      {
        this.taskTrigger.StartHour = value >= (short) 0 && value <= (short) 23 ? (ushort) value : throw new ArgumentOutOfRangeException("hour", (object) value, "hour must be between 0 and 23");
        this.SyncTrigger();
      }
    }

    public short StartMinute
    {
      get => (short) this.taskTrigger.StartMinute;
      set
      {
        this.taskTrigger.StartMinute = value >= (short) 0 && value <= (short) 59 ? (ushort) value : throw new ArgumentOutOfRangeException("minute", (object) value, "minute must be between 0 and 59");
        this.SyncTrigger();
      }
    }
  }
}
