Beispiel #1
0
        async Task getCameraFile(MediaFile file)
        {
            if (file == null)
            {
                return;
            }
            CommonResult commonResult = await _server.AddFileAppsTech(Settings.Person.Phone,
                                                                      getFileName(file.Path), StreamToByteArray(file.GetStream()),
                                                                      file.Path);

            if (commonResult == null)
            {
                await ShowToast(AppResources.SuccessFileSent);
                await RefreshData();
            }
        }