private void CloseFile() { if (!CanCloseFile()) { return; } try { _textView.CloseFile(); New(false); } catch (Exception ex) { MessageBox.ErrorQuery("Error", ex.Message, "Ok"); } }