public void TSReturn()
{
try
{
tstage.Return();
}
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.");
}
}