コード例 #1
0
ファイル: Form1.cs プロジェクト: rayddorf/PartyPhotoBooth
 private void btn_liveview_Click(object sender, EventArgs e)
 {
     secondaryDisplay = new SecondaryDisplay();
     secondaryDisplay.Show();
     mainDisplay = new MainDisplay(DeviceManager.SelectedCameraDevice, this, secondaryDisplay);
     mainDisplay.ShowDialog();
 }
コード例 #2
0
        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();
        }