using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace TrackMaker4 { //**This form lets a user create a new train and set values public partial class NewTrain : Form { //Values of the track that the train will go on int xvals; int yvals; Square [,] taken_spots; //Values for the train private int x; private int y; private int coming_from; private int going_to; private String [] colors; //coming from/going to (Directions) const int LEFT = 0; const int TOP = 1; const int RIGHT = 2; const int BOTTOM = 3; int theid; //Train vals stored in here private Train newt;//New Train //Colors Color red = Color.Red; Color blue = Color.Blue; Color green = Color.Green; Color orange = Color.Orange; Color purple = Color.Purple; public NewTrain() { InitializeComponent(); } private void NewTrain_Load(object sender, EventArgs e) { newt = new Train();//Creates a new train tbxId.Text = Id.ToString();//Id's go from 0 to 4. Not chosen by user for(int i=0;i