Beispiel #1
0
        public Form1()
        {
            InitializeComponent();
            m_event = this.OnMcEvent;

            m_sExePath   = System.IO.Path.GetDirectoryName(Application.ExecutablePath) + "\\";
            m_sMcPath    = m_sExePath + "mcdata\\";
            m_SamplePath = m_sExePath + "sample\\";

            //允许多线程刷新界面
            Control.CheckForIllegalCrossThreadCalls = false;

            //初始化
            mc.mcInit(8813, m_event, 0);//d9
            //
            this.grid1.View          = View.Details;
            this.grid1.HideSelection = false;
            this.grid1.FullRowSelect = true;
            this.grid1.Columns.Add("IP", 120, HorizontalAlignment.Left);
            this.grid1.Columns.Add("LED名称", 200, HorizontalAlignment.Left);
            this.grid1.Columns.Add("状态", 200, HorizontalAlignment.Left);

            m_IsInitDisplay = false;
            if (mc.mcDisplayInit(this.pnlScreen.Handle, this.pnlScreen.BackColor.ToArgb(), 0))
            {
                m_IsInitDisplay = true;
            }
        }
Beispiel #2
0
 //初始化
 public Boolean mcInit()
 {
     m_event = OnMcEvent;
     return(mc.mcInit(8813, m_event, 0));
 }