private void ButtonLink_Click(object sender, RoutedEventArgs e) { var btn = e.OriginalSource as Button; if (btn == null) { return; } var ua = btn.Tag as UserAction; if (ua == null) { return; } btn.IsEnabled = false; var user = ua.user; if (ua.action == UserAction.Action.Play) { Process.Start(user.videoPlayUrl); AddStatus($"Play : {user.nickname} ({user.mid})"); } else { AddStatus($"Open : {user.nickname} ({user.mid})"); var window = new UserWindow(user); window.Show(); } btn.IsEnabled = true; }
private void ButtonFind_Click(object sender, RoutedEventArgs e) { var window = new UserWindow(null); window.Show(); }