/// <summary> /// postJson写入历史配置 /// </summary> /// <param name="dd"></param> public static void postJsonUrlDataWrite(string text) { string str = lib.pBase64.stringToBase64(text); lib.pIni ini = new lib.pIni(Config.configIni); ini.IniWriteValue("form1", "postJsonUrlDataWrite", str); }
/// <summary> /// dataurl写入历史配置 /// </summary> /// <param name="dd"></param> public static void dataviewUrlDataWrite(DataGridView dd) { string[,] array = dataViewUrlDataToObjectArray(dd); string str = pJson.objectToJsonStr(array); str = lib.pBase64.stringToBase64(str); lib.pIni ini = new lib.pIni(Config.configIni); ini.IniWriteValue("form1", "dataviewUrlDataWrite", str); }
/// <summary> /// 写入配置 /// </summary> /// <param name="Section"></param> /// <param name="Key"></param> /// <param name="Value"></param> public static void write(string Section, string Key, string Value) { pIni ini = new pIni(Config.configIni); ini.IniWriteValue(Section, Key, Value); }
//------------------------ini------------------------------------------------- /// <summary> /// http类型写入 /// </summary> /// <param name="comboBox"></param> public static void httpTypeWrite(ComboBox comboBox) { lib.pIni ini = new lib.pIni(Config.configIni); ini.IniWriteValue("form1", "httpTypeWrite", comboBox.Text); }
/// <summary> /// 写入窗体改变大小 /// </summary> /// <param name="w"></param> /// <param name="h"></param> public static void formSizeWrite(int w, int h) { lib.pIni ini = new lib.pIni(Config.configIni); ini.IniWriteValue("form1", "formSizeWrite-W", w.ToString()); ini.IniWriteValue("form1", "formSizeWrite-H", h.ToString()); }
/// <summary> /// textboxurl 写 /// </summary> /// <param name="textbox"></param> /// <param name="url"></param> public static void textBoxUrlWrite(TextBox textbox, string url) { lib.pIni ini = new lib.pIni(Config.configIni); textbox.Text = url; ini.IniWriteValue("form1", "textboxurl", url); }