private void btnPlayCall_Click(object sender, EventArgs e) { if ((SelectedProduct != null) && ((SelectedProduct as CallClass).Path != "")) { CallPlayer newWin = new CallPlayer((SelectedProduct as CallClass).Path); newWin.ShowDialog(); } else { MessageBox.Show("Media file was not found"); } }