Ejemplo n.º 1
0
        /// <summary>
        /// Starts a task.  For a Shortn task, this breaks the selected range into appropriate groupings, overwrites the template file, and runs TurKit on a Timer.
        /// </summary>
        public void startTask(noKeysDelegate cancelDelegate)
        {
            startTaskDelegate taskDelegate = null;

            if (hdata is ShortnData)
            {
                taskDelegate = startShortnTask;
            }
            else if (hdata is CrowdproofData)
            {
                taskDelegate = startCrowdproofTask;
            }
            else if (hdata is HumanMacroData)
            {
                taskDelegate = startHumanMacroTask;
            }

            // Get the Amazon Keys. This might need to pop up a window asking for them. Run the task as a callback when it's complete.
            GetKeysAndExecute(taskDelegate, cancelDelegate);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Asks for Amazon Keys if necessary and then executes the task
 /// </summary>
 /// <param name="taskDelegate"></param>
 public void GetKeysAndExecute(startTaskDelegate taskDelegate, noKeysDelegate cancelDelegate)
 {
     AmazonKeys.AskForAmazonKeys(taskDelegate, cancelDelegate);
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Asks for Amazon Keys if necessary and then executes the task
 /// </summary>
 /// <param name="taskDelegate"></param>
 public void GetKeysAndExecute(startTaskDelegate taskDelegate, noKeysDelegate cancelDelegate)
 {
     AmazonKeys.AskForAmazonKeys(taskDelegate, cancelDelegate);
 }