Beispiel #1
0
        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);
        }
Beispiel #2
0
        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;
        }
Beispiel #3
0
 public OpeningEventArgs(I entity, OpeningAction action)
 {
     this.action = action;
     this.entity = entity;
 }