private void OpenEditDrafteeCommonInfoWindow()
        {
            var window = new EditDrafteeCommonInfoWindow();

            window.Owner     = this;
            window.DrafteeId = 0;
            Hide();
            window.Closed += (sender, args) => { Show(); };
            window.Show();
        }
        private static void OnDrafteeChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            Draftee newDraftee = (Draftee)e.NewValue;
            EditDrafteeCommonInfoWindow view = (EditDrafteeCommonInfoWindow)sender;

            view.LastName   = newDraftee.LastName;
            view.FirstName  = newDraftee.FirstName;
            view.Patronymic = newDraftee.Patronymic;
            if (newDraftee.BirthDate != null)
            {
                view.BirthDate = newDraftee.BirthDate;
            }
            view.BirthPlace = newDraftee.BirthPlace;
            view.Category   = newDraftee.Category;
            view.TroopType  = newDraftee.TroopType;
        }