예제 #1
0
 private void ShowConfig(object sender, RoutedEventArgs e)
 {
     if (_camera != null)
     {
         _camera.ShowConfigurationDialog();
     }
 }
예제 #2
0
        private void mainForm_Loaded(object sender, RoutedEventArgs e)
        {
            AForgeCamera camera = new AForgeCamera();

            camera.FrameReady += camera_FrameReady;
            camera.Start();
            camera.ShowConfigurationDialog();
        }
        private void Form1_Load(object sender, EventArgs e)
        {
            camera             = new AForgeCamera();
            camera.FrameReady += camera_FrameReady;
            camera.Start();
            camera.ShowConfigurationDialog();

            tracker           = new AForgePenTracker(new WhiteLedStrategy(), camera);
            tracker.PenFound += Found;
            tracker.Start();

#if DEBUG
            tracker.DebugPicture += tracker_DebugPicture;
#endif
        }
예제 #4
0
        public static void CameraConfig()
        {
            AForgeCamera camera = new AForgeCamera();

            camera.ShowConfigurationDialog();
        }
예제 #5
0
 private void button1_Click(object sender, EventArgs e)
 {
     _camera.ShowConfigurationDialog();
 }