Пример #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;

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

            DynamoViewModel.ExecuteCommand(command);
        }
Пример #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;
        }
Пример #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;
        }