//private CreatedCharactor mCreat; public CheckFace(String path, Webcam b) { InitializeComponent(); imagePath = path; showImage(); mWebcam = b; }
private void webcam_Click(object sender, RoutedEventArgs e) { Camera MyWebCam = new Camera(); FilterInfoCollection MyDevices = MyWebCam.MyCameraDevices; if (MyDevices.Count == 0) { MyMessageBox message = new MyMessageBox(); message.SetText = "현재 PC에 연결된 Cam이 없습니다."; message.ShowDialog(); } else { mWebcam = new Webcam(this); mWebcam.Show(); } }