private void DeleteEnvelop()
        {
            // Check for selected and for listserv status
            if (SelectedEnvelop != null && SelectedListServ != null && SelectedListServ.statusid != 14)
            {
                // Delete all envelop content with change otherdocs status
                if (EnvelopContentList != null && EnvelopContentList.Count > 0)
                {
                    foreach (var item in EnvelopContentList)
                    {
                        // Change otherdocs status & delete envelop content
                        DataBaseClient.DeleteEnvelopContent(item.otherdocid);
                    }
                }

                // Delete envelop
                DataBaseClient.DeleteEnvelop(SelectedEnvelop.id);

                // Update views
                UpdateEnvelopList();
            }
            else
            {
                MessagesService.Show("Оповещение", "Не выполненно одно из условий:\n1. Не выбран конверт\n2. Реестр в статусе отправлен");
            }
        }