Exemplo n.º 1
0
 private void RefreshExportJobs()
 {
     if (RootMap != null)
     {
         ExportServiceManager.GetExportJobsCompleted.RegisterEvent(RootMap.Id, OnGetExportJobsCompleted);
         ExportServiceManager.GetExportJobsAsync(RootMap.ParentId, RootMap.Id);
     }
 }
Exemplo n.º 2
0
 private void UserControl_DataContextChanged(object sender, DependencyPropertyChangedEventArgs e)
 {
     if (e.NewValue != e.OldValue)
     {
         var rootMap = e.NewValue as RootMap;
         if (rootMap != null)
         {
             Visibility = Visibility.Visible;
             ExportServiceManager.GetExportJobsCompleted.RegisterEvent(rootMap.Id, OnGetExportJobsCompleted);
             ExportServiceManager.GetExportJobsAsync(rootMap.ParentId, rootMap.Id);
             SelectAll();
         }
         else
         {
             Visibility = Visibility.Collapsed;
         }
     }
 }