Exemplo n.º 1
0
        private void btnTravel_Click(object sender, EventArgs e)
        {
            Travel travel = new Travel(inventory);

            Progress += travel.Progress;
            PlayerProgess p = new PlayerProgess();

            p.Progress = inventory.player.progress;
            Progress?.Invoke(this, p);
            travel.ShowDialog();
        }
Exemplo n.º 2
0
 //event progress method
 public void Progress(object sender, PlayerProgess e)
 {
     progress = e.Progress;
 }