예제 #1
0
파일: MainForm.cs 프로젝트: IMDC/EnACT
        /// <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));
        }
예제 #2
0
파일: MainForm.cs 프로젝트: IMDC/EnACT
        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));
        }
예제 #3
0
파일: MainForm.cs 프로젝트: IMDC/EnACT
 /// <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);
 }