示例#1
0
        private void ShowPerson_Click(object sender, RoutedEventArgs e)
        {
            var anyaItem = RequestBox.SelectedItem as User;

            if (anyaItem == null)
            {
                MessageBox.Show("Choose a request");
                return;
            }
            var anya = new FriendProfileWindow(anyaItem);

            anya.ShowDialog();
        }
示例#2
0
        private void ShowFriend_Click(object sender, RoutedEventArgs e)
        {
            if (FriendsBox.SelectedItem == null)
            {
                MessageBox.Show("Select a friend");
                return;
            }
            var cf = new FriendProfileWindow(User);

            if (cf.ShowDialog() == true)
            {
                UpdateWindow();
            }
        }