void addFrame(bool enter = false) { if (sequence == null) { return; } Dictionary <object, object> map; changeFrame(sequence.add(brain, count)); if (frame != null) { map = display.loadFrame(frame, count); balanceSize(); if (enter) { frame.Neuron.changeType(SequenceElementType.Active); } } else { return; } tuple = new Tuple <int, int>(tuple.Item1, tuple.Item2 + 1); tracking.Insert(count, tuple); addMap(map); frame.change(); }
void changeFrame(CreationFrame cf, bool change = false) { if (frame != null) { frame.create(); frame.Neuron.changeType(SequenceElementType.Normal); } frame = cf; frame.Neuron.changeType(SequenceElementType.Active); if (change) { frame.change(); } if (animation) { frame.step(); } }