示例#1
0
 private void mnuCloseROM_Click(object sender, EventArgs e)
 {
     if (BCData != null)
     {
         BCData.Dispose();
         BCData = null;
         SetEnabledStatus(false);
     }
 }
示例#2
0
 private void LoadROM(string filename)
 {
     BCData = new BattleCityData(filename, "Resources" + Path.DirectorySeparatorChar + "BattleCityJ.ini", "",
         "Resources" + Path.DirectorySeparatorChar);
     BCData.Level = 0;
     SetEnabledStatus(true);
     // Reset the editing mode to map editing mode.
     ChangeEditingMode(EditorSetting.MapEditingMode);
     // Reset the current tile.
     CurrentTile = 0;
     // Reset the current pattern table tile.
     CurTSATile = -1;
     // Set the window caption.
     SetWindowTitle();
     // Set the statusbar.
     lblDataFile.Text = "BattleCityJ.ini";
     lblDataFile.Image = new Bitmap(BCData.TypeIcon);
 }