private void btnLoad_Click(object sender, EventArgs e)
        {
            if (cmbSave.Text != "")
            {
                Loading = true;
                frmGame = new frmGame();

                frmGame.LoadGame(cmbSave.Text);

                frmGame.FormClosed += delegate { this.Close(); };

                frmGame.Show();
                this.Close();
            }
        }
Exemple #2
0
        public frmBuild(frmGame frmGame)
        {
            InitializeComponent();
            this.frmGame = frmGame;

            BuildingID = -1;
            RegionID   = frmGame.selectedRegion;

            World world = frmGame.World;

            pbMoney.Image  = DrawingPlus.LoadImage(NarivianClass.IconsDirectory + "Money.PNG");
            pbMoney2.Image = pbMoney.Image;

            lblMoney.Text = frmGame.World.Faction[frmGame.Player].Money.ToString();

            UpdateBuildingList();
        }
 public frmSaveGame(frmGame frmGame)
 {
     this.frmGame = frmGame;
     InitializeComponent();
 }
Exemple #4
0
 public frmMenu(frmGame game)
 {
     InitializeComponent();
     frmGame = game;
 }
 public void SetGame(frmGame frmGame)
 {
     this.frmGame = frmGame;
 }