//根据大屏幕墙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)); }
//移动窗口 private void btnMoveWin3_Click(object sender, RoutedEventArgs e) { byte[] cmd = DVCSAgreement.MoveWin(GetInt(winID2.Text), GetInt(way3.Text), GetInt(x.Text), GetInt(y.Text), GetInt(w.Text), GetInt(h.Text), GetInt(zindex.Text)); MessageBox.Show("将发送:" + DVCSAgreement.GetStringFromBytes(cmd)); PublicParams.dvcsServerMain.SendCMD(cmd); }
//预案加载 private void LoadPlan_Click(object sender, RoutedEventArgs e) { byte[] cmd = DVCSAgreement.LoadPlan(GetInt(dwID1.Text), GetInt(layoutID1.Text)); MessageBox.Show("将发送:" + DVCSAgreement.GetStringFromBytes(cmd)); PublicParams.dvcsServerMain.SendCMD(cmd); }