public ChatWindow(user tmpFriendUser)
        {
            InitializeComponent();

            friendUser = tmpFriendUser;

            lblFriendName.Content = "Friend: " + friendUser.nickname;

            FriendMessageService friendMessageService = new FriendMessageService();
            string result = friendMessageService.GetChatBetweenTwoUsers(AuthenticationService.CurrentUser, friendUser);

            txtBox2.Text = result;
        }
        private void BtnSend_Click(object sender, RoutedEventArgs e)
        {
            if (txtBox.Text != "")
            {
                friend_messages friend_Messages = new friend_messages()
                {
                    user_id = AuthenticationService.CurrentUser.user_id, friend_id = friendUser.user_id, message = txtBox.Text, send_date = DateTime.Now
                };

                FriendMessageService friendMessageService = new FriendMessageService();

                friendMessageService.CreateFriendMsg(friend_Messages);

                string result = friendMessageService.GetChatBetweenTwoUsers(AuthenticationService.CurrentUser, friendUser);

                txtBox2.Text = result;
            }
        }