Beispiel #1
0
        private void SetLaunchOnWindowsStart(bool enable)
        {
            var has_task = LaunchOnWindowsStart;

            if (enable == has_task)
            {
                return;
            }

            if (enable)
            {
                TaskScheduler.CreateTask(TASK_NAME, TASK_INPUT_FILE);
            }
            else
            {
                TaskScheduler.DeleteTask(TASK_NAME);
            }
        }
 private void RemoveHelper()
 {
     try
     {
         TaskScheduler.DeleteTask("BlueStacksHelper");
     }
     catch (Exception ex)
     {
         Logger.Warning("Couldn't delete task {0}, ex: ", (object)"BlueStacksHelper", (object)ex.Message);
     }
     try
     {
         TaskScheduler.DeleteTask("BlueStacksHelperTask");
     }
     catch (Exception ex)
     {
         Logger.Warning("Couldn't delete task {0}, ex: ", (object)"BlueStacksHelperTask", (object)ex.Message);
     }
 }