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(); }
public TwitterPropertyItem(PersonViewModel.Property property) : base(property, 6) { }
protected UrlPropertyItem(PersonViewModel.Property property, int viewType) : base(property, viewType) { }
public UrlPropertyItem(PersonViewModel.Property property) : this(property, 5) { }
public EmailPropertyItem(PersonViewModel.Property property) : base(property, 4) { }
public PhonePropertyItem(PersonViewModel.Property property) : base(property, 3) { }
protected PropertyItem(PersonViewModel.Property property, int viewType) : base(viewType) { this.Property = property; }
public PropertyItem(PersonViewModel.Property property) : this(property, 2) { }
protected PropertyItem (PersonViewModel.Property property, int viewType) : base (viewType) { this.Property = property; }