public void GetMapPlottingObjects() { try { List<Globals.MapPlotDataObject> returnList = new List<Globals.MapPlotDataObject>(); using (_jobModel = new JobModel()) { returnList.AddRange(_jobModel.FilterMapPlotting(_view.MapPlottingFilter)); } using (_resourceAllocationModel = new ResourceAllocationModel()) { returnList.AddRange(_resourceAllocationModel.FilterMapPlotting(_view.MapPlottingFilter)); } _view.MapPlottingObjectsList = returnList; } catch (Exception ex) { if (null != ex.InnerException) Logger.Write(string.Format("An error has occurred while trying to get the Map Plot List\n{0}\n{1}\n{2}\n{3}", ex.Message, ex.StackTrace, ex.InnerException.Message, ex.InnerException.StackTrace)); else Logger.Write(string.Format("An error has occurred while trying to get the Map Plot List\n{0}\n{1}", ex.Message, ex.StackTrace)); } }