예제 #1
0
 private void PagItens_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (PagItens.SelectedIndex == 0)
     {
         PopularGridItens();
     }
     else
     {
         if (GridItens.CurrentRow != null)
         {
             PopularGridPessoa();
             GridParticipantes.Focus();
         }
         else
         {
             MessageBox.Show("Incluir um produto para poder vincular um participante", "Atenção", MessageBoxButtons.OK, MessageBoxIcon.Information);
             PagItens.SelectTab(0);
         }
     }
 }
예제 #2
0
        private void Paginas_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (Paginas.SelectedIndex == 0)
            {
                PopularGrid();
            }

            if (GridDados.CurrentRow != null)
            {
                if (Paginas.SelectedIndex == 0)
                {
                    BtnCancelar_Click(FrmPrincipal.BtnCancelar, null);
                }
                else
                {
                    PopularCampos(int.Parse(GridDados.CurrentRow.Cells[0].Value.ToString()));
                    PagItens.SelectTab(0);
                    PopularGridItens();
                    Hab_Botoes();
                }
            }
        }