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

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

            // Set forms to be MDI and show them
            fTile           = FormTile.GetFormInstance();
            fTile.MdiParent = this;
            fObject         = new FormObject {
                MdiParent = this
            };
            fTile.Show();
            fObject.Show();
            if (startupMapFile != null)
            {
                FormMap mapForm = new FormMap(this);
                mapForm.attemptToOpenMap(startupMapFile);
                mapForm.Show();
            }
        }
Esempio n. 2
0
 private void showTilesMenuItem_Click(object sender, EventArgs e)
 {
     fTile             = FormTile.GetFormInstance();
     fTile.WindowState = FormWindowState.Normal;
     fTile.Show();
 }