private TaskObject createTaskObject()
 {
     task = null;
     // determine which tab is displayed and thus the task that will be completed
     if (TaskObject.isPropertyUpdateTaskSelected(this.tabControl1.SelectedIndex))
     {
         task = new PropertyUpdate(this.textBox_path.Text, this.textBox_propName.Text, this.textBox_propValue.Text, AppObject.determineAppID(comboBox1.SelectedIndex), msg);
     }
     else if (TaskObject.isMassOutputTaskSelected(this.tabControl1.SelectedIndex))
     {
         task = new MassOutput(this.textBox_path.Text, msg);
     }
     else if (TaskObject.isClearPropertyTaskSelected(this.tabControl1.SelectedIndex))
     {
         task = new ClearProperty(this.textBox_path.Text, AppObject.determineAppID(comboBox1.SelectedIndex), msg);
     }
     return task;
 }
 private int processTask(TaskObject task)
 {
     // determine if inputs are missing
     if (task == null || task.isTaskMissingInputs())
     {
         return Constants.RESULT_MISSING_INPUT;
     }
     else
     {
         // perform the selected task
         return task.start();
     }
 }