Beispiel #1
0
        public override bool Validate()
        {
            bool isValid = base.Validate();

            isValid &= EnumObject.Validate();
            return(isValid);
        }
Beispiel #2
0
        private void SaveButton_Click(object sender, EventArgs e)
        {
            PrepareValidation();
            bool isValid = CurrentObject.Validate();

            if (isValid)
            {
                CurrentObject.SaveValues(false);
            }
        }