private void btnAddRoute_Click(object sender, EventArgs e)
        {
            // Opens the route info editor, with white and a blank name
            var editWindow = new EditRouteAndColour();
            editWindow.hexColour = "ffffff";
            editWindow.routeNumber = "";

            if (editWindow.ShowDialog() == DialogResult.OK)
            {

                routeList.Add(new string[] { editWindow.routeNumber, editWindow.hexColour });
                refreshDisplay();
            }
        }
 private void picBoxClick(object sender, EventArgs e)
 {
     var current = sender as PictureBox;
     // Find out the index of the sender from its position
     int i = current.Location.Y / 25;
     // Get an edit window started
     var editWindow = new EditRouteAndColour();
     // Grab the number and colour from the string array
     editWindow.routeNumber = routeList[i][0];
     editWindow.hexColour = routeList[i][1];
     if (editWindow.ShowDialog() == DialogResult.OK)
     {
         routeList[i] = new string[] { editWindow.routeNumber, editWindow.hexColour };
         refreshDisplay();
     }
 }