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