private void btn_liveview_Click(object sender, EventArgs e) { secondaryDisplay = new SecondaryDisplay(); secondaryDisplay.Show(); mainDisplay = new MainDisplay(DeviceManager.SelectedCameraDevice, this, secondaryDisplay); mainDisplay.ShowDialog(); }
public MainDisplay(ICameraDevice cameraDevice, Form1 form1, SecondaryDisplay secondaryDisplay) { //set live view default frame rate to 15 _liveViewTimer.Interval = 1000 / 24; _liveViewTimer.Stop(); _liveViewTimer.Tick += _liveViewTimer_Tick; CameraDevice = cameraDevice; CameraDevice.CameraDisconnected += CameraDevice_CameraDisconnected; this.form1 = form1; this.secondaryDisplay = secondaryDisplay; InitializeComponent(); }