|
@@ -37,6 +37,14 @@ namespace MeasureData
|
|
set { this.m_filepath = value; }
|
|
set { this.m_filepath = value; }
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ //切孔文件路径
|
|
|
|
+ private string m_CutHoleFilePath;
|
|
|
|
+ public string CutHoleFilePath
|
|
|
|
+ {
|
|
|
|
+ get { return this.m_CutHoleFilePath; }
|
|
|
|
+ set { this.m_CutHoleFilePath = value; }
|
|
|
|
+ }
|
|
|
|
+
|
|
//切孔链表
|
|
//切孔链表
|
|
private List<CutHole> m_listCutHole;
|
|
private List<CutHole> m_listCutHole;
|
|
public List<CutHole> ListCutHole
|
|
public List<CutHole> ListCutHole
|
|
@@ -167,7 +175,6 @@ namespace MeasureData
|
|
SaveFileDialog saveFileDialog = new SaveFileDialog();
|
|
SaveFileDialog saveFileDialog = new SaveFileDialog();
|
|
if (saveFileDialog.ShowDialog() == DialogResult.OK)
|
|
if (saveFileDialog.ShowDialog() == DialogResult.OK)
|
|
{
|
|
{
|
|
- string a = saveFileDialog.FileName;
|
|
|
|
//获得文件路径
|
|
//获得文件路径
|
|
string localFilePath = saveFileDialog.FileName.ToString();
|
|
string localFilePath = saveFileDialog.FileName.ToString();
|
|
//获取文件名,不带路径
|
|
//获取文件名,不带路径
|
|
@@ -267,9 +274,9 @@ namespace MeasureData
|
|
//文件打开后执行以下程序
|
|
//文件打开后执行以下程序
|
|
if (pOpenFileDialog.ShowDialog() == DialogResult.OK)
|
|
if (pOpenFileDialog.ShowDialog() == DialogResult.OK)
|
|
{
|
|
{
|
|
- a_FilePathName = System.IO.Path.GetFullPath(pOpenFileDialog.FileName); //绝对路径
|
|
|
|
- FilePath = a_FilePathName.Substring(0, a_FilePathName.LastIndexOf('\\')+1);
|
|
|
|
- FileName = pOpenFileDialog.SafeFileName;
|
|
|
|
|
|
+ a_FilePathName = System.IO.Path.GetFullPath(pOpenFileDialog.FileName);
|
|
|
|
+ //绝对路径
|
|
|
|
+ CutHoleFilePath = a_FilePathName;
|
|
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|