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

DataToControls() protected method

protected DataToControls ( ) : void
return void
        protected virtual void DataToControls()
        {
            if (_value != null)
            {
                if (_value.Item is DatumType)
                {
                    cmbValueType.SelectedIndex = cmbValueType.FindStringExact("Datum");
                    datumTypeControl.Datum = (DatumType)_value.Item;
                    datumTypeControl.LockTypes = this.LockTypes;
                }
                else if (_value.Item is Collection)
                {
                    cmbValueType.SelectedIndex = cmbValueType.FindStringExact("Collection");
                    collectionControl.Collection = (Collection)_value.Item;
                }
                else if (_value.Item is IndexedArrayType)
                {
                    cmbValueType.SelectedIndex = cmbValueType.FindStringExact("Indexed Array");
                    indexArrayControl.IndexedArray = (IndexedArrayType)_value.Item;
                }

                SetControlStates();
            }
        }