public void TSOn()
{
try
{
tstage.On();
controlWindow.WriteToConsole("Translation stage on");
}
catch (NullReferenceException)
{
MessageBox.Show("Translation stage is not connected.\nPress Connect button first.");
}
catch (ObjectDisposedException)
{
MessageBox.Show("Translation stage has been disconnected.\nPress the Connect button to reconnect.");
}
}