예제 #1
0
 // 报警->邮件报警
 private void tsmi邮件报警_Click(object sender, EventArgs e)
 {
     cameraToEdit = multiplexer.LastClicked.Camera;
     if (cameraToEdit == null)
     {
         MessageBox.Show("你当前没有选中摄像头!");
     }
     else if (cameraToEdit.Provider.Name == "EasyN IP Camera")
     {
         报警邮件 youjian = new 报警邮件();
         youjian.CamCGI.ConCam = cameraToEdit;
         youjian.CamCGI.bangding();
         youjian.Show();
         youjian.TopMost = true;
     }
     else
     {
         MessageBox.Show("此功能只对 EasyN IP Camera 开放");
     }
 }
예제 #2
0
 // 报警->邮件报警
 private void tsmi邮件报警_Click(object sender, EventArgs e)
 {
     cameraToEdit = multiplexer.LastClicked.Camera;
     if (cameraToEdit == null)
     {
         MessageBox.Show("你当前没有选中摄像头!");
     }
     else if (cameraToEdit.Provider.Name == "EasyN IP Camera")
     {
         报警邮件 youjian = new 报警邮件();
         youjian.CamCGI.ConCam = cameraToEdit;
         youjian.CamCGI.bangding();
         youjian.Show();
         youjian.TopMost = true;
     }
     else
     {
         MessageBox.Show("此功能只对 EasyN IP Camera 开放");
     }               
 }