/// /// Copyright (c) 2013-2015 Sensus Metering Systems /// using System; using System.Drawing; using System.Windows.Forms; using TBF.BenchControl.Cameras.IdcCamera; using TBF.Resources; namespace TBF.UiControls { public partial class CameraPictureCtrl : UserControl { public PictureBox PictureBox { get { return pictureBox; } } /// /// Setting the state updated the background color /// 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(); groupBox.Text = Strings.Camera; grabButton.Text = Strings.Grab; liveButton.Text = Strings.Live; focusButton.Text = Strings.Focus; } 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) { } } }