private void Button_Click(object sender, RoutedEventArgs e)
        {
            friend = new Model.ForeignFriends()
            {
                SocialNetworkUserID = friend.SocialNetworkUserID,
                Name       = name.Text,
                Family     = family.Text,
                WebAddress = webAddress.Text,
                Photo      = friend.Photo
            };

            var selectedCountry = ((Countries)country.SelectedItem);

            if (selectedCountry != null)
            {
                friend.CountryId = selectedCountry.Id;
            }

            if (dateBirth.SelectedDate != null)
            {
                friend.BirthDay = dateBirth.SelectedDate;
            }


            var added = logic.ForeignFriendsLogic.AddForeignFriend(friend) ? this.DialogResult = true : this.DialogResult = false;

            this.Close();
        }
        /// <summary>
        ///
        /// </summary>
        /// <param name="SocialNetworkUserID">Айди социальной сети</param>
        public AddForeignFriendWindow(int SocialNetworkUserID)
        {
            InitializeComponent();

            logic  = new LogicApp.Realisation.LogicApp();
            friend = new Model.ForeignFriends()
            {
                SocialNetworkUserID = SocialNetworkUserID
            };

            LoadData();
        }