Пример #1
0
        public void DeleteSelection(bool deleteSynapses = true)
        {
            List <int> neuronsToDelete = theSelection.EnumSelectedNeurons();

            foreach (int nID in neuronsToDelete)
            {
                Neuron n = MainWindow.theNeuronArray.GetNeuron(nID);
                n.CurrentCharge = 0;
                n.LastCharge    = 0;
                n.Model         = Neuron.modelType.Std;
                if (deleteSynapses)
                {
                    n.DeleteAllSynapes();
                }
                n.Label = "";
            }
            DeleteModulesInSelection();
            Update();
        }