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;
|
}
|
}
|
}
|
}
|