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