/// <summary> /// Handles the loading of the new project for the different controlls on the form. /// </summary> /// <param name="sender">Sender</param> /// <param name="e">Event Args</param> private void NewProjectForm_ProjectCreated(object sender, ProjectCreatedEventArgs e) { //Set ProjectInfo and core data references to the new project's data. ProjectInfo = e.ProjectInfo; //Save project by calling the SaveProject menu item click handler. saveProjectToolStripMenuItem.PerformClick(); EngineView.LoadMovie(0,Path.Combine(ProjectInfo.DirectoryPath,ProjectInfo.EditorEngineFileName)); }
/// <summary> /// Raises the ProjectCreated event. /// </summary> /// <param name="e">The event arguments needed for the event</param> private void OnProjectCreated(ProjectCreatedEventArgs e) { /* Make a local copy of the event to prevent the case where the handler * will be set as null in-between the null check and the handler call. */ EventHandler <ProjectCreatedEventArgs> handler = ProjectCreated; if (handler != null) { handler(this, e); } }