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

            ComboBox tempComboBox = (ComboBox)controlList[finishIndex];

            tempComboBox.SelectedValue = Enum.GetName(typeof(FaceProduct.TypeOfFinish), currentFaceProduct.Finish);

            tempComboBox = (ComboBox)controlList[skinTypeIndex];
            tempComboBox.SelectedValue = Enum.GetName(typeof(FaceProduct.SkinType), currentFaceProduct.Finish);
        }
Beispiel #2
0
        public override void GetDataFromComponents(CosmeticProduct currentProduct, Control.ControlCollection controls)
        {
            base.GetDataFromComponents(currentProduct, controls);
            Control[] controlList = GetComponentsForInput(controls);

            FaceProduct currentFaceProduct = (FaceProduct)currentProduct;

            ComboBox temp = (ComboBox)controlList[finishIndex];

            currentFaceProduct.Finish = (FaceProduct.TypeOfFinish)Enum.Parse(typeof(FaceProduct.TypeOfFinish), temp.SelectedValue.ToString());

            temp = (ComboBox)controlList[skinTypeIndex];
            currentFaceProduct.TypeOfSkin = (FaceProduct.SkinType)Enum.Parse(typeof(FaceProduct.SkinType), temp.SelectedValue.ToString());
        }