public Train(string id, string message, int num, int i) { this.id_train = id; this.message = message; this.num = num; this.type = (typeTrain)i; }
public Train(string n, string nm, string d, typeTrain t) { Number = n; Name = nm; Date = d; ty = t; }
typeTrain tType; //добавил открытый члет типа typeTrain public Train(string a, string b, int c, typeTrain d) { number = a; message = b; cout = c; tType = d; }
public Train(string n, string r, int c, string train) { number = n; route = r; count = c; this.type = (typeTrain)Enum.Parse(typeof(typeTrain), train); }
public Train(string newNomer_poezda, string newSoobshenie, int newKolvo_vagonov, int type) { Nomer_poezda = newNomer_poezda; Soobshenit = newSoobshenie; Kolvo_vagonov = newKolvo_vagonov; if (type == 0) { tType = typeTrain.skTrain; } else if (type == 1) { tType = typeTrain.pasTrain; } else if (type == 2) { tType = typeTrain.tTrain; } else { tType = 0; } }
public FirmTrain(string newA, double newB, string a, string b, int c, typeTrain d) : base(a, b, c, d) { nameFirm = newA; kPrice = newB; }