public WaveWriter(AudioFile AF, string TargetFile) { InitializeComponent(); this.prbBytesWritten.Select(); this.txtSource.Text = AF.Path; this.txtTarget.Text = TargetFile; this.AF = AF; #if LocalWAVHeader this.AFS = AF.OpenStream(false); #else this.AFS = AF.OpenStream(true); #endif this.FS = new FileStream(TargetFile, FileMode.Create, FileAccess.Write); }