Exemple #1
0
        public static void RefreshStationAssignments()
        {
            //Refresh the list of freight assignments for the local terminal
            DataSet ds = null;

            try {
                _Assignments.Clear();
                ds = App.Mediator.FillDataset(USP_ASSIGNMENTS, TBL_ASSIGNMENTS, null);
                if (ds != null)
                {
                    _Assignments.Merge(ds, false, MissingSchemaAction.Ignore);
                }
            }
            catch (Exception ex) { throw new ApplicationException("Failed to refresh station assignments.", ex); }
            finally { if (AssignmentsChanged != null)
                      {
                          AssignmentsChanged(null, EventArgs.Empty);
                      }
            }
        }