private void button1_Click(object sender, RoutedEventArgs e) { AddItem it = new AddItem(); EntradaPorValidacionViewModel entrada = this.DataContext as EntradaPorValidacionViewModel; it.DataContext = entrada.CreateCatalogItemViewModel(); it.ShowDialog(); }
private void button1_Click(object sender, RoutedEventArgs e) { this.comboBoxClienteDestino.IsEnabled = false; AddItem it = new AddItem(); EntradaDesinstalacionViewModel entrada = this.DataContext as EntradaDesinstalacionViewModel; it.DataContext = entrada.CreateCatalogItemViewModel(); it.ShowDialog(); }
private void button1_Click(object sender, RoutedEventArgs e) { this.radioButtonProveedor.IsEnabled = false; this.radioButtonCliente.IsEnabled = false; this.comboBoxProveedorDestino.IsEnabled = false; this.comboBoxClienteDestino.IsEnabled = false; AddItem it = new AddItem(); EntradaPrestamoViewModel entrada = this.DataContext as EntradaPrestamoViewModel; it.DataContext = entrada.CreateCatalogItemViewModel(); it.ShowDialog(); }