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;
}
网友评论