Esempio n. 1
0
        public static void SaveConfig()
        {
            INIOperation.WriteValue("config.ini", "BaiDuOCR", "API_KEY", OCR_API_KEY);
            INIOperation.WriteValue("config.ini", "BaiDuOCR", "SECRET_KEY", OCR_SECRET_KEY);

            INIOperation.WriteValue("config.ini", "CutScreenShot", "StartX", CutX.ToString());
            INIOperation.WriteValue("config.ini", "CutScreenShot", "StartY", CutY.ToString());
            INIOperation.WriteValue("config.ini", "CutScreenShot", "Width", CutWidth.ToString());
            INIOperation.WriteValue("config.ini", "CutScreenShot", "Heigh", CutHeight.ToString());
            INIOperation.WriteValue("config.ini", "CutScreenShot", "UseEmulator", UseEmulator.ToString());
        }
Esempio n. 2
0
        public static void SaveConfig()
        {
            INIOperation.WriteValue("config.ini", "BaiDuOCR", "API_KEY", OCR_API_KEY);
            INIOperation.WriteValue("config.ini", "BaiDuOCR", "SECRET_KEY", OCR_SECRET_KEY);

            INIOperation.WriteValue("config.ini", "CutScreenShot", "StartX", CutX.ToString());
            INIOperation.WriteValue("config.ini", "CutScreenShot", "StartY", CutY.ToString());
            INIOperation.WriteValue("config.ini", "CutScreenShot", "Width", CutWidth.ToString());
            INIOperation.WriteValue("config.ini", "CutScreenShot", "Heigh", CutHeight.ToString());
            INIOperation.WriteValue("config.ini", "CutScreenShot", "UseEmulator", UseEmulator.ToString());
            INIOperation.WriteValue("config.ini", "Other", "RemoveUselessInfo", RemoveUselessInfo.ToString());
            INIOperation.WriteValue("config.ini", "Other", "ShowABC", ShowABC.ToString());
            INIOperation.WriteValue("config.ini", "Other", "UseSoGou", UseSoGou.ToString());

            INIOperation.WriteValue("config.ini", "Other", "HighLightMode", ((int)HighlightMode).ToString());
        }