private void dlgSaveFile_FileOk(object sender, CancelEventArgs e) { file.WriteFile(dlgSaveFile.FileName); file = new WaveAudio(new FileStream(txtFilePath.Text, FileMode.Open, FileAccess.Read)); sh = new StagnoHelper(file); }