private void OnMenuClicked(IContextAwareAction action, object context) { if (context is IProcess process) { action.Execute(process); } }
private void OnDataStoreMenuClicked(Point point, IContextAwareAction action) { if (_selectedRow != null && _selectedRow.Tag is IDataStore dataStore) { action.Execute(dataStore); } }
private void OnThreatEventMitigationMenuClicked(IContextAwareAction action, object context) { if (context is IThreatEventMitigation mitigation) { action.Execute(mitigation); } }
private void OnExternalInteractorMenuClicked(IContextAwareAction action, object context) { if (_selectedRow != null && _selectedRow.Tag is IExternalInteractor interactor) { action.Execute(interactor); } }
private void OnMenuClicked(IContextAwareAction action, object context) { if (context is IExternalInteractor externalInteractor) { action.Execute(externalInteractor); } }
private void OnMenuClicked(IContextAwareAction action, object context) { if (context is IThreatActor actor) { action.Execute(actor); } }
private void OnMenuClicked(IContextAwareAction action, object context) { if (context is ITrustBoundary trustBoundary) { action.Execute(trustBoundary); } }
private void OnMenuClicked(IContextAwareAction action, object context) { if (context is IItemTemplate itemTemplate) { action.Execute(itemTemplate); } }
private void OnThreatTypeMenuClicked(IContextAwareAction action, object context) { if (context is IThreatType threatType) { action.Execute(threatType); } }
private void OnThreatEventMenuClicked(IContextAwareAction action, object context) { if (context is IThreatEvent threatEvent) { action.Execute(threatEvent); } }
private void OnProcessMenuClicked(IContextAwareAction action, object context) { if (_selectedRow != null && _selectedRow.Tag is IProcess process) { action.Execute(process); } }
private void OnThreatEventMenuClicked(IContextAwareAction action, object context) { if (_selectedRow != null && _selectedRow.Tag is IThreatEvent threatEvent) { action.Execute(threatEvent); } }
private void OnDiagramMenuClicked(IContextAwareAction action, object context) { if (_selectedRow != null && _selectedRow.Tag is IDiagram diagram) { action.Execute(diagram); } }
private void OnTrustBoundaryMenuClicked(IContextAwareAction action, object context) { if (_selectedRow != null && _selectedRow.Tag is ITrustBoundary trustBoundary) { action.Execute(trustBoundary); } }
private void OnThreatModelMenuClicked(IContextAwareAction action, object context) { if (_selectedRow != null && _selectedRow.Tag is IThreatModel model) { action.Execute(model); } }
private void OnScenarioMenuClicked(IContextAwareAction action, object context) { if (context is IThreatEventScenario scenario) { action.Execute(scenario); } }
private void OnDataFlowMenuClicked(IContextAwareAction action, object context) { if (_selectedRow != null && _selectedRow.Tag is IDataFlow dataFlow) { action.Execute(dataFlow); } }
private void OnMenuClicked(IContextAwareAction action, object context) { if (context is IDataFlow dataFlow) { action.Execute(dataFlow); } }
private void OnScenarioMenuClicked(Point point, IContextAwareAction action) { var selectedRow = GetRow(_grid.PointToClient(point)); if (selectedRow != null && selectedRow.Tag is IThreatEventScenario scenario) { action.Execute(scenario); } }
private void OnMenuClicked(Point point, IContextAwareAction action) { var selectedRow = GetRow(_grid.PointToClient(point)); if (selectedRow != null && selectedRow.Tag is IProcess process) { action.Execute(process); } }
private void OnMenuClicked(Point point, IContextAwareAction action) { var selectedRow = GetRow(_grid.PointToClient(point)); if (selectedRow != null && selectedRow.Tag is ITrustBoundary trustBoundary) { action.Execute(trustBoundary); } }
private void OnThreatTypeMitigationMenuClicked(Point point, IContextAwareAction action) { var selectedRow = GetRow(_grid.PointToClient(point)); if (selectedRow != null && selectedRow.Tag is IThreatTypeMitigation mitigation) { action.Execute(mitigation); } }
private void OnMenuClicked(Point point, IContextAwareAction action) { var selectedRow = GetRow(_grid.PointToClient(point)); if (selectedRow != null && selectedRow.Tag is IItemTemplate itemTemplate) { action.Execute(itemTemplate); } }
private void OnMenuClicked(Point point, IContextAwareAction action) { var selectedRow = GetRow(_grid.PointToClient(point)); if (selectedRow != null && selectedRow.Tag is IExternalInteractor externalInteractor) { action.Execute(externalInteractor); } }