private void btnUseVideo_Click(object sender, EventArgs e) { try { if (vpf == null || vpf.IsDisposed) { String[] filenames = ShowOpenFileDialog("Select a video to open...", "", "", false); if (filenames != null) { if (filenames[0].Length > 0) { vpf = new frmVideoPlayer(filenames[0]); vpf.FrameList = vfl; vpf.SectionForm = this; } } } ShowForm(vpf); EnableFromVideoBtns(); } catch (Exception ex) { ShowExceptionMessage(ex); } }
public frmVideoPlayerCrop(frmVideoPlayer masterForm, Int32 maximumWidth, Int32 maximumHeight) { InitializeComponent(); InitColors(); InitControls(); InitIcon(); this.Text = "Video Player Crop"; vpf = masterForm; numX1.Maximum = maximumWidth; numX2.Maximum = maximumWidth; numY1.Maximum = maximumHeight; numY2.Maximum = maximumHeight; }
private void btnPreview_Click(object sender, EventArgs e) { try { //Make sure that files have the latest edits SaveFiles(); //Open the preview form (VideoPlayerForm) frmVideoPlayer vpf = new frmVideoPlayer(fr.frpf.AviSynthOutputFile); //Show the form vpf.Show(); } catch (Exception ex) { AcLogger.Log(ex, AcLogType.FileAndLogger); } }
/// <summary> /// Constructor to load a section file /// </summary> /// <param name="secFile"></param> /// <param name="vf"></param> public frmSectionEditor(String secFile, frmVideoPlayer vf) { vpf = vf; Init(); LoadSection(secFile); }
/// <summary> /// Constructor to associate with a video player form /// </summary> /// <param name="vf"></param> public frmSectionEditor(frmVideoPlayer vf) { vpf = vf; Init(); }