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); } }
public override object GetValue() { return(XamControl.GetFiles(this.Name)); }