Exemplo n.º 1
0
        public void PushFilesToDir(string TableName, int RowId)
        {
            INativeHelper helper = DependencyService.Get <INativeHelper>();

            List <FileWrapper> files = XamControl.GetFiles(this.Name);

            foreach (FileWrapper wrapr in files)
            {
                wrapr.Name = $"{TableName}-{RowId}-{this.Name}-{Guid.NewGuid().ToString("n").Substring(0, 10)}.jpg";
                File.WriteAllBytes(helper.NativeRoot + $"/{App.Settings.AppDirectory}/{ App.Settings.Sid.ToUpper()}/FILES/{wrapr.Name}", wrapr.Bytea);
            }
        }
Exemplo n.º 2
0
 public override object GetValue()
 {
     return(XamControl.GetFiles(this.Name));
 }