Beispiel #1
0
        private void ProfileMouseUp(object sender, MouseButtonEventArgs e)
        {
            var fe   = sender as FrameworkElement;
            var play = fe.DataContext as Octgn.Play.Player;

            if (play == null)
            {
                return;
            }
            UserProfileWindow.Show(new User(play.Name + "@" + AppConfig.ChatServerPath));
        }
Beispiel #2
0
        private async void ProfileMouseUp(object sender, MouseButtonEventArgs e)
        {
            var fe   = sender as FrameworkElement;
            var play = fe.DataContext as Octgn.Play.Player;

            if (play == null)
            {
                return;
            }
            await UserProfileWindow.Show(new User(play.UserId));
        }
Beispiel #3
0
        private void ProfileOnClick(object sender, RoutedEventArgs e)
        {
            var mi = sender as MenuItem;

            if (mi == null)
            {
                return;
            }
            var cm = mi.Parent as ContextMenu;

            if (cm == null)
            {
                return;
            }
            var ui = cm.PlacementTarget as UserListItem;

            if (ui == null)
            {
                return;
            }
            UserProfileWindow.Show(ui.User);
        }