Example #1
0
        private void StopRecBtn_Click(object sender, EventArgs e)
        {
            foreach (ListViewItem item in listView1.CheckedItems)
            {
                //关闭录像
                string IPChannel = item.Tag.ToString();
                string RecType   = item.SubItems[3].Text;
                switch (RecType)
                {
                case "手动录像":
                    ManualRec.StopRec(item.Tag.ToString());
                    break;

                case "自动录像":
                    AutoRec.StopRec(item.Tag.ToString());
                    break;

                case "报警录像":

                    break;
                }
                //移除录像信息
                listView1.Items.Remove(item);
            }
        }
Example #2
0
 // 关闭窗体
 private void button1_Click(object sender, EventArgs e)
 {
     //transForm.Close();
     AnimateWindow(Handle, 300, AW_HIDE + AW_CENTER);
     Close();
     ManualRec.Logout();
     AutoRec.Logout();
     AlarmRec.Logout();
     CapturePic.Logout();
     //try
     //{
     //    VMSdk.VM_CLIENT_Cleanup();
     //}
     //catch { //并不能处理会报错的异常,假如流媒体服务器初始化不成功
     //}
 }