|
@@ -172,18 +172,6 @@ namespace MeasureData
|
|
|
//保存
|
|
|
public bool Save()
|
|
|
{
|
|
|
- SaveFileDialog saveFileDialog = new SaveFileDialog();
|
|
|
- if (saveFileDialog.ShowDialog() == DialogResult.OK)
|
|
|
- {
|
|
|
- //获得文件路径
|
|
|
- string localFilePath = saveFileDialog.FileName.ToString();
|
|
|
- //获取文件名,不带路径
|
|
|
- string fileNameExt = localFilePath.Substring(localFilePath.LastIndexOf("\\") + 1);
|
|
|
- //获取文件路径,不带文件名
|
|
|
- string FilePath = localFilePath.Substring(0, localFilePath.LastIndexOf("\\"));
|
|
|
- this.FilePath = FilePath;
|
|
|
- this.FileName = fileNameExt;
|
|
|
- }
|
|
|
//如果是新文件
|
|
|
this.FileName.Trim();
|
|
|
if (string.Compare(this.FileName,UNTITLED_FILE_NAME) == 0)
|