private void CurrentUserLabel_PreviewMouseLeftButtonUp(object sender, MouseButtonEventArgs e) { UserInformationWindow userInfoWindow = new UserInformationWindow(activeUser, this); this.IsEnabled = false; userInfoWindow.Show(); }
private void UserButton_Click(object sender, RoutedEventArgs e) { // Opens a UserInformationWindow Button userButton = sender as Button; User selectedUser = userButton.Tag as User; UserInformationWindow userInfoWindow = new UserInformationWindow(selectedUser, this); this.IsEnabled = false; userInfoWindow.Show(); }