Exemple #1
0
        private void mostrar(FConsultaCategoria f)
        {
            int index = f.index;

            id           = int.Parse(f.dt.Rows[index]["cat_id"].ToString());
            ttbnome.Text = f.dt.Rows[index]["cat_nome"].ToString();
        }
Exemple #2
0
        private void btncategoria_Click(object sender, EventArgs e)
        {
            FConsultaCategoria f = new FConsultaCategoria();

            f.ShowDialog();

            if (f.ok)
            {
                idcategoria       = int.Parse(f.dt.Rows[f.index]["cat_id"].ToString());
                ttbcategoria.Text = f.dt.Rows[f.index]["cat_nome"].ToString();
            }
        }
Exemple #3
0
        private void btnpesquisar_Click(object sender, EventArgs e)
        {
            FConsultaCategoria f = new FConsultaCategoria();

            f.ShowDialog();
            if (f.ok)
            {
                mostrar(f);
                gravacao();
                status = 1;
            }
            else
            {
                id = 0;
            }
        }