public ChatModelDesign(long idDocument, long idConnectedDB) : base()
        {
            Logger.Debug("Создаём ChatModelDesign");

            IsVisibleLeftPart = System.Windows.Visibility.Collapsed;
            CurrentDoc        = new DocumentRec(idDocument,
                                                DBConnector.DBConnectionsDictionary[idConnectedDB]);
            MessagesRelatedWithDoc(idDocument, idConnectedDB);

            Logger.Debug("Создали ChatModelDesign");
        }
 /// <summary>
 /// Процедура поиска сообщений привязанных к макету.
 /// </summary>
 /// <param name="documentRec"></param>
 public virtual void MessagesRelatedWithDoc(DocumentRec documentRec)
 {
     MessagesRelatedWithDoc(documentRec.idx, documentRec.connection.connector_id);
 }