64 lines
1.4 KiB
C#
64 lines
1.4 KiB
C#
using System;
|
|
using System.Drawing;
|
|
using System.Windows.Forms;
|
|
using TBF.BenchControl.Cameras.IdcCamera;
|
|
|
|
namespace TBF.UiControls
|
|
{
|
|
public partial class CameraPictureCtrl : UserControl
|
|
{
|
|
public PictureBox PictureBox { get { return pictureBox; } }
|
|
|
|
/// <summary>
|
|
/// Setting the state updated the background color
|
|
/// </summary>
|
|
public IdcState CameraState
|
|
{
|
|
set
|
|
{
|
|
switch (value)
|
|
{
|
|
case IdcState.NotConnected:
|
|
ledPictureBox.BackColor = Color.Gray;
|
|
break;
|
|
case IdcState.Busy:
|
|
ledPictureBox.BackColor = Color.Orange;
|
|
break;
|
|
case IdcState.Idle:
|
|
case IdcState.OpCompleted:
|
|
ledPictureBox.BackColor = Color.LawnGreen;
|
|
break;
|
|
default:
|
|
ledPictureBox.BackColor = Color.Tomato;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
|
|
public CameraPictureCtrl()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
private void grabButton_Click(object sender, EventArgs e)
|
|
{
|
|
|
|
}
|
|
|
|
private void liveButton_Click(object sender, EventArgs e)
|
|
{
|
|
|
|
}
|
|
|
|
private void focusButton_Click(object sender, EventArgs e)
|
|
{
|
|
|
|
}
|
|
|
|
private void trackBar_Scroll(object sender, EventArgs e)
|
|
{
|
|
|
|
}
|
|
}
|
|
}
|