Exemplo n.º 1
0
 public override void SetValue(object value)
 {
     if (value != null)
     {
         uploadedFileRef = (value as FUPSetValueMeta).Files;
         XamControl.SetValue(this.NetworkType, value as FUPSetValueMeta, this.Name);
     }
 }
Exemplo n.º 2
0
        public override void SetValue(object value)
        {
            if (value != null && value is FUPSetValueMeta fupMeta)
            {
                try
                {
                    if (!string.IsNullOrEmpty(fupMeta.FileRefIds))
                    {
                        fupMeta.Files.Add(new FileMetaInfo
                        {
                            FileCategory = EbFileCategory.Images,
                            FileRefId    = Convert.ToInt32(fupMeta.FileRefIds)
                        });

                        XamControl.SetValue(this.NetworkType, fupMeta, this.Name);
                    }
                }
                catch (Exception ex)
                {
                    EbLog.Error("[DisplayPicture] setvalue error, " + ex.Message);
                }
            }
        }