Пример #1
0
 public Train(string id, string message, int num, int i)
 {
     this.id_train = id;
     this.message  = message;
     this.num      = num;
     this.type     = (typeTrain)i;
 }
Пример #2
0
 public Train(string n, string nm, string d, typeTrain t)
 {
     Number = n;
     Name   = nm;
     Date   = d;
     ty     = t;
 }
Пример #3
0
        typeTrain tType; //добавил открытый члет типа typeTrain

        public Train(string a, string b, int c, typeTrain d)
        {
            number  = a;
            message = b;
            cout    = c;
            tType   = d;
        }
Пример #4
0
 public Train(string n, string r, int c, string train)
 {
     number    = n;
     route     = r;
     count     = c;
     this.type = (typeTrain)Enum.Parse(typeof(typeTrain), train);
 }
Пример #5
0
 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;
     }
 }
Пример #6
0
 public FirmTrain(string newA, double newB, string a, string b, int c, typeTrain d) : base(a, b, c, d)
 {
     nameFirm = newA;
     kPrice   = newB;
 }