Exemple #1
0
 private void ShowClientInfo(object sender, RoutedEventArgs e)
 {
     if (DataGrid.SelectedItem is RecordViewModel project)
     {
         var dialog = new ClientInfoWindow(project.record);
         dialog.ShowDialog();
     }
 }
 private void ClientsDataGridMouseDoubleClick(object sender, MouseButtonEventArgs e)
 {
     var client = ClientsDataGrid.SelectedItem as Client;
     if (client != null)
     {
         var clientInfoWin = new ClientInfoWindow(uof, client.Id);
         clientInfoWin.ShowDialog();
     }
 }
 public void GetClientInfoWindow()
 {
     try
     {
         ClientInfoWindow win = new ClientInfoWindow(CurrentOffre.Client);
         win.Owner = Application.Current.MainWindow;
         win.ShowDialog();
     }
     catch
     {
         MessageBox.Show("D'abord choisissez une offre", "Avertissement", MessageBoxButton.OK, MessageBoxImage.Error);
     }
 }