ATMLCommonLibrary.forms.InstrumentForm.GetName C# (CSharp) Method

GetName() private static method

private static GetName ( InstrumentDescription instrument ) : string
instrument ATMLModelLibrary.model.equipment.InstrumentDescription
return string
        private static string GetName( InstrumentDescription instrument )
        {
            string name = instrument.name;
            if (string.IsNullOrEmpty( name ))
            {
                if (instrument.Identification != null && !string.IsNullOrEmpty( instrument.Identification.ModelName ))
                {
                    name = instrument.Identification.ModelName;
                }
                else
                {
                    name = instrument.uuid;
                }
            }
            return name;
        }