/// <summary> /// Напечатать тип детали /// </summary> /// <param name="swModel"></param> /// <returns></returns> public static bool ShowDocType(SwModelManager swModelMan) { swDocumentTypes_e docType; bool ret = false; int lineNum = 3; Console.CursorLeft = 0; Console.CursorTop = lineNum; Console.WriteLine("Открытый документ отсутствует"); if (!(swModelMan is null)) { docType = swModelMan.DocType; StringManager.ClearLine(lineNum); Console.WriteLine("{0, 23} {1}", "Тип открытой детали: ", StringManager.DocTypeName(docType)); ret = true; } return(ret); }