public EncodingDlg(ViewRecording recording, RecordingSettings settings, string outFilename, IRecordingRenderer renderer) { InitializeComponent(); this.recording = recording; this.settings = settings; this.renderer = renderer; this.outFilename = outFilename; workThread = new Thread(this.EncodeProcess); }