Example #1
0
 /// <summary>
 /// Updates the attribute view.
 /// </summary>
 public void UpdateAttributeView()
 {
     //populate fields
     tfAttributName.Text        = petAttribute.AttributeTitle;
     tvAttributDescription.Text = petAttribute.AttributeDescription;
     ivAttributIcon.Image       = IosPetHelper.GetImageForAttributeType(petAttribute.PetAttributeType);
 }
Example #2
0
        /// <summary>
        /// Inits the attribut type picker.
        /// </summary>
        public void InitAttributTypePicker()
        {
            //create new picker model
            var petTypePicketModel = new PetTypePickerModel(Enum.GetValues(typeof(PetAttributeType)));

            //set picker view model
            pvAttributTypePicker.Model = petTypePicketModel;

            //add event handler
            petTypePicketModel.typeChangeEvent += (sender, e) =>
            {
                selectedType         = petTypePicketModel.selectedType;
                ivAttributIcon.Image = IosPetHelper.GetImageForAttributeType(selectedType);
            };
        }