Exemplo n.º 1
0
        } /* ValidateSourceDirectory */

        private void  ValidateGroupName()
        {
            errorProvider1.SetError(GroupName, "");
            String errorDesc = "";
            bool   valid     = false;

            groupName = GroupName.Text;
            PicesDataBaseImageGroup.ValidName(ref groupName, ref errorDesc, ref valid);
            if (!valid)
            {
                errorProvider1.SetError(GroupName, errorDesc);
                validationErrorFound = true;
            }
            GroupName.Text = groupName;
        } /* ValidateGroupName */
Exemplo n.º 2
0
        private void  ValidateGroupName()
        {
            errorProvider1.SetError(GroupName, "");
            String errorDesc = "";
            bool   valid     = false;

            groupName = GroupName.Text;
            PicesDataBaseImageGroup.ValidName(ref groupName, ref errorDesc, ref valid);
            if (!valid)
            {
                errorProvider1.SetError(GroupName, errorDesc);
                validationErrorFound = true;
            }

            if (dbConn.ImageGroupLoad(groupName) != null)
            {
                errorDesc = "This Group name already exists.";
                errorProvider1.SetError(GroupName, errorDesc);
                validationErrorFound = true;
            }

            GroupName.Text = groupName;
        } /* ValidateGroupName */