public static void InitIni() { ReadINI2 varIni = new ReadINI2(GlobalVar.varPathIni + @"MID.ini"); GlobalVar.varIdWorkPlace = Convert.ToInt32(varIni.GetSetting(@"MAIN", @"ID_WORKPLACE")); GlobalVar.varPathDB = varIni.GetSetting(@"MAIN", @"PATH_DB").Trim(); GlobalVar.varPathLog = varIni.GetSetting(@"MAIN", @"PATH_LOG").Trim(); }
public static int BildKeyCode(string parSection, string parKeyName) { int varKeyCode = 0; string[] varStrKeys = varIniKeyMap.GetSetting(parSection, parKeyName).Split(new char[] { '+' }, 4); for (int i = 0; i < varStrKeys.Length; i++) { varKeyCode += Convert.ToInt32(varIniKeyMap.GetSetting("KeyCode", varStrKeys[i].Trim())); } return(varKeyCode); }