private void Display_MouseMove(object sender, MouseEventArgs e) { var cell = Grid.GetCellAtAbsolute(e.X, e.Y); if (e.Button == MouseButtons.Left) { Grid.SetCellAlive(cell, true); } if (e.Button == MouseButtons.Right) { Grid.SetCellAlive(cell, false); } Grid.Update(); }