public void openProject() { string zip_path = browse_package(); string project_name = Path.GetFileNameWithoutExtension(zip_path); root_folder = Directory.GetParent(zip_path).FullName; root_folder = Path.Combine(root_folder, project_name); extractFiles(zip_path); string project_path = Path.Combine(root_folder, project_name); statusController.setNameAndPath(project_name, project_path); videoManager.loadVideo(Path.Combine(project_path, "MainVideo.mp4")); controller.please_load(); window_Graph.ClearGraph(); window_Graph.MainBranch("main"); timelineController.draw(statusController.getPath(), 150, 100, 80, 1950); }
public void start_existProject() { string project_path = browse_folder(); string project_name = Path.GetFileName(project_path); statusController.setNameAndPath(project_name, project_path); if (project_path != "" && project_path != null) { string main_video_path = System.IO.Path.Combine(project_path, "MainVideo.mp4"); if (File.Exists(@main_video_path)) { videoManager.loadVideo(main_video_path); controller.please_load(); } else { warningController.displayErrorMessage("Please add a main video."); } window_Graph.ClearGraph(); window_Graph.MainBranch("main"); timelineController.draw(statusController.getPath(), 150, 100, 100, 1950); } }
//Redraw the timeline when hotspots are saved to json from the hashtable. public void Redraw() { window_Graph.ClearGraph(); window_Graph.MainBranch("main"); timelineController.draw(timelineController.getRoot(), 150, 100, 100, 1950); }