Example #1
0
        private void OnTextboxValidationLost(object sender, EventArgs e)
        {
            MachinViewerTxbRule SenderRule = sender as MachinViewerTxbRule;

            switch (SenderRule.Tag)
            {
            //Only set ValidItem digit to 0 when both are 1.
            case "Hostname":
                ValidItems = ~ItemValidStatus.Hostname & ValidItems;
                break;

            case "Domain":
                ValidItems = ~ItemValidStatus.Domain & ValidItems;
                break;

            case "IPv4":
                ValidItems = ~ItemValidStatus.Ipv4 & ValidItems;
                break;

            case "IPv6":
                ValidItems = ~ItemValidStatus.Ipv6 & ValidItems;
                break;

            default:
                break;
            }
            OnFormContentValidated(ValidItems);
        }
Example #2
0
        private void OnTextboxValidated(object sender, EventArgs e)
        {
            MachinViewerTxbRule SenderRule = sender as MachinViewerTxbRule;

            switch (SenderRule.Tag)
            {
            case "Hostname":
                ValidItems |= ItemValidStatus.Hostname;
                break;

            case "Domain":
                ValidItems |= ItemValidStatus.Domain;
                break;

            case "IPv4":
                ValidItems |= ItemValidStatus.Ipv4;
                break;

            case "IPv6":
                ValidItems |= ItemValidStatus.Ipv6;
                break;

            default:
                break;
            }

            OnFormContentValidated(ValidItems);
        }