Ejemplo n.º 1
0
 private void _view_JobDeleteClick(object sender, EventArgs e)
 {
     try
     {
         //_manager.DeleteLine( _view.DeleteJob());
         _jobManager.DeleteNewJob(_view.DeleteJob());
         _view.ClearList(1);
         //string[] content = _manager.GetLines();
         List <Job> content = _jobManager.GetJobList(Job.JStats.newJob).ToList <Job>();
         foreach (var item in content)
         {
             _view.AddTheJob(item.JobName, 1);
         }
     }
     catch (Exception ex)
     {
         _messageService.ShowError(ex.Message);
     }
 }