Пример #1
0
        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;
                }
            }
        }
Пример #2
0
 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;
         }
     }
 }
Пример #3
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);
     }
 }