Пример #1
0
 private void MainForm_Load(object sender, EventArgs e)
 {
     if (!m_obdInterface.LoadParameters(".\\configs\\generic.csv"))
     {
         m_obdInterface.GetLogger().TraceError("Failed to load generic parameter definitions!");
         MessageBox.Show("加载generic.csv配置文件失败!", "出错", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
     }
     if (m_obdInterface.LoadDTCDefinitions(".\\configs\\dtc.xml") == 0)
     {
         m_obdInterface.GetLogger().TraceError("Failed to load DTC definitions!");
         MessageBox.Show("加载dtc.xml配置文件失败!", "出错", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
     }
 }