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); }
//连接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); } }
public static int Update(ScreenLEDEntity en) { return(new LedDal().Update(en)); }
public int Update(ScreenLEDEntity en) { return(db.Update(en)); }