public void Show(Fragment previous, Fragment next) { var previousblock = registery[previous]; var bp = previousblock.GetTailPosition(next.Direction); var newblock = new Block(bp); DisplayPanel.Show(newblock); registery.Add(next, newblock); }
void ShowBait() { Block bait = null; do { var bp = new BlockPosition() { Column = randomgenerator.Next(0, 60), Row = randomgenerator.Next(0, 25) }; bait = new Block(bp); bait.Control.BackColor = Color.Green; } while (!DisplayManager.ShowBait(bait)); }