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(); } }
private void loadFile(String levelFile) { levelList = ClsFileReader.readClsFile(levelFile); }