public void View_ValidateFilename(string filename) { bool allowEmpty = true; if (!FilenameHelper.IsFilenameValid(filename, allowEmpty)) { ScreenManagerKernel.AlertInvalidFileName(); } }
private bool FilePathSanityCheck(string path) { if (cameraGrabber == null) { return(false); } if (!FilenameHelper.IsFilenameValid(path, false)) { ScreenManagerKernel.AlertInvalidFileName(); return(false); } return(true); }