예제 #1
0
        public void View_ValidateFilename(string filename)
        {
            bool allowEmpty = true;

            if (!FilenameHelper.IsFilenameValid(filename, allowEmpty))
            {
                ScreenManagerKernel.AlertInvalidFileName();
            }
        }
예제 #2
0
        private bool FilePathSanityCheck(string path)
        {
            if (cameraGrabber == null)
            {
                return(false);
            }

            if (!FilenameHelper.IsFilenameValid(path, false))
            {
                ScreenManagerKernel.AlertInvalidFileName();
                return(false);
            }

            return(true);
        }