//-------------------------------------------------------------------------------------------------------------------------------------- /// <summary></summary> private void ctlGastos_Load(object sender, EventArgs e) { if (Datos.BD == null) { return; } table = Datos.tableGastos; frm = (frmUnViaje)Parent.Parent.Parent; cbMoneda.SelectedIndex = 0; Grid.AutoGenerateColumns = false; Grid.DataSource = Datos.BD; Grid.DataMember = table.TableName; Sumatorias(); }
//-------------------------------------------------------------------------------------------------------------------------------------- /// <summary></summary> private void ctlPresupuesto_Load(object sender, EventArgs e) { if (Datos.BD == null) { return; } table = Datos.tablePresupesto; frm = (frmUnViaje)Parent.Parent.Parent; cbMoneda.SelectedIndex = 0; tbPresup = CreateTablePresup(); Grid.AutoGenerateColumns = false; Grid.DataSource = tbPresup; FillGrid(); }
//-------------------------------------------------------------------------------------------------------------------------------------- /// <summary></summary> private void ctlCompras_Load(object sender, EventArgs e) { if (Datos.BD == null) { return; } table = Datos.tableCompras; frm = (frmUnViaje)Parent.Parent.Parent; cbMoneda.SelectedIndex = 0; tbCompras = CreateTableCompras(); FillGridCompras(); Grid.AutoGenerateColumns = false; Grid.DataSource = tbCompras; Grid.Refresh(); Names.Load(); lstNames.Items.AddRange(Names.Items); }