private void uc_MouseLeftButtonDown(object sender, MouseButtonEventArgs e) { CardFactura card = (CardFactura)sender; facturaSeleccionada = card.getFactura(); this.screenMessage.Visibility = Visibility.Collapsed; gridDetailFactura.DataContext = facturaSeleccionada; }
private void addFacturaToGUI(Factura factura, double progress) { UserControl uc = new CardFactura(factura); uc.MouseLeftButtonDown += uc_MouseLeftButtonDown; mainContent.Children.Add(uc); this.taskbarItemInfo.ProgressValue = progress; }