private void On_SerialChanging(object sender, RoutedEventArgs e)
        {
            bool error = false;

            try
            {
                int count = ValidationImplementing();
                if (count > 0)
                {
                    throw new ArgumentException("Заполните отмеченное поле ввода.");
                }
            }
            catch (ArgumentException ex)
            {
                InfoBox.Clear();
                InfoBox.Text = ex.Message;
                error        = true;
            }
            if (!error)
            {
                string NUMBER                       = number.Text;
                string SERIAL                       = serialAfetr.Text;
                string SerialBefore                 = serialBefore.Text;
                bool   resultFromPolicyRegistry     = false;
                bool   resultFromPolicyBodyChanging = false;

                Guid policyID = VirtuDB.PolicyIDGetter(NUMBER, SerialBefore);

                bool resultFromDocumentDataDB = VirtuDB.SERIALInDocumentDataUpdating(policyID, SERIAL);
                if (resultFromDocumentDataDB)
                {
                    resultFromPolicyRegistry = VirtuDB.SERIALInPolicyRegistryUpdating(policyID, SERIAL);
                }

                if (resultFromPolicyRegistry)
                {
                    resultFromPolicyBodyChanging = VirtuDB.SERIALInPolicyBodyChanging(NUMBER, SERIAL, policyID);
                }

                if (resultFromPolicyRegistry && resultFromPolicyBodyChanging && resultFromDocumentDataDB)
                {
                    InfoBox.Clear();
                    InfoBox.Text = "Серия полиса была успешна изменена";
                }
                else
                {
                    InfoBox.Clear();
                    InfoBox.Text = "Попытка изменения серии завершилась неудачей.";
                }
            }
        }
        private void On_BirthDateChanging(object sender, RoutedEventArgs e)
        {
            bool error = false;

            try
            {
                int count = ValidationImplementing();
                if (count > 0)
                {
                    throw new ArgumentException("Заполните отмеченное поле ввода.");
                }
            }
            catch (ArgumentException ex)
            {
                InfoBox.Clear();
                InfoBox.Text = ex.Message;
                error        = true;
            }
            if (!error)
            {
                bool   result       = false;
                string NUMBER       = number.Text;
                string SerialBefore = serialBefore.Text;
                string newBirthDate = birthDateAfter.Text;
                string oldBirthDate = birthDate.Text;
                string Name         = name.Text;
                Guid   policyID     = VirtuDB.PolicyIDGetter(NUMBER, SerialBefore);
                result = VirtuDB.BirthDateChanging(policyID, newBirthDate, Name, oldBirthDate);
                if (result)
                {
                    InfoBox.Clear();
                    InfoBox.Text = "Изменение Даты Рождения прошло успешно.";
                }
                else
                {
                    InfoBox.Clear();
                    InfoBox.Text = "Попытка изменения Даты Рождения завершилась неудачей.";
                }
            }
        }
        private void On_VIPPropertyAdd(object sender, RoutedEventArgs e)
        {
            bool error = false;

            try
            {
                int count = ValidationImplementing();
                if (count > 0)
                {
                    throw new ArgumentException("Заполните отмеченное поле ввода.");
                }
            }
            catch (ArgumentException ex)
            {
                InfoBox.Clear();
                InfoBox.Text = ex.Message;
                error        = true;
            }
            if (!error)
            {
                string NUMBER       = number.Text;
                string SerialBefore = serialBefore.Text;
                string Name         = name.Text;
                string BirthDate    = birthDate.Text;
                Guid   policyID     = VirtuDB.PolicyIDGetter(NUMBER, SerialBefore);
                bool   result       = VirtuDB.AddSingleVipProperty(policyID, Name, BirthDate);
                if (result)
                {
                    InfoBox.Clear();
                    InfoBox.Text = "Добавление признака  прошло успешно";
                }
                else
                {
                    InfoBox.Clear();
                    InfoBox.Text = "Попытка добавления признака закончилась неудачей.";
                }
            }
        }
        private void On_FromInsuredListDelete(object sender, RoutedEventArgs e)
        {
            bool error = false;

            try
            {
                int count = ValidationImplementing();
                if (count > 0)
                {
                    throw new ArgumentException("Заполните отмеченное поле ввода.");
                }
            }
            catch (ArgumentException ex)
            {
                InfoBox.Clear();
                InfoBox.Text = ex.Message;
                error        = true;
            }
            if (!error)
            {
                string NUMBER       = number.Text;
                string SerialBefore = serialBefore.Text;
                string NameToDelete = personToDelete.Text;
                Guid   policyID     = VirtuDB.PolicyIDGetter(NUMBER, SerialBefore);

                bool result = VirtuDB.FromInsuredListDelete(policyID, NameToDelete);
                if (result)
                {
                    InfoBox.Clear();
                    InfoBox.Text = "Застрахованный был удален из списка.";
                }
                else
                {
                    InfoBox.Clear();
                    InfoBox.Text = "Попытка удаления Застрахованного из списка завершилась неудачей.";
                }
            }
        }
        private void On_VIPPropertyDelete(object sender, RoutedEventArgs e)
        {
            bool error = false;

            try
            {
                int count = ValidationImplementing();
                if (count > 0)
                {
                    throw new ArgumentException("Заполните отмеченное поле ввода.");
                }
            }
            catch (ArgumentException ex)
            {
                InfoBox.Clear();
                InfoBox.Text = ex.Message;
                error        = true;
            }
            if (!error)
            {
                string NUMBER       = number.Text;
                string SerialBefore = serialBefore.Text;
                string Name         = personToDelete.Text;
                Guid   policyID     = VirtuDB.PolicyIDGetter(NUMBER, SerialBefore);
                bool   result       = VirtuDB.DeleteVipPropertyInPolicyBody(policyID);
                if (result)
                {
                    InfoBox.Clear();
                    InfoBox.Text = "Удаление признака прошло успешно";
                }
                else
                {
                    InfoBox.Clear();
                    InfoBox.Text = "Попытка удаления признака закончилась неудачей.  Одна из возможных причин: признак в теле полиса не существует.";
                }
            }
        }