89 references to Context
System.Data (89)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\ErrorReporting.cs (1)
117
Context = null != ActiveDesignerView ? ActiveDesignerView.
Context
: null,
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\Connector.cs (1)
184
this.designerConfigurationService = view.
Context
.Services.GetService<DesignerConfigurationService>();
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\FreeFormPanel.cs (1)
155
this.designerConfigurationService = view.
Context
.Services.GetService<DesignerConfigurationService>();
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.Commands.cs (56)
220
return null != this.
Context
.Services.GetService<ICommandService>();
225
return null != this.
Context
.Services.GetService<IDesignerDebugView>() && this.isCommandServiceEnabled();
230
return this.
Context
.Services.GetService<ICommandService>().IsCommandSupported(commandId);
242
WorkflowViewService viewService = (WorkflowViewService)this.
Context
.Services.GetService<ViewService>();
270
WorkflowViewService viewService = (WorkflowViewService)this.
Context
.Services.GetService<ViewService>();
282
IDesignerDebugView debugView = this.
Context
.Services.GetService<IDesignerDebugView>();
393
Selection currentSelection = this.
Context
.Items.GetValue<Selection>();
411
shouldDisplayMenu =
Context
.Services.GetService<DesignerConfigurationService>().MultipleItemsContextMenuEnabled;
433
if (!Selection.MultipleObjectsSelected(this.
Context
) && sender != null && CommandMenuMode.Equals(CommandMenuMode.NoCommandMenu, GetCommandMenuMode(sender)))
461
if (!Selection.MultipleObjectsSelected(this.
Context
))
603
if (Selection.MultipleObjectsSelected(this.
Context
))
691
if (Selection.MultipleObjectsSelected(this.
Context
))
726
if (Selection.MultipleObjectsSelected(this.
Context
))
752
e.CanExecute = !this.IsReadOnly && CutCopyPasteHelper.CanCopy(this.
Context
);
759
this.
Context
.Services.GetService<DesignerPerfEventProvider>().WorkflowDesignerCopyStart();
760
CutCopyPasteHelper.DoCopy(this.
Context
);
762
this.
Context
.Services.GetService<DesignerPerfEventProvider>().WorkflowDesignerCopyEnd();
767
e.CanExecute = !this.IsReadOnly && CutCopyPasteHelper.CanPaste(this.
Context
);
779
CutCopyPasteHelper.DoPaste(this.
Context
, contextMenuTopLeft, sourceElement);
783
CutCopyPasteHelper.DoPaste(this.
Context
);
792
e.CanExecute = !this.IsReadOnly && CutCopyPasteHelper.CanCut(this.
Context
);
799
CutCopyPasteHelper.DoCut(this.
Context
);
806
e.CanExecute = !this.IsReadOnly && DeleteHelper.CanDelete(this.
Context
);
813
DeleteHelper.Delete(this.
Context
);
846
if (Selection.MultipleObjectsSelected(this.
Context
))
974
this.
Context
.Services.GetService<UndoEngine>().Undo();
986
this.
Context
.Services.GetService<UndoEngine>().Redo();
1027
if (Selection.MultipleObjectsSelected(this.
Context
))
1047
VirtualizedContainerService virtualizingContainerService = this.
Context
.Services.GetService<VirtualizedContainerService>();
1069
if (Selection.MultipleObjectsSelected(this.
Context
))
1119
VirtualizedContainerService virtualizingContainerService = this.
Context
.Services.GetService<VirtualizedContainerService>();
1195
Selection.Toggle(this.
Context
, focusedElement.ModelItem);
1284
if (Selection.MultipleObjectsSelected(this.
Context
))
1341
Selection selection = this.
Context
.Items.GetValue<Selection>();
1425
Selection selection = this.
Context
.Items.GetValue<Selection>();
1453
Selection selection = this.
Context
.Items.GetValue<Selection>();
1487
object instance = DragDropHelper.GetDroppedObjectInstance(viewElement, this.
Context
, activityType, dataObject);
1544
if (!Selection.MultipleObjectsSelected(this.
Context
))
1558
ContextMenuUtilities.OnAddAnnotationCommandCanExecute(e, this.
Context
);
1563
ContextMenuUtilities.OnAddAnnotationCommandExecuted(e, this.
Context
.Items.GetValue<Selection>().PrimarySelection);
1569
ContextMenuUtilities.OnDeleteAnnotationCommandCanExecute(e, this.
Context
);
1574
ContextMenuUtilities.OnEditAnnotationCommandExecuted(e, this.
Context
.Items.GetValue<Selection>().PrimarySelection);
1579
ContextMenuUtilities.OnDeleteAnnotationCommandCanExecute(e, this.
Context
);
1584
ContextMenuUtilities.OnDeleteAnnotationCommandExecuted(e, this.
Context
.Items.GetValue<Selection>().PrimarySelection);
1601
ModelTreeManager modelTreeManager = this.
Context
.Services.GetService<ModelTreeManager>();
1602
AnnotationAdornerService annotationService = this.
Context
.Services.GetService<AnnotationAdornerService>();
1603
ViewStateService viewStateService = this.
Context
.Services.GetService<ViewStateService>();
1625
ModelTreeManager modelTreeManager = this.
Context
.Services.GetService<ModelTreeManager>();
1626
AnnotationAdornerService annotationService = this.
Context
.Services.GetService<AnnotationAdornerService>();
1627
ViewStateService viewStateService = this.
Context
.Services.GetService<ViewStateService>();
1637
ContextMenuUtilities.OnDeleteAllAnnotationCommandCanExecute(e, this.
Context
);
1642
ModelTreeManager modelTreeManager = this.
Context
.Services.GetService<ModelTreeManager>();
1643
AnnotationAdornerService annotationService = this.
Context
.Services.GetService<AnnotationAdornerService>();
1644
ViewStateService viewStateService = this.
Context
.Services.GetService<ViewStateService>();
1691
IDesignerDebugView debuggerService = this.
Context
.Services.GetService<IDesignerDebugView>();
1692
ICommandService commandService = this.
Context
.Services.GetService<ICommandService>();
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.xaml.cs (30)
122
this.sqmService = this.
Context
.Services.GetService<IVSSqmService>();
166
ViewStateService viewStateService = this.
Context
.Services.GetService<ViewStateService>();
256
ViewStateService viewStateService = this.
Context
.Services.GetService<ViewStateService>();
281
ReadOnlyState state = this.
Context
.Items.GetValue<ReadOnlyState>();
283
this.
Context
.Items.Subscribe<ReadOnlyState>(OnReadOnlyStateChanged);
385
DesignerConfigurationService configurationService = this.
Context
.Services.GetService<DesignerConfigurationService>();
398
DesignerConfigurationService configurationService = this.
Context
.Services.GetService<DesignerConfigurationService>();
449
ModelTreeManager modelTreeManager = this.
Context
.Services.GetService<ModelTreeManager>();
452
WorkflowViewService viewService = this.
Context
.Services.GetService<ViewService>() as WorkflowViewService;
462
this.
Context
.Items.SetValue(selection);
475
this.
Context
.Services.GetService<WindowHelperService>().RegisterWindowMessageHandler(new WindowMessage(OnMessage));
485
this.
Context
.Services.GetService<WindowHelperService>().UnregisterWindowMessageHandler(new WindowMessage(OnMessage));
549
WorkflowViewService viewService = this.
Context
.Services.GetService<ViewService>() as WorkflowViewService;
841
Selection.Toggle(this.
Context
, root.ModelItem);
846
Selection.SelectOnly(this.
Context
, root.ModelItem);
871
designerView.
Context
.Items.SetValue(new ReadOnlyState() { IsReadOnly = (bool)e.NewValue });
1062
VirtualizedContainerService containerService = this.
Context
.Services.GetService<VirtualizedContainerService>();
1088
this.
Context
.Items.SetValue(new Selection());
1351
IWorkflowDesignerStorageService service = this.
Context
.Services.GetService<IWorkflowDesignerStorageService>();
1352
ModelTreeManager modelTreeManager = this.
Context
.Services.GetService<ModelTreeManager>();
1355
Selection selection = this.
Context
.Items.GetValue<Selection>();
1377
IWorkflowDesignerStorageService service = this.
Context
.Services.GetService<IWorkflowDesignerStorageService>();
1378
ModelTreeManager modelTreeManager = this.
Context
.Services.GetService<ModelTreeManager>();
1395
this.
Context
.Items.SetValue(new Selection(modelItemList));
1403
IWorkflowDesignerStorageService service = this.
Context
.Services.GetService<IWorkflowDesignerStorageService>();
1404
DesignerView designerView = this.
Context
.Services.GetService<DesignerView>();
1424
IWorkflowDesignerStorageService service = this.
Context
.Services.GetService<IWorkflowDesignerStorageService>();
1425
ModelTreeManager modelTreeManager = this.
Context
.Services.GetService<ModelTreeManager>();
1443
IWorkflowDesignerStorageService service = this.
Context
.Services.GetService<IWorkflowDesignerStorageService>();
1459
IWorkflowDesignerStorageService service = this.
Context
.Services.GetService<IWorkflowDesignerStorageService>();