Exemplo n.º 1
0
        private void btnView_Click(object sender, EventArgs e)
        {
            int index = comboChan.SelectedIndex;

            viewInfo[index].hPlayWnd = playWindow;
            playHandle[index]        = SPlate.SP_PreviewInfo(ref viewInfo[index], Marshal.SizeOf(viewInfo[index]));
        }
Exemplo n.º 2
0
        private void button1_Click(object sender, EventArgs e)
        {
            byte[] s = { 0xE9, 0xb2, 0x81, 0x48 };
            string a = System.Text.Encoding.UTF8.GetString(s);

            SPlate.SP_TestAPI();
        }
Exemplo n.º 3
0
        private void btnInit_Click(object sender, EventArgs e)
        {
            int i = SPlate.SP_InitNVR(textIP.Text.Trim(), int.Parse(textPort.Text.Trim()), textUser.Text.Trim(), textPwd.Text.Trim());

            if (i != 0)
            {
                MessageBox.Show("初始化失败,返回值:" + i.ToString());
            }
        }