public CalculadoraVentas(CommonUtils.ActualizarGrids IUpdateGrids, DataTable table, Form parentForm, double totalDinero, bool reserva, bool sePago, CommonUtils.Cliente _client) { InitializeComponent(); InitializePrintSettings( ); dbLog = new CommonUtils.DataBaseLog(); log4net.Config.XmlConfigurator.Configure( ); dataTable = table; total = totalDinero; txtCuenta.Text = total.ToString(); txtTotal.Text = total.ToString(); pagado = sePago; esReserva = reserva; cliente = _client; // ventasPanel = ventasPnl; UpdateGrids = IUpdateGrids; InitConexionDB(); if (parentForm != null) { Left = parentForm.Left + (parentForm.Width - Width) / 2; Top = parentForm.Top + (parentForm.Height - Height) / 2; } }
public CalculadoraVentas(CommonUtils.ActualizarGrids IUpdateGrids,DataTable table,Form parentForm,double totalDinero,bool reserva,bool sePago,CommonUtils.Cliente _client) { InitializeComponent(); InitializePrintSettings( ); dbLog = new CommonUtils.DataBaseLog(); log4net.Config.XmlConfigurator.Configure( ); dataTable = table; total = totalDinero; txtCuenta.Text = total.ToString(); txtTotal.Text = total.ToString(); pagado = sePago; esReserva = reserva; cliente = _client; // ventasPanel = ventasPnl; UpdateGrids = IUpdateGrids; InitConexionDB(); if (parentForm != null) { Left = parentForm.Left + (parentForm.Width - Width) / 2; Top = parentForm.Top + (parentForm.Height - Height) / 2; } }