lixiaojun
2024-07-19 2415c4eedaa96532ffc7eb1c7e5d018106115bf4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
namespace HStation.WinFrmUI
{
    public partial class SelectXhsProjectModelFileCtrl : DevExpress.XtraEditors.XtraUserControl
    {
        public SelectXhsProjectModelFileCtrl()
        {
            InitializeComponent();
            this.layoutControl1.SetupLayoutControl();
        }
 
        //压缩文件
        private string _zipFile = null;
 
        //选择模型文件
        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)
            {
                var fileName = dlg.FileName;
                _zipFile = fileName;
                this.btnEditSelectModelFile.EditValue = _zipFile;
            }
        }
    }
}