Exemple #1
0
 public TripForm()
 {
     InitializeComponent();
     Game.GetGame().HoursInc += TripForm_HoursInc;
     trip                 = new TripToWater();
     timeLabel.Text       = Game.GetGame().Time.ToString();
     watersBox.DataSource = Game.GetGame().Waters;
     trip.DaysCount       = 1;
     moneyLabel.Text      = "Деньги: " + Player.GetPlayer().Money;
 }
Exemple #2
0
        private void WatersBox_SelectedIndexChanged(object sender, EventArgs e)
        {
            trip = new TripToWater();
            var water = new WaterImplementation();

            trip.TripWater         = water.GetLVL(Game.GetGame().Waters[watersBox.SelectedIndex]);
            mapBox.BackgroundImage = trip.TripWater.MapImage;
            trip.CountPrice();
            trip.CountTime();
            tripBox.Text = trip.ToString();
        }