コード例 #1
0
ファイル: ScanView.cs プロジェクト: TwoRedCells/SlideScan
 /// <summary>
 /// Handles the 1 event of the ManualButton_Click control.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
 private void ManualButton_Click(object sender, EventArgs e)
 {
     try { LiveView.Capture(); }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message, "Capture Exception", MessageBoxButtons.OK, MessageBoxIcon.Error);
         CameraLabel.BackColor = Color.Red;
     }
 }
コード例 #2
0
ファイル: Test.cs プロジェクト: TwoRedCells/SlideScan
 private void CaptureButton_Click(object sender, EventArgs e)
 {
     LiveView.Capture();
 }
コード例 #3
0
 private void SingleCaptureButton_Click(object sender, RoutedEventArgs e)
 {
     LiveView.Capture();
 }