/// <summary>
        /// Call dialog window for description input
        /// </summary>
        /// <param name="handler">Callback function</param>
        /// <exception cref="AssortmentException"></exception>
        private void DescriptionInput(EventHandler handler = null)
        {
            var windowDesc = new WindowDescription(_session.GetDocument());
            windowDesc.DescriptionChanged += _session.GetDocument().DocChanged;
            if (handler != null) windowDesc.DescriptionChanged += handler;
            windowDesc.DescriptionChanged += TitleUpdate;
            windowDesc.ShowDialog();

            if (_session.GetDocument().Description == "") throw new AssortmentException("Не удалось задать комментарий");
        }
        private void DescriptionInput()
        {
            var windowDesc = new WindowDescription(_doc);
            windowDesc.DescriptionChanged += _doc.DocChanged;
            windowDesc.ShowDialog();

            var desc = _doc.Description;
            Title = "Документ: " + (desc.Equals("") ? "не создан" : desc) + " (" + _doc.Id + ", " + (_doc.DocType == DocTypes.Operative ? "Оперативный" : "Обычный") + ")";
        }