//------------------------------------------------------------------------ public void OnClickExcel() { OpenFileDialog dialog = new OpenFileDialog(); if (dialog.ShowDialog() == DialogResult.OK) { ResultInfo <Object> resultInfo = m_modelFolderCreator.ImportFromExcel(dialog.FileName); m_mainWnd.SetListViewPreview(m_modelFolderCreator.ListOfModelDirectory); if (resultInfo.IsNotOK()) { m_mainWnd.ShowMessageBox(resultInfo.Message); } } }