Beispiel #1
0
        public override int Mutate()
        {
            List<NodeModel> nodes = DynamoModel.Nodes;
            NodeModel node = nodes[Rand.Next(nodes.Count)];

            dynSettings.Controller.UIDispatcher.Invoke(new Action(() =>
                {
                    DynamoViewModel.DeleteModelCommand delCommand =
                        new DynamoViewModel.DeleteModelCommand(node.GUID);
                
                    DynamoViewModel.ExecuteCommand(delCommand);

                }));

            //We've performed a single delete
            return 1;

        }
Beispiel #2
0
 private void DeleteNodeAndItsConnectors(object parameter)
 {
     var command = new DynamoViewModel.DeleteModelCommand(nodeLogic.GUID);
     dynSettings.Controller.DynamoViewModel.ExecuteCommand(command);
 }
Beispiel #3
0
        private void DeleteNodeAndItsConnectors(object parameter)
        {
            var command = new DynamoViewModel.DeleteModelCommand(nodeLogic.GUID);

            DynamoViewModel.ExecuteCommand(command);
        }
Beispiel #4
0
        public override int Mutate(NodeModel node)
        {
            this.DynamoViewModel.UIDispatcher.Invoke(new Action(() =>
                {
                    DynamoViewModel.DeleteModelCommand delCommand =
                        new DynamoViewModel.DeleteModelCommand(node.GUID);
                
                    DynamoViewModel.ExecuteCommand(delCommand);
                }));

            //We've performed a single delete
            return 1;
        }
Beispiel #5
0
        public override int Mutate(NodeModel node)
        {
            DynamoViewModel.UIDispatcher.Invoke(new Action(() =>
            {
                DynamoViewModel.DeleteModelCommand delCommand =
                    new DynamoViewModel.DeleteModelCommand(node.GUID);

                DynamoViewModel.ExecuteCommand(delCommand);

            }));

            return 1;
        }