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); }
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); }
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); }