Ejemplo n.º 1
0
 public static bool ReadIniFile()
 {
     try
     {
         GetIniFileString("User", "UserId", ref Variable.sUserId);
         GetIniFileString("User", "AutoCheckAllCar", ref Variable.sAutoCheckAllCar);
         GetIniFileString("User", "Title", ref Variable.sLoginTitle);
         GetIniFileString("User", "CheckAdc", ref Variable.sCheckAdc);
         GetIniFileString("User", "AdcNo", ref Variable.sAdcNo);
         GetIniFileString("Server", "ServerIp", ref Variable.sServerIp);
         GetIniFileString("Server", "Port", ref Variable.sPort);
         GetIniFileString("Server", "UseHttpProxy", ref Variable.sUseHttpProxy);
         GetIniFileString("Server", "HttpProxyIp", ref Variable.sHttpProxyIp);
         GetIniFileString("Server", "HttpProxyPort", ref Variable.sHttpProxyPort);
         GetIniFileString("Server", "GpsIp", ref Variable.sGpsIp);
         GetIniFileString("Server", "GpsPort", ref Variable.sGpsPort);
         GetIniFileString("Map", "MapIp", ref Variable.sMapIp);
         GetIniFileString("Map", "MapPort", ref Variable.sMapPort);
         GetIniFileString("Map", "MapSign", ref Variable.sMapSign);
         GetIniFileString("Map", "SelectedMap", ref Variable.sSelectedMap);
         GetIniFileString("Terminal", "GetPhotoMax", ref Variable.sGetPhotoMax);
         GetIniFileString("Terminal", "SavePicDays", ref Variable.sSavePicDays);
         GetIniFileString("Terminal", "SkinDataIndex", ref Variable.sSkinDataIndex);
         GetIniFileString("Terminal", "RecsPerPage", ref Variable.sRecsPerPage);
         GetIniFileString("Terminal", "GetUpDateTime", ref Variable.sGetUpDateTime);
         GetIniFileString("Terminal", "QueryPointGetInt", ref Variable.sQueryPointGetInt);
         GetIniFileString("Terminal", "QueryPointTimeDiff", ref Variable.sQueryPointTimeDiff);
         GetIniFileString("MenuSelect", "MaxSendCount", ref Variable.sMaxSendCount);
         GetIniFileString("MenuSelect", "ImportCarMax", ref Variable.sImportCarMax);
         GetIniFileString("TreeNode", "GetNodeTipShowType", ref Variable.sGetNodeTipShowType);
         GetIniFileString("TreeNode", "GetNodeDetailShowType", ref Variable.sGetNodeDetailShowType);
         GetIniFileString("Other", "AlarmSoundStatus", ref Variable.sAlarmSoundStatus);
         GetIniFileString("Other", "CarListTextColunmsVisibleType", ref Variable.sCarListTextColunmsVisibleType);
         GetIniFileString("Other", "CompressDownCarInfo", ref Variable.sCompressDownCarInfo);
         GetIniFileString("Other", "ShippingEnable", ref Variable.sShippingEnable);
         GetIniFileString("Other", "ShowTogether", ref Variable.sShowTogether);
         GetIniFileString("Other", "AllowMultiShoot", ref Variable.sAllowMultiShoot);
         GetIniFileString("Other", "AllowRefresh", ref Variable.sAllowRefresh);
         GetIniFileString("Other", "AllowLCSType", ref Variable.sAllowLCSType);
         GetIniFileString("Other", "AlarmPopupWindow", ref Variable.sAlarmPopupWindow);
         GetIniFileString("Other", "CustomAlarmSound", ref Variable.sCustomAlarmSound);
         GetIniFileString("Other", "AdminSystemState", ref Variable.sAdminSystemState);
         GetIniFileString("Other", "LogFilterAlarmType", ref Variable.sLogFilterAlarmType);
         GetIniFileString("Other", "MapCarLegendShowAreaName", ref Variable.sMapCarLegendShowAreaName);
         GetIniFileString("Other", "CarServerTimeRemind", ref Variable.sCarServerTimeRemind);
         GetIniFileString("Other", "LogListAreaVisible", ref Variable.sLogListAreaVisible);
         GetIniFileString("Other", "ProjectID", ref Variable.sProjectID);
         GetIniFileString("Other", "WebMenuList", ref Variable.sWebMenuList);
         GetIniFileString("Other", "ShowManagerSystem", ref Variable.sShowManagerSystem);
         GetIniFileString("Other", "ShowCarPlayTrackTime", ref Variable.sGetNodeTrackShowType);
         GetIniFileString("Other", "ShowUnCheckedCarInfo", ref Variable.sShowUnCheckedCarInfo);
         GetIniFileString("Other", "ShowUnCheckedCarInfoDetail", ref Variable.sShowUnCheckedCarInfoDetail);
         GetIniFileString("Other", "AutoCancelAlarm", ref Variable.sAutoCancelAlarm);
         GetIniFileString("Other", "LCSPosInterval", ref Variable.sLCSPosInterval);
         GetIniFileString("Other", "CustomMenuTitle", ref Variable.sCustomMenuTitle);
         GetIniFileString("Other", "CustomSoftwarePath", ref Variable.sCustomSoftwarePath);
         GetIniFileString("Other", "sLonLatDis", ref Variable.sLonLatDis);
         GetIniFileString("Other", "MaxPicMonitorTime", ref Variable.sNumMaxPicMonitorTime);
         GetIniFileString("Other", "UserLevel", ref Variable.sLevelInfo);
         GetIniFileString("ToolBar", "ItemState", ref Variable.sToolBarItemState);
         GetIniFileString("Other", "JGShowCarNum", ref Variable.sJGShowCar);//建工显示车牌和或者自编号
         return(true);
     }
     catch (Exception exception)
     {
         Record.execFileRecord("读取配置文件", exception.ToString());
         return(false);
     }
 }