|
@@ -99,15 +99,8 @@ namespace OTSMeasureApp
|
|
|
IDC_COMBO_STDSelect.Items.Clear();
|
|
|
|
|
|
string STDLibFolderName = m_cgenparam.GetPartSTDLibFolderName();
|
|
|
- if (m_cotsprogmgrparamfile.GetSysType() == "IncA")
|
|
|
- {
|
|
|
- STDLibFolderName += "IncA\\";
|
|
|
- }
|
|
|
- else
|
|
|
- {
|
|
|
- STDLibFolderName += "Cleanliness\\";
|
|
|
- }
|
|
|
- //string[] files = System.IO.Directory.GetFiles(STDLibFolderName, "*.db");
|
|
|
+
|
|
|
+ string[] files = System.IO.Directory.GetFiles(STDLibFolderName, "*.db");
|
|
|
System.IO.DirectoryInfo folder = new System.IO.DirectoryInfo(STDLibFolderName);
|
|
|
foreach (System.IO.FileInfo file in folder.GetFiles("*.db"))
|
|
|
{
|
|
@@ -994,16 +987,7 @@ namespace OTSMeasureApp
|
|
|
{
|
|
|
if (IDC_COMBO_STDSelect.Text != "NoSTDDB")
|
|
|
{
|
|
|
- string Currentpath = "\\Config\\SysData\\";
|
|
|
- if (m_cotsprogmgrparamfile.GetSysType() == "IncA")
|
|
|
- {
|
|
|
- Currentpath += "IncA\\";
|
|
|
- }
|
|
|
- else
|
|
|
- {
|
|
|
- Currentpath += "Cleanliness\\";
|
|
|
- }
|
|
|
- Process p = System.Diagnostics.Process.Start(".\\OTSPartA_STDEditor.exe", Application.StartupPath + Currentpath + IDC_COMBO_STDSelect.Text + ".db");
|
|
|
+ Process p = System.Diagnostics.Process.Start(".\\OTSPartA_STDEditor.exe", Application.StartupPath + "\\Config\\SysData\\" + IDC_COMBO_STDSelect.Text+".db");
|
|
|
p.WaitForExit();
|
|
|
}
|
|
|
else
|