internal Converting(string fileName, ConversionFormat format, bool sendToITunesSelected) { InitializeComponent(); this.conversionFormat = format; this.sendToITunesSelected = sendToITunesSelected; this.ffmpegOutput = new List<string>(); fileNameLabel.Content = IOPath.GetFileName(fileName); progressLabel.Content = "Starting..."; converter = format.MakeConverter(fileName); converter.Output += new EventHandler<ProcessOutputArgs>(converter_FFMPEGOutput); converter.ConvertProgress += new EventHandler<VideoConvertProgressArgs>(converter_ConvertProgress); converter.Finished += new EventHandler<EventArgs>(converter_Finished); converter.UnknownFormat += new EventHandler<EventArgs>(converter_UnknownFormat); converter.Start(); }
private void ShowConvertingView(string fileName, ConversionFormat format, bool sendToITunesSelected) { Converting convertingView = new Converting(fileName, format, sendToITunesSelected); this.mainGrid.Children.Add(convertingView); convertingView.Margin = new Thickness(0); convertingView.HorizontalAlignment = HorizontalAlignment.Stretch; convertingView.VerticalAlignment = VerticalAlignment.Stretch; convertingView.Finished += new EventHandler<VideoConvertFinishedArgs>(convertingView_Finished); convertingView.Cancelled += new EventHandler<EventArgs>(convertingView_Cancelled); convertingView.UnknownFormat += new EventHandler<EventArgs>(convertingView_UnknownFormat); }
internal FFMPEGVideoConverter(string fileName, ConversionFormat format) { args = format.GetArguments(fileName, outputFileName = Path.ChangeExtension(fileName, format.OutputFileExtension)); }
public VideoSelectedEventArgs(string fileName, ConversionFormat format, bool sendToITunesSelected) { this.FileName = fileName; this.Format = format; this.SendToITunesSelected = sendToITunesSelected; }