//根据大屏幕墙ID开窗 private void btnOpenWin21_Click(object sender, RoutedEventArgs e) { byte[] cmd = DVCSAgreement.OpenWin(GetInt(wallID21.Text), GetInt(winID2.Text), DVCSAgreement.GetByteListByString(MAC.Text, false), GetInt(channelID.Text), GetInt(x.Text), GetInt(y.Text), GetInt(w.Text), GetInt(h.Text), GetInt(zindex.Text)); MessageBox.Show("将发送:" + DVCSAgreement.GetStringFromBytes(cmd)); //LogHelper.WriteLog(PublicParams.type, ""); PublicParams.dvcsServerMain.SendCMD(cmd); }
//根据大屏幕墙名称开窗 private void btnOpenWin22_Click(object sender, RoutedEventArgs e) { byte[] cmd = DVCSAgreement.OpenWin(0, DVCSAgreement.GetBytesFromString(winName.Text).ToList <byte>(), GetInt(winID2.Text), DVCSAgreement.GetByteListByString(MAC.Text, false), GetInt(channelID.Text), GetInt(x.Text), GetInt(y.Text), GetInt(w.Text), GetInt(h.Text), GetInt(zindex.Text)); //byte[] bb = DVCSAgreement.GetBytesFromString(winName.Text); //string ss = Encoding.UTF8.GetString(bb); MessageBox.Show("将发送:" + DVCSAgreement.GetStringFromBytes(cmd)); PublicParams.dvcsServerMain.SendCMD(cmd); LogHelper.WriteLog(DVCSAgreement.GetStringFromBytes(cmd)); }