public WelcomeScreen(RecentGamesList recentGames) { InitializeComponent(); this.Shown += new EventHandler(WelcomeScreen_Shown); _recentGames = recentGames.RecentGames; if (_recentGames.Count == 0) { radRecent.Enabled = false; lstRecentGames.Enabled = false; radNewGame.Checked = true; } else { radRecent.Checked = true; foreach (RecentlyEditedGame game in _recentGames) { lstRecentGames.Items.Add(game.GameName).SubItems.Add(game.DirectoryPath); } lstRecentGames.SelectedIndices.Add(0); } }
public void DoEditorInitialization() { _game = new Game(); _sourceControl = new SourceControlProvider(); _recentGamesList = new RecentGamesList(); _debugger = new DebugController(_engineComms); _debugger.BreakAtLocation += new DebugController.BreakAtLocationHandler(_debugger_BreakAtLocation); _builtInScriptHeader = new Script(BUILT_IN_HEADER_FILE_NAME, Resources.ResourceManager.GetResourceAsString("agsdefns.sh"), true); AutoComplete.ConstructCache(_builtInScriptHeader); Factory.NativeProxy.NewGameLoaded(Factory.AGSEditor.CurrentGame); }