选择文件时对文件格式的过滤
文件的过滤就只有一句话:
OpenFileDialog dialog = new OpenFileDialog();
dialog.Filter = "shp files (*.shp)|*.shp";//过滤只显示*.shp文件。
文件的过滤就只有一句话:
OpenFileDialog dialog = new OpenFileDialog();
dialog.Filter = "shp files (*.shp)|*.shp";//过滤只显示*.shp文件。