private void OnNewData() { try { _dataEditor.CloseAllTabs(); _datasetProvider.ResetSchema(); _dataEditor.DataFileName = ""; _applicationController.ExecuteCommand <ReloadSchemaCommand>(); } catch (ReloadSchemaCommandException e) { _messageCreator.ShowError(e.Message); } catch (Exception e) { _messageCreator.ShowError(e.ToString()); } }