Пример #1
0
        public override bool Equals(object obj)
        {
            ProjectItemModel projectItemModel = obj as ProjectItemModel;

            if (projectItemModel != null && this.DisplayName == projectItemModel.DisplayName)
            {
                return(this.ProjectRelativeLocation == projectItemModel.ProjectRelativeLocation);
            }
            return(false);
        }
 public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
 {
     if (typeof(string).IsAssignableFrom(destinationType))
     {
         ProjectItemModel projectItemModel = value as ProjectItemModel;
         if (projectItemModel != null)
         {
             return((object)projectItemModel.RelativeUri);
         }
     }
     return(base.ConvertTo(context, culture, value, destinationType));
 }