void OnPropertySelected(PersonViewModel.Property property)
        {
            switch (property.Type)
            {
            case PersonViewModel.PropertyType.Phone:
                OnPhoneSelected(property.Value);
                break;

            case PersonViewModel.PropertyType.Email:
                OnEmailSelected(property.Value);
                break;

            case PersonViewModel.PropertyType.Twitter:
                OnTwitterSelected(property.Value);
                break;

            case PersonViewModel.PropertyType.Url:
                OnUrlSelected(property.Value);
                break;

            case PersonViewModel.PropertyType.Address:
                OnAddressSelected(property.Value);
                break;
            }
            DeselectAll();
        }
Esempio n. 2
0
 public TwitterPropertyItem(PersonViewModel.Property property)
     : base(property, 6)
 {
 }
Esempio n. 3
0
 protected UrlPropertyItem(PersonViewModel.Property property, int viewType)
     : base(property, viewType)
 {
 }
Esempio n. 4
0
 public UrlPropertyItem(PersonViewModel.Property property)
     : this(property, 5)
 {
 }
Esempio n. 5
0
 public EmailPropertyItem(PersonViewModel.Property property)
     : base(property, 4)
 {
 }
Esempio n. 6
0
 public PhonePropertyItem(PersonViewModel.Property property)
     : base(property, 3)
 {
 }
Esempio n. 7
0
 protected PropertyItem(PersonViewModel.Property property, int viewType)
     : base(viewType)
 {
     this.Property = property;
 }
Esempio n. 8
0
 public PropertyItem(PersonViewModel.Property property)
     : this(property, 2)
 {
 }
 protected PropertyItem (PersonViewModel.Property property, int viewType)
     : base (viewType)
 {
     this.Property = property;
 }