- std::string inputDir = crea::wx2std(gimmickTools->getInputDir());
- std::string outputDir = crea::wx2std(gimmickTools->getOutputDir());
- bool addToDB = gimmickTools->getCheckBoxValue();
-
- if (inputDir.compare("")!=0 && outputDir.compare("")!=0)
- {
- if ( wxMessageBox(_T("Depending on the amount of Data the process can take between 1 and 5 minutes. Do you want to continue?"),
- _T("Please confirm"), wxICON_QUESTION | wxYES_NO) == wxYES )
- {
- Bruker2Dicom b2d;
- b2d.SetInputDirectory(inputDir);
- b2d.SetOutputDirectory(outputDir);
- b2d.SetConvertModeToDicom();
- b2d.Execute();
-
- if (addToDB)
- {
- mProgressDialog = new wxProgressDialog(_T("Adding directory"),_T(""),1000,this,wxPD_ELAPSED_TIME |wxPD_CAN_ABORT );
- mCurrentDirectory = gimmickTools->getOutputDir();
- mGimmick->AddDir(crea::wx2std(mNotebook->GetPageText(mNotebook->GetSelection())),outputDir,true);
- mProgressDialog->Pulse(_T("Updating view..."));
-
- UpdateTreeViewLevel(crea::wx2std(mNotebook->GetPageText(mNotebook->GetSelection())),1);
- delete mProgressDialog;
- DisplayAddSummary();
- }
- }
- }
-
- else
- {
- wxMessageBox(_T("One or both of the directory fields are empty"),_T("Empty Fields"),wxOK,this);
- }
+ mProgressDialog = new wxProgressDialog(_T("Adding directory"),_T(""),1000,this,wxPD_ELAPSED_TIME |wxPD_CAN_ABORT );
+ mCurrentDirectory = gimmickTools->getOutputDir();
+ mGimmick->AddDir(crea::wx2std(mNotebook->GetPageText(mNotebook->GetSelection())),outputDir,true);
+ mProgressDialog->Pulse(_T("Updating view..."));
+
+ UpdateTreeViewLevel(crea::wx2std(mNotebook->GetPageText(mNotebook->GetSelection())),1);
+ delete mProgressDialog;
+ DisplayAddSummary();
+ }