private void btnAddActionStart_Click(object sender, RoutedEventArgs e) { if (OpeningActionPath == null || SelectedTask == null) { return; } var action = new OpeningAction { Path = OpeningActionPath, Arguments = OpeningActionArguments }; _taskActions.Add(action); }
public static void ExecuteProcess(OpeningAction action) { if (action == null || action.Path == null) { throw new ArgumentNullException("action"); } if (action.Arguments == null) { Process.Start(action.Path); } else { Process.Start(action.Path, action.Arguments); } return; }
public OpeningEventArgs(I entity, OpeningAction action) { this.action = action; this.entity = entity; }