this->CrystUpdate();
void WXDiffractionSingleCrystal::OnMenuImport(wxCommandEvent & event){   switch(event.GetId())   {      case ID_DIFFSINGLECRYST_MENU_IMPORT_HKLIOBS:      {         wxFileDialog open(this,"Choose file to import from",                                        "","","*.*",wxOPEN | wxFILE_MUST_EXIST);         if(open.ShowModal() != wxID_OK) return;         long nb=0;         {            wxTextEntryDialog dialog(this,"Number of reflections",                                    "Enter The number of reflections to import","50",                                    wxOK | wxCANCEL);            if(wxID_OK!=dialog.ShowModal())            {               VFN_DEBUG_EXIT("WXDiffractionSingleCrystal::OnMenuImport():Cancelled",6)               return;            }            dialog.GetValue().ToLong(&nb);         }         mpData->ImportHklIobs(open.GetPath().c_str(),nb);         return;      }      case ID_DIFFSINGLECRYST_MENU_IMPORT_HKLIOBSSIGMA:      {         wxFileDialog open(this,"Choose file to import from",                                        "","","*.*",wxOPEN | wxFILE_MUST_EXIST);         if(open.ShowModal() != wxID_OK) return;         long nb=0;         {            wxTextEntryDialog dialog(this,"Number of reflections",                                    "Enter The number of reflections to import","50",                                    wxOK | wxCANCEL);            if(wxID_OK!=dialog.ShowModal())            {               VFN_DEBUG_EXIT("WXDiffractionSingleCrystal::OnMenuImport():Cancelled",6)               return;            }            dialog.GetValue().ToLong(&nb);         }         mpData->ImportHklIobsSigma(open.GetPath().c_str(),nb);         return;      }      case ID_DIFFSINGLECRYST_MENU_IMPORT_JANAM91:      {      }   }}