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

            if (!FilenameHelper.IsFilenameValid(filename, allowEmpty))
            {
                ScreenManagerKernel.AlertInvalidFileName();
            }
        }
Exemple #2
0
 private void tbVideoDirectory_TextChanged(object sender, EventArgs e)
 {
     if (!m_filenameHelper.ValidateFilename(tbVideoDirectory.Text, true))
     {
         ScreenManagerKernel.AlertInvalidFileName();
     }
     else
     {
         m_VideoDirectory = tbVideoDirectory.Text;
     }
 }
Exemple #3
0
        private bool FilePathSanityCheck(string path)
        {
            if (cameraGrabber == null)
            {
                return(false);
            }

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

            return(true);
        }