Example #1
0
        public viewModel()
        {
            _property = new property();
            _property.PropertyChanged += _property_PropertyChanged;

            集电器 = new accumulator(p);
            充电  = new charger(p);
            停靠  = new passengerTerminal(p);
            发电器 = new electricOrgan(p);

            新建停靠钱  = 1000;
            新建集电器钱 = 1000;
            新建充电钱  = 1000;
            新建发电器钱 = 1000;
        }
Example #2
0
 public void newtrain()
 {
     num_电量   = instrument.ran.Next(10, 100);
     money_价格 = instrument.ran.Next(1000);
     充电       = null;
 }