Example #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;
                }
            }
        }
Example #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;
         }
     }
 }
Example #3
0
 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");
     }
 }
Example #4
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);
     }
 }
Example #5
0
        public UcDatatypeMap()
        {
            InitializeComponent();

            datatype = new Maticsoft.Utility.INIFile(datatypefile);
        }