Beispiel #1
0
        public UserForm()
        {
            InitializeComponent();
            ComClass com = new ComClass();

            com.DoubleBufferedGrid(grdView, true);
        }
Beispiel #2
0
        private void Form1_Load(object sender, EventArgs e)
        {
            ComClass  com      = new ComClass();
            DataTable dtConfig = com.GetDataSourceTable();

            DataRow[] drSmzq = dtConfig.Select("DANAME_='TestDB'");
            if (drSmzq.Length != 1)
            {
                MessageBox.Show("生命周期数据源配置错误!");
                return;
            }
            ComClass.m_DB_Source = drSmzq[0]["DASOURCE_"].ToString().Trim();
            ComClass.m_DB_User   = drSmzq[0]["USER_"].ToString().Trim();
            ComClass.m_DB_Pwd    = PWDEncrypt.Decrypt(drSmzq[0]["PAS_"].ToString().Trim());


            string strProcess = Process.GetCurrentProcess().Id.ToString();

            this.Text = "测试系统  进程ID:" + strProcess;
            string strAdd = ComClass.GetMacAddress();

            ComClass.m_Win32Or64 = ComClass.Distinguish64or32System();

            log.InfoFormat("操作系统:{0}位,客户端IP地址:{1},Mac地址:{2}。", ComClass.m_Win32Or64, ComClass.m_Client_Ip, strAdd);
        }
Beispiel #3
0
        public CourseInfo()
        {
            InitializeComponent();
            ComClass com = new ComClass();

            com.DoubleBufferedGrid(grdView, true);
            this.skinEngine1          = new Sunisoft.IrisSkin.SkinEngine(((System.ComponentModel.Component)(this)));
            this.skinEngine1.SkinFile = Application.StartupPath + "//DiamondBlue.ssk";
        }