// Decompiled with JetBrains decompiler
// Type: TaskScheduler.RunOnceTrigger
// 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 class RunOnceTrigger : StartableTrigger
  {
    public RunOnceTrigger(DateTime runDateTime)
    {
      this.taskTrigger.BeginYear = (ushort) runDateTime.Year;
      this.taskTrigger.BeginMonth = (ushort) runDateTime.Month;
      this.taskTrigger.BeginDay = (ushort) runDateTime.Day;
      this.SetStartTime((ushort) runDateTime.Hour, (ushort) runDateTime.Minute);
      this.taskTrigger.Type = TaskTriggerType.TIME_TRIGGER_ONCE;
    }

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