Exemplo n.º 1
0
        private void OnDeleteTask(object parameter)
        {
            if (SelectedTask == null)
            {
                return;
            }

            Repository.Remove(SelectedTask);
            RefreshRecentTasksCommand.Execute(null);
        }
Exemplo n.º 2
0
        private void OnReProcessTask(Window window)
        {
            if (SelectedTask == null)
            {
                return;
            }

            var workerTask = Repository.FirstOrDefault(t => t.WorkerId == SelectedTask.WorkerId);

            if (workerTask != null)
            {
                workerTask.IsProcessing = false;
                workerTask.Deleted      = null;
                workerTask.Processed    = null;

                Repository.AddOrUpdate(workerTask);

                MessageBoxHelper.ShowMessage(Resources.TXT_WORKER_PROGRESS_RE_PROCESSED_SOON, window);
                RefreshRecentTasksCommand.Execute(null);
            }
        }