ATMLCommonLibrary.controls.common.ValueControl.SetControlStates C# (CSharp) Method

SetControlStates() private method

private SetControlStates ( ) : void
return void
        private void SetControlStates()
        {
            collectionControl.Enabled = collectionControl.Visible = @"Collection".Equals(cmbValueType.Text);
            datumTypeControl.Enabled = datumTypeControl.Visible = @"Datum".Equals(cmbValueType.Text);
            indexArrayControl.Enabled = indexArrayControl.Visible = @"Indexed Array".Equals(cmbValueType.Text);
            indexArrayControl.LockTypes = _locked;
            datumTypeControl.LockTypes = _locked;
            collectionControl.LockTypes = _locked;
            cmbValueType.Enabled = !_locked;
        }