| | |
| | | using DevExpress.XtraBars.Customization; |
| | | using Yw.CAL.HttpClient; |
| | | |
| | | namespace HStation.WinFrmUI |
| | | { |
| | |
| | | |
| | | private void btnEditSelectModelFile_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e) |
| | | { |
| | | var suffix = Settings.XhsParasHelper.Xhs.File.Suffix; |
| | | var dlg = new OpenFileDialog(); |
| | | dlg.Filter = $"模型文件(*{suffix})|*{suffix}"; |
| | | dlg.FilterIndex = 1; |
| | | if (dlg.ShowDialog() == DialogResult.OK) |
| | | if (e.Button.Tag.ToString() == "Local") |
| | | { |
| | | var fileName = dlg.FileName; |
| | | this.btnEditSelectModelFile.EditValue = fileName; |
| | | var suffix = Settings.XhsParasHelper.Xhs.File.Suffix; |
| | | var dlg = new OpenFileDialog(); |
| | | dlg.Filter = $"模型文件(*{suffix})|*{suffix}"; |
| | | dlg.FilterIndex = 1; |
| | | if (dlg.ShowDialog() == DialogResult.OK) |
| | | { |
| | | var fileName = dlg.FileName; |
| | | this.btnEditSelectModelFile.EditValue = fileName; |
| | | } |
| | | } |
| | | else |
| | | { |
| | | var dlg = new SelectXhsProjectTransferFileDlg(); |
| | | dlg.SetBindingData(); |
| | | dlg.ReloadDataEvent += async (rhs) => |
| | | { |
| | | var fileName = await BLLFactory<HStation.BLL.TransferRevitFile>.Instance.Download(rhs.StorageHouse, rhs.StorageCode); |
| | | |
| | | |
| | | this.btnEditSelectModelFile.EditValue = fileName; |
| | | }; |
| | | dlg.ShowDialog(); |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | | } |
| | | } |