void menu_file_new_Click(object sender, RoutedEventArgs e) { NewLevelDialog nld = new NewLevelDialog(); nld.ShowDialog(); if (nld.Status) { string name = nld.LevelName; if (name.Length == 0) { MessageBox.Show("Cannot have a blank name"); } else { Level level = new Level(name, true); this.MakeThisLevelActive(level); } } UpdateTitle(); }