private void BtnAplicaMaster_Click(object sender, EventArgs e) { if (BtnAplica.Text == "Por Master") { DataGridFIQs.DataSource = new BL_Master().DadosPorSolicitacao(DateTime.Today); DataGridFIQs.ClearSelection(); DataGridFIQs.Columns[0].Width = 150; DataGridFIQs.Columns[1].Width = 150; DataGridFIQs.Columns[1].DefaultCellStyle.Format = "N2"; DataGridFIQs.Columns[1].DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight; BtnAplica.Text = "Por FIQ"; } else { DataGridFIQs.DataSource = new BL_FIQ().DadosPorSolicitacao(DateTime.Today); DataGridFIQs.ClearSelection(); DataGridFIQs.Columns[0].Width = 150; DataGridFIQs.Columns[1].Width = 150; DataGridFIQs.Columns[1].DefaultCellStyle.Format = "N2"; DataGridFIQs.Columns[1].DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight; BtnAplica.Text = "Por Master"; } }
private void BtnAtualizar_Click(object sender, EventArgs e) { DataGridFIQs.DataSource = new BL_FIQ().DadosPorSolicitacao(DateTime.Today); DataGridFIQs.ClearSelection(); DataGridFIQs.Columns[0].Width = 150; DataGridFIQs.Columns[1].Width = 150; DataGridFIQs.Columns[1].DefaultCellStyle.Format = "N2"; DataGridFIQs.Columns[1].DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight; DataGridBatimento.DataSource = new BL_FIQ().BatimentoSolicitacao(DateTime.Today); DataGridBatimento.ClearSelection(); DataGridBatimento.Columns[1].DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight; DataGridBatimento.Columns[2].DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight; DataGridBatimento.Columns[3].DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight; DataGridResgates.DataSource = BatimentoResgates(); DataGridResgates.ClearSelection(); DataGridResgates.Columns[1].DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight; DataGridResgates.Columns[2].DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight; }