Exemple #1
0
        private void btnpesquisar_Click(object sender, EventArgs e)
        {
            FConsultaCliente f = new FConsultaCliente();

            f.ShowDialog();
            if (f.ok)
            {
                mostrar(f);
                gravacao();
                ttbnome.Focus();
                status = 1;
            }
            else
            {
                id = 0;
            }
        }
        private void btncliente_Click(object sender, EventArgs e)
        {
            int idcliente      = 0;
            FConsultaCliente f = new FConsultaCliente();

            f.ShowDialog();

            if (f.ok)
            {
                try
                {
                    idcliente = int.Parse(f.dt.Rows[f.index]["cli_id"].ToString());
                }
                catch { }
            }
            botaoidcliente = idcliente;
            pesquisarclienteid(idcliente);
        }