Exemple #1
0
        private void OpenToolStripMenuItemClick(object sender, EventArgs e)
        {
            fileDialog            = new OpenFileDialog();
            fileDialog.Title      = "Open Cubes LevelsFile...";
            fileDialog.DefaultExt = "cls";
            fileDialog.Filter     = "Cubes LevelsFile |*.cls";

            if (fileDialog.ShowDialog() == DialogResult.OK)
            {
                Core.Instance.LevelList =
                    ClsFileReader.readClsFile(fileDialog.FileName);
                setCurrentFile(fileDialog.FileName);
                levelView.Invalidate();
            }
        }
Exemple #2
0
 private void loadFile(String levelFile)
 {
     levelList = ClsFileReader.readClsFile(levelFile);
 }