private bool CheckControllerNameLegal(string cn, int rowIndex, int colIndex)
 {
     if (cn.Contains(' '))
     {
         MessageBox.Show("名称不能带有空格", "名称格式错误", MessageBoxButtons.OK, MessageBoxIcon.Information);
         return(false);
     }
     if (IODataCollection.controllerDict.ContainsKey(IODataCollection.MergeTypeNameAndControllerName(selectControllerTypeName, cn)))
     {
         MessageBox.Show("名称重复!", "名称错误", MessageBoxButtons.OK, MessageBoxIcon.Information);
         return(false);
     }
     return(true);
 }
Пример #2
0
 public void SimConnect()
 {
     simApi = new Api();
     simApi.OpenCommSimulator();
     aList.Add(IODataCollection.MergeTypeNameAndControllerName("ACS", ACSBaseConfig.sim), simApi);
 }