Beispiel #1
0
        public override void LoadDataToComponets(CosmeticProduct currentProduct, Control.ControlCollection controls)
        {
            base.LoadDataToComponets(currentProduct, controls);
            Control[] controlList      = GetComponentsForInput(controls);
            Eyeshadow currentEyeshadow = (Eyeshadow)currentProduct;

            ComboBox temp = (ComboBox)controlList[eyeshadowTextureIndex];

            temp.SelectedValue = Enum.GetName(typeof(Eyeshadow.KindOfEyeshadow), currentEyeshadow.EyeshadowTexture);

            temp = (ComboBox)controlList[packageTypeIndex];
            temp.SelectedValue = Enum.GetName(typeof(Eyeshadow.FormOfPackage), currentEyeshadow.PackageType);
        }
Beispiel #2
0
        public override void GetDataFromComponents(CosmeticProduct currentProduct, Control.ControlCollection controls)
        {
            base.GetDataFromComponents(currentProduct, controls);
            Control[] controlList = GetComponentsForInput(controls);

            Eyeshadow currentEyeShadow = (Eyeshadow)currentProduct;

            ComboBox temp = (ComboBox)controlList[eyeshadowTextureIndex];

            currentEyeShadow.EyeshadowTexture = (Eyeshadow.KindOfEyeshadow)Enum.Parse(typeof(Eyeshadow.KindOfEyeshadow), temp.SelectedValue.ToString());

            temp = (ComboBox)controlList[packageTypeIndex];
            currentEyeShadow.PackageType = (Eyeshadow.FormOfPackage)Enum.Parse(typeof(Eyeshadow.FormOfPackage), temp.SelectedValue.ToString());
        }