Exemplo n.º 1
0
        private void FormMain_Load(object sender, EventArgs e)
        {
            // Extract files if required
            StartupUtilities.lblStatus = lblStatus;
            StartupUtilities.CreateMapEditorRegistryKey();
            if (!StartupUtilities.ExtractFiles(Application.StartupPath))
            {
                return;
            }

            // Load tiles
            TileManager.lblStatus = lblStatus;
            TileManager.Load(Application.StartupPath);

            // Set forms to be MDI and show them
            fTile = new FormTile {
                MdiParent = this
            };
            fObject = new FormObject {
                MdiParent = this
            };
            fTile.Show();
            fObject.Show();
            new FormMap(this).Show();
        }
Exemplo n.º 2
0
        private void FormMain_Load(object sender, EventArgs e)
        {
            // Extract files if required
            StartupUtilities.lblStatus = lblStatus;
            StartupUtilities.CreateMapEditorRegistryKey();
            if(!StartupUtilities.ExtractFiles(Application.StartupPath)) return;

            // Load tiles
            TileManager.lblStatus = lblStatus;
            TileManager.Load(Application.StartupPath);

            // Set forms to be MDI and show them
            fTile = new FormTile { MdiParent = this };
            fObject = new FormObject { MdiParent = this };
            fTile.Show();
            fObject.Show();
            new FormMap(this).Show();
        }