/// <summary> /// Configures Executable Action /// </summary> /// <param name="action">Task Action to be configured</param> /// <param name="actionInfo">Object containing the information to be configured</param> private static void ConfigureExecAction(IAction action, Entities.Action actionInfo) { IExecAction execAction = action as IExecAction; StartProgramAction progAction = actionInfo as StartProgramAction; execAction.Path = progAction.ProgramToRun; execAction.Arguments = progAction.Arguments; }
/// <summary> /// Prepares the Action Data /// </summary> private void PrepareScheduledTaskActionData() { // Trigger Data if (!string.IsNullOrWhiteSpace(this.SelectedFileData.Text)) { this.newTask.Actions = new List <Entities.Action>(); Entities.Action action = new StartProgramAction(this.SelectedFileData.Text, this.ArgumentsData.Text); this.newTask.Actions.Add(action); } }