private static string PromptUserToAddInstrument(string basePartNumber, string stationType, string referenceId)
{
string prompt =
string.Format(
PromptToCreateInstrument,
basePartNumber);
if (DialogResult.Yes ==
MessageBox.Show(prompt, @"V E R I F Y", MessageBoxButtons.YesNo, MessageBoxIcon.Question))
{
InstrumentDescription instrument = InstrumentController.CreateInstrument(basePartNumber,
stationType);
if (instrument == null)
throw new Exception(string.Format(FailedToFindInstrument, basePartNumber));
referenceId = instrument.uuid;
}
return referenceId;
}