/// <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)); }
private void openProjectToolStripMenuItem_Click(object sender, EventArgs e) { DialogResult result = OpenProjectDialog.ShowDialog(); //Only read in file of OK button was pressed if (result == DialogResult.OK) ProjectInfo = XMLReader.ParseProject(OpenProjectDialog.FileName); //Load the video EngineView.LoadMovie(0, Path.Combine(ProjectInfo.DirectoryPath, ProjectInfo.EditorEngineFileName)); }
/// <summary> /// Initializes the VideoPlayer. Everything related to VideoPlayer initialization should /// go in this method. /// </summary> private void InitVideoPlayer() { //This method can not be called in the EngineView constructor, so we will call it here. EngineView.LoadMovie(0, Paths.BlankSwf); }