コード例 #1
0
        public void SetData(object viewObject)
        {
            if (!(viewObject is ResourceItem))
            {
                throw new ArgumentException("Only support ResourceFile type.");
            }
            ResourceItem resourceItem = viewObject as ResourceItem;
            ResourceData resourceData = resourceItem.GetResourceData();

            base.Path  = resourceData.Path;
            base.Type  = resourceData.Type;
            base.Plist = resourceData.Plist;
        }