示例#1
0
 public void ShowPage()
 {
     if (xRecoveredItemsGrid.Grid.SelectedItem != null)
     {
         RecoveredItem selectedItem = (RecoveredItem)xRecoveredItemsGrid.Grid.SelectedItem;
         if (selectedItem.RecoveredItemObject is BusinessFlow)
         {
             BusinessFlowPage w = new BusinessFlowPage((BusinessFlow)selectedItem.RecoveredItemObject, false, General.RepositoryItemPageViewMode.View);
             w.Width  = 1000;
             w.Height = 800;
             w.ShowAsWindow();
         }
         if (selectedItem.RecoveredItemObject is Run.RunSetConfig)
         {
             Run.NewRunSetPage newRunSetPage = new Run.NewRunSetPage((Run.RunSetConfig)selectedItem.RecoveredItemObject, Run.NewRunSetPage.eEditMode.View);
             newRunSetPage.Width  = 1000;
             newRunSetPage.Height = 800;
             newRunSetPage.ShowAsWindow();
         }
     }
 }
示例#2
0
 public void ShowPage()
 {
     if (xRecoveredItemsGrid.Grid.SelectedItem != null)
     {
         RecoveredItem selectedItem = (RecoveredItem)xRecoveredItemsGrid.Grid.SelectedItem;
         if (selectedItem.RecoveredItemObject is BusinessFlow)
         {
             GingerWPF.BusinessFlowsLib.BusinessFlowViewPage w = new GingerWPF.BusinessFlowsLib.BusinessFlowViewPage((BusinessFlow)selectedItem.RecoveredItemObject, new Context(), General.eRIPageViewMode.View);
             w.Width  = 1000;
             w.Height = 800;
             w.ShowAsWindow();
         }
         if (selectedItem.RecoveredItemObject is Run.RunSetConfig)
         {
             Run.NewRunSetPage newRunSetPage = new Run.NewRunSetPage((Run.RunSetConfig)selectedItem.RecoveredItemObject, Run.NewRunSetPage.eEditMode.View);
             newRunSetPage.Width  = 1000;
             newRunSetPage.Height = 800;
             newRunSetPage.ShowAsWindow();
         }
     }
 }