public SogouOfflineMap(string strMapFilePath_Bin, string strMapFilePath_Info, string strMapFilePath_Ini) { InitializeComponent(); strMapFileBin = strMapFilePath_Bin; strMapFileInfo = strMapFilePath_Info; strMapFileIni = strMapFilePath_Ini; mapMain = new SogouMap(strMapFilePath_Bin, strMapFilePath_Info); bolInit = true; }
/// <summary> /// 初始化 /// </summary> public void Init() { if (strMapFileBin != null && strMapFileInfo != null && strMapFileBin != "" && strMapFileInfo != "") { if (File.Exists(strMapFileBin) && File.Exists(strMapFileInfo)) { mapMain = new SogouMap(strMapFileBin, strMapFileInfo); Init_ReadMapInfo(); DisplayMap(); MapControlLoadEnd(null); bolInit = true; } } }