⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 program.cs

📁 一个农村管理系统的程序 数据库那部分可能不全 大家可以
💻 CS
字号:
using System;
using System.Collections.Generic;
using System.Windows.Forms;
using System.Collections;
using System.Threading;

namespace MsgSystem
{
    
    public static class Program
    {
        public static ConnectionPool conns = null;
        public static Main_message main_wnd = null;


        //the data pools
        public static ArrayList inIO = null,
                                                  outIO = null;

        public static ArrayList inCenter = null,
                                                  outCenter = null;

        public static ArrayList prod = null,
                                                  farm = null,
                                                  sect = null,
                                                  disease = null,
                                                  secure = null,
                                                  edu = null,
                                                  poli = null,
                                                  emer = null;

        public static Thread ioThread = null;
        public static Thread center = null;
        public static Thread prodThread = null,
                                              farmThread = null,
                                              sectThread = null,
                                              diseaseThread = null,
                                              secureThread = null,
                                              eduThread = null,
                                              poliThread = null,
                                              emerThread = null;



        //the threads


        


        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);


            init();

            DbFun.insertSysMsg("System start up.");
            Application.Run( main_wnd);



        }

        //init the whole background codes
        static void init()
        {
            
            //1.主窗口初始化
            main_wnd = new Main_message( );


            //2.
            //init all the pools,
            conns = new ConnectionPool( 5);



            //start the timer
            Mod_TimeStatus.init();

        }
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -