public UcSysManage() { InitializeComponent(); if (File.Exists(cmcfgfile)) { cfgfile = new Maticsoft.Utility.INIFile(cmcfgfile); string val = cfgfile.IniReadValue("dbo", "dbosp"); if (val.Trim() == "1") { radbtnDBO_SP.Checked = true; } else { radbtnDBO_SQL.Checked = true; } string val2 = cfgfile.IniReadValue("loginfo", "save"); if (val2.Trim() == "1") { chkLoginfo.Checked = true; } else { chkLoginfo.Checked = false; } } }
private void NewProject_Load(object sender, EventArgs e) { if (File.Exists(cmcfgfile)) { cfgfile = new Maticsoft.Utility.INIFile(cmcfgfile); string lastpath = cfgfile.IniReadValue("Project", "lastpath"); if (lastpath.Trim() != "") { txtProPath.Text = lastpath; } } }
public void SaveDBO() { cfgfile = new Maticsoft.Utility.INIFile(cmcfgfile); if (radbtnDBO_SP.Checked) { cfgfile.IniWriteValue("dbo", "dbosp", "1"); } else { cfgfile.IniWriteValue("dbo", "dbosp", "0"); } if (chkLoginfo.Checked) { cfgfile.IniWriteValue("loginfo", "save", "1"); } else { cfgfile.IniWriteValue("loginfo", "save", "0"); } }
/// <summary> /// 是否已经下载过RSS数据 /// </summary> /// <returns></returns> private bool IsHasLoaded() { if (File.Exists(cmcfgfile)) { cfgfile = new Maticsoft.Utility.INIFile(cmcfgfile); string Contents = cfgfile.IniReadValue("updaterss", "today"); if (Contents == DateTime.Today.ToString("yyyyMMdd")) { return(true); } else { return(false); } } else { return(false); } }
public UcDatatypeMap() { InitializeComponent(); datatype = new Maticsoft.Utility.INIFile(datatypefile); }