| | |
| | | /// </summary> |
| | | /// <param name="sender"></param> |
| | | /// <param name="e"></param> |
| | | private async void BtnUp_Click(object sender, EventArgs e) |
| | | private async void BtnUp_Click(object sender, EventArgs e) |
| | | { |
| | | var WebApiUrl = ConfigurationSettings.AppSettings.Get("WebApiUrl"); |
| | | var address = WebApiUrl + "MesFile/UploadFile"; |
| | |
| | | if (UpChanged != null) UpChanged(this, e); |
| | | } |
| | | |
| | | private async Task UploadFileAsync(string url, string filePath) |
| | | private async Task UploadFileAsync(string url, string filePath) |
| | | { |
| | | UcLoading _loading = new UcLoading(); |
| | | |
| | | string _parentGuid = parentGuid; |
| | | using (var httpClient = new HttpClient()) |
| | | try |
| | |
| | | Gs.DevApp.ToolBox.MsgHelper.ShowError(ex.Message); |
| | | |
| | | } |
| | | _loading.Close(); |
| | | |
| | | } |
| | | |
| | | #endregion |