public MainWindow() { InitializeComponent(); cbRegiones.ItemsSource = RegionesBLL.ObtenerTodasConCostoViaje(); cbRegiones.DisplayMemberPath = "nombre"; cbTipoVidrio.ItemsSource = TipoVidrioBLL.ObtenerTodos(); cbTipoVidrio.DisplayMemberPath = "nombre"; txtCantVanos.TextChanged += TxtCantVanos_TextChanged; cbTipoVidrio.SelectionChanged += CbTipoVidrio_SelectionChanged; cbRegiones.SelectionChanged += CbRegiones_SelectionChanged; btnCalcularVanos.Click += BtnCalcularVanos_Click; btnNuevaCotizacion.Click += BtnNuevaCotizacion_Click; //btnAgregarCosto.Click += BtnAgregarCosto_Click; btnAgregarSueldo.Click += BtnAgregarSueldo_Click; txtCantVanos.Text = "1"; cbCostos.ItemsSource = TipoCostoBLL.ObtenerTipoCostos(); cbCostos.DisplayMemberPath = "nombre"; cbCostos.SelectionChanged += CbCostos_SelectionChanged; cbSueldos.ItemsSource = TipoCostoBLL.ObtenerTipoSueldos(); cbSueldos.DisplayMemberPath = "nombre"; }
private void ItemCostoUno_Loaded(object sender, System.Windows.RoutedEventArgs e) { if (EsSueldo == true) { cbGlosa.ItemsSource = TipoCostoBLL.ObtenerTipoSueldos(); } else { cbGlosa.ItemsSource = TipoCostoBLL.ObtenerTipoCostos(); } cbGlosa.DisplayMemberPath = "nombre"; txtValorInicial.Text = $"{ValorInicial}"; txtCostoFinal.Text = $"{CostoFinal}"; }