YetAnotherRelogger.Forms.Wizard.WizardMain.ValidateControl C# (CSharp) Method

ValidateControl() private method

private ValidateControl ( object control ) : bool
control object
return bool
        private bool ValidateControl(object control)
        {
            if (control.GetType() == typeof(DemonbuddyOptions))
                return ((DemonbuddyOptions) control).ValidateInput();

            if (control.GetType() == typeof(DiabloOptions))
                return ((DiabloOptions)control).ValidateInput();

            if (control.GetType() == typeof(ProfileSchedule))
                return ((ProfileSchedule)control).ValidateInput();

            if (control.GetType() == typeof(WeekSchedule))
                return ((WeekSchedule)control).ValidateInput();

            // Else always return true
            return true;
        }