void SomeDialog::OnButton1Click(wxCommandEvent& event)
{
if ( FileDialog1->ShowModal() != wxID_OK ) return;
wxString FileName = FileDialog1->GetFilename();
if ( FileName.IsEmpty() ) return;
// FileName points to selected file
wxMessageBox( FileName );
}