コード例 #1
0
        /// <summary>
        /// 系统初始化
        /// </summary>
        private void Init()
        {
            DirectoryInfo baseDirectory = new DirectoryInfo(AppDomain.CurrentDomain.BaseDirectory);

            _service = new ResumeParseService();

            _fConn   = new SafeSQLite(string.Format("Data Source={0}", AppDomain.CurrentDomain.BaseDirectory + "data\\fdata.db"), true);
            _rConn   = new SafeSQLite(string.Format("Data Source={0}", baseDirectory.Parent.FullName + "\\data\\rdata.db"), true);
            _storage = new LocalStorage(_rConn);
            _inited  = true;
        }
コード例 #2
0
        private void Main_Load(object sender, EventArgs e)
        {
            _syncContext = SynchronizationContext.Current;
            _service     = new ResumeParseService();
            PrintCpuInfo();
            PrintServiceStatus();
            Notice("资源加载中.....");
            ThreadPool.QueueUserWorkItem((w) =>
            {
                ResourcesConfig.Load();

                Notice("资源加载完成");

                UpdateUI(() =>
                {
                    btnDocExt.Enabled      = true;
                    btnParse.Enabled       = true;
                    btnResumeParse.Enabled = true;
                    btnScan.Enabled        = true;
                });
            });
        }