public void Send(byte[] buffer, bool containFile) { m_Time = DateTime.Now; if (containFile) { HD_Transmit.SendExternCmdBuff(mInstance, buffer, buffer.Length, true); } else { HD_Transmit.SendToBoxPlayer(mInstance, buffer, buffer.Length /*, containFile*/); } }
//Transmit库初始化 private void transmitInit() { if (mInstance == IntPtr.Zero) { mInstance = HD_Transmit.CreateSendInstance(callback, IntPtr.Zero); if (mInstance == IntPtr.Zero) { //Xceed.Wpf.Toolkit.Xceed.Wpf.Toolkit.MessageBox.Show("Error : CreateSendInstance failed!"); Console.WriteLine("Error : CreateSendInstance failed!"); } HD_Transmit.InitSendInstance(mInstance, null, m_IPAddress); //txt_ip.Enabled = false; } }
public LEDControl(int WatchHouseID) { Config vConfig = new Config(); BasicDBClass.DataSource = vConfig.DBSource; BasicDBClass.DBName = vConfig.DBName; BasicDBClass.Port = vConfig.DBPort; BasicDBClass.UserID = vConfig.DBUserName; BasicDBClass.Password = vConfig.DBPassword; m_BasicDBClass = new BasicDBClass(DataBaseType.MySql); getLEDInfo(WatchHouseID, ref m_IPAddress, ref m_Width, ref m_Heigth); //m_Heigth = Heigth; //m_Width = Width; HD_Transmit.InitTransmit(); }