private void OnMenuClicked(IContextAwareAction action, object context)
 {
     if (context is IProcess process)
     {
         action.Execute(process);
     }
 }
Exemple #2
0
 private void OnDataStoreMenuClicked(Point point, IContextAwareAction action)
 {
     if (_selectedRow != null && _selectedRow.Tag is IDataStore dataStore)
     {
         action.Execute(dataStore);
     }
 }
Exemple #3
0
 private void OnThreatEventMitigationMenuClicked(IContextAwareAction action, object context)
 {
     if (context is IThreatEventMitigation mitigation)
     {
         action.Execute(mitigation);
     }
 }
Exemple #4
0
 private void OnExternalInteractorMenuClicked(IContextAwareAction action, object context)
 {
     if (_selectedRow != null && _selectedRow.Tag is IExternalInteractor interactor)
     {
         action.Execute(interactor);
     }
 }
Exemple #5
0
 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);
     }
 }
Exemple #7
0
 private void OnMenuClicked(IContextAwareAction action, object context)
 {
     if (context is ITrustBoundary trustBoundary)
     {
         action.Execute(trustBoundary);
     }
 }
Exemple #8
0
 private void OnMenuClicked(IContextAwareAction action, object context)
 {
     if (context is IItemTemplate itemTemplate)
     {
         action.Execute(itemTemplate);
     }
 }
Exemple #9
0
 private void OnThreatTypeMenuClicked(IContextAwareAction action, object context)
 {
     if (context is IThreatType threatType)
     {
         action.Execute(threatType);
     }
 }
Exemple #10
0
 private void OnThreatEventMenuClicked(IContextAwareAction action, object context)
 {
     if (context is IThreatEvent threatEvent)
     {
         action.Execute(threatEvent);
     }
 }
Exemple #11
0
 private void OnProcessMenuClicked(IContextAwareAction action, object context)
 {
     if (_selectedRow != null && _selectedRow.Tag is IProcess process)
     {
         action.Execute(process);
     }
 }
Exemple #12
0
 private void OnThreatEventMenuClicked(IContextAwareAction action, object context)
 {
     if (_selectedRow != null && _selectedRow.Tag is IThreatEvent threatEvent)
     {
         action.Execute(threatEvent);
     }
 }
Exemple #13
0
 private void OnDiagramMenuClicked(IContextAwareAction action, object context)
 {
     if (_selectedRow != null && _selectedRow.Tag is IDiagram diagram)
     {
         action.Execute(diagram);
     }
 }
Exemple #14
0
 private void OnTrustBoundaryMenuClicked(IContextAwareAction action, object context)
 {
     if (_selectedRow != null && _selectedRow.Tag is ITrustBoundary trustBoundary)
     {
         action.Execute(trustBoundary);
     }
 }
Exemple #15
0
 private void OnThreatModelMenuClicked(IContextAwareAction action, object context)
 {
     if (_selectedRow != null && _selectedRow.Tag is IThreatModel model)
     {
         action.Execute(model);
     }
 }
Exemple #16
0
 private void OnScenarioMenuClicked(IContextAwareAction action, object context)
 {
     if (context is IThreatEventScenario scenario)
     {
         action.Execute(scenario);
     }
 }
Exemple #17
0
 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);
     }
 }
Exemple #19
0
        private void OnScenarioMenuClicked(Point point, IContextAwareAction action)
        {
            var selectedRow = GetRow(_grid.PointToClient(point));

            if (selectedRow != null && selectedRow.Tag is IThreatEventScenario scenario)
            {
                action.Execute(scenario);
            }
        }
Exemple #20
0
        private void OnMenuClicked(Point point, IContextAwareAction action)
        {
            var selectedRow = GetRow(_grid.PointToClient(point));

            if (selectedRow != null && selectedRow.Tag is IProcess process)
            {
                action.Execute(process);
            }
        }
Exemple #21
0
        private void OnMenuClicked(Point point, IContextAwareAction action)
        {
            var selectedRow = GetRow(_grid.PointToClient(point));

            if (selectedRow != null && selectedRow.Tag is ITrustBoundary trustBoundary)
            {
                action.Execute(trustBoundary);
            }
        }
Exemple #22
0
        private void OnThreatTypeMitigationMenuClicked(Point point, IContextAwareAction action)
        {
            var selectedRow = GetRow(_grid.PointToClient(point));

            if (selectedRow != null && selectedRow.Tag is IThreatTypeMitigation mitigation)
            {
                action.Execute(mitigation);
            }
        }
Exemple #23
0
        private void OnMenuClicked(Point point, IContextAwareAction action)
        {
            var selectedRow = GetRow(_grid.PointToClient(point));

            if (selectedRow != null && selectedRow.Tag is IItemTemplate itemTemplate)
            {
                action.Execute(itemTemplate);
            }
        }
Exemple #24
0
        private void OnMenuClicked(Point point, IContextAwareAction action)
        {
            var selectedRow = GetRow(_grid.PointToClient(point));

            if (selectedRow != null && selectedRow.Tag is IExternalInteractor externalInteractor)
            {
                action.Execute(externalInteractor);
            }
        }