private void ShowConfig(object sender, RoutedEventArgs e) { if (_camera != null) { _camera.ShowConfigurationDialog(); } }
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 }
public static void CameraConfig() { AForgeCamera camera = new AForgeCamera(); camera.ShowConfigurationDialog(); }
private void button1_Click(object sender, EventArgs e) { _camera.ShowConfigurationDialog(); }