public LevelPropertiesForm(Level level)
 {
     InitializeComponent();
     this.level = level;
     tbAuthor.Text = level.author;
     tbName.Text = level.name;
 }
Example #2
0
 private void newLevel()
 {
     level = new Level();
     currentLevelFilename = null;
     onLevelChanged();
 }
Example #3
0
        private void loadLevel(string filename)
        {
            if (!File.Exists(filename)) throw new ArgumentException("Level file not found");

            level = new Level(filename);
            currentLevelFilename = filename;
            onLevelChanged();
        }