private void onClickUserVehicle(object sender, RoutedEventArgs e) { User User = Client.Server.ConnectProvider.SelectUser(_vehicleNow.ClientId); if (User.Id != 0) { UiOperation.SetPage(UIPage.AUser); Hide(); Items.mainWindow.GridBackgroundDialog.Visibility = Visibility.Visible; UserACard.Show(User); Items.mainWindow.GridBackgroundDialog.Visibility = Visibility.Hidden; return; } button_User.IsEnabled = false; }
private void onTopContextClick(object sender, RoutedEventArgs e) { Items.mainWindow.GridBackgroundDialog.Visibility = Visibility.Visible; UserACard.Show(_activeUser); Items.mainWindow.GridBackgroundDialog.Visibility = Visibility.Hidden; }