Beispiel #1
0
 public void Load()
 {
     ShowBusyIndicator("در حال دریافت اطلاعات...");
     jobIndexService.GetAllAbstractJobIndex(
         (res, exp) => appController.BeginInvokeOnDispatcher(() =>
     {
         if (exp == null)
         {
             JobIndexTree = SilverLightTreeViewHelper <AbstractJobIndexDTOWithActions> .prepareListForTreeView(res);
             HideBusyIndicator();
         }
         else
         {
             HideBusyIndicator();
             appController.HandleException(exp);
         }
     }));
 }
 private void preLoad()
 {
     ShowBusyIndicator("در حال دریافت اطلاعات...");
     jobPositionInPeriodService.GetAllJobPositions(
         (res, exp) => appController.BeginInvokeOnDispatcher(() =>
     {
         if (exp == null)
         {
             JobPositionTree = SilverLightTreeViewHelper <JobPositionInPeriodDTO> .prepareListForTreeView(res);
             HideBusyIndicator();
         }
         else
         {
             HideBusyIndicator();
             appController.HandleException(exp);
         }
     }), Period.Id);
 }
 public void Load(PeriodDTO period)
 {
     ShowBusyIndicator("در حال دریافت اطلاعات...");
     Period      = period;
     DisplayName = PeriodMgtAppLocalizedResources.JobPositionInPeriodTreeViewTitle + " " + Period.Name;
     jobPositionInPeriodService.GetJobPositionsWithActions(
         (res, exp) => appController.BeginInvokeOnDispatcher(() =>
     {
         if (exp == null)
         {
             JobPositionInPeriodTree = SilverLightTreeViewHelper <JobPositionInPeriodDTOWithActions> .prepareListForTreeView(res);
             HideBusyIndicator();
         }
         else
         {
             HideBusyIndicator();
             appController.HandleException(exp);
         }
     }), period.Id);
 }
 private void setIndexInPeriodTree(long periodId)
 {
     ShowBusyIndicator("در حال دریافت اطلاعات...");
     jobIndexInPeriodService.GetPeriodAbstractIndexes(
         (res, exp) => appController.BeginInvokeOnDispatcher(() =>
     {
         HideBusyIndicator();
         if (exp == null)
         {
             AbstractIndexInPeriods    = res;
             AbstractIndexInPeriodTree =
                 SilverLightTreeViewHelper <AbstractIndexInPeriodDTOWithActions> .prepareListForTreeView(
                     AbstractIndexInPeriods);
             HideBusyIndicator();
         }
         else
         {
             HideBusyIndicator();
             appController.HandleException(exp);
         }
     }), periodId);
 }