Example #1
0
        public static bool CheckNotExistsInProject(TextBox textBox, ToolTip toolTip, string path)
        {
            var isExists = !QtWizard.CheckFile(path);

            if (isExists)
            {
                ShowError(textBox, toolTip, "File already exists in project");
            }

            return(!isExists);
        }
Example #2
0
        public static bool CheckValidFileName(TextBox textBox, ToolTip toolTip)
        {
            var text    = textBox.Text;
            var isValid = QtWizard.ValidateFileName(text);

            if (!isValid)
            {
                ShowError(textBox, toolTip, "Not valid name");
            }

            return(isValid);
        }
Example #3
0
        public static bool CheckValidIdentifier(TextBox textBox, ToolTip toolTip)
        {
            var text    = textBox.Text;
            var isValid = QtWizard.ValidateIdentifier(text);

            if (!isValid)
            {
                ShowError(textBox, toolTip, "Not valid identifier");
            }

            return(isValid);
        }