コード例 #1
0
        public void SendLed(string ipaddress)
        {
            ScreenLEDEntity screen = ScreenLedFactory.GetByKey(ipaddress);

            LedPic         Led1    = new LedPic();
            LedProcFactory LedPlan = new LedProcFactory(null);

            //LedPic Led1 = new LedPic(twobig);//发送图片
            //LedProc LedPlan = new LedProc(null);
            Led1.Pics = LedPlan.CreatPlanPic(screen.PLINE_CODE);
            int ses = Led1.Pics.Count * 5000;

            timer1.Interval = ses > 60000 ? ses : 60000;
            Led1.SendPics(screen.WIDTH, screen.HEIGHT, screen.CADDRESS, screen.IPADDRESS, screen.PORT);
        }
コード例 #2
0
        //连接LED
        private void OpenLed()
        {
            ScreenLEDEntity twobig = ScreenLedFactory.GetByKey("192.168.113.73");

            LedDLL.DEVICEPARAM param = new LedDLL.DEVICEPARAM();
            GetParam(ref param);
            dev = LEDSender.LED_Open(ref param, LedDLL.NOTIFY_BLOCK, 0, 0);
            if (dev == -1)
            {
                twobig.STATUS = "2";
                ScreenLedFactory.Update(twobig);
            }
            else
            {
                twobig.STATUS = "1";
                ScreenLedFactory.Update(twobig);
            }
        }
コード例 #3
0
ファイル: ScreenLedFactory.cs プロジェクト: radtek/DCEC
 public static int Update(ScreenLEDEntity en)
 {
     return(new LedDal().Update(en));
 }
コード例 #4
0
 public int Update(ScreenLEDEntity en)
 {
     return(db.Update(en));
 }