winform——treeview-webAPI和新建文件
2019-05-16 本文已影响0人
黑哥聊dotNet
https://github.com/impPDX/winform-Treeview-webapi
SaveFileDialog saveFileDialog = new SaveFileDialog();
saveFileDialog.Title = "新建地理数据库";
saveFileDialog.Filter = "地理数据库(*.hdf)|*.hdf";
saveFileDialog.FileOk += (sender0, e0) =>
{
SaveFileDialog dlg = sender0 as SaveFileDialog;
if (dlg != null)
{
if (File.Exists(dlg.FileName))
{
e0.Cancel = true;
}
}
};
if (saveFileDialog.ShowDialog() == DialogResult.OK)
{
this.buttonEditDesGDB.EditValue = saveFileDialog.FileName;
}