Пример #1
0
 private void clienteToolStripMenuItem_Click(object sender, EventArgs e)
 {
   using (frmCadastroCliente frmCliente = new frmCadastroCliente())
   {
     frmCliente.ShowDialog();
   }
 }
Пример #2
0
        private void clientesToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmCadastroCliente frmCadastroCliente = new frmCadastroCliente();

            frmCadastroCliente.MdiParent = this;
            frmCadastroCliente.Show();
        }
Пример #3
0
        private void clienteToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmCadastroCliente f = new frmCadastroCliente();

            f.ShowDialog();
            f.Dispose();
        }
Пример #4
0
        private void mnuCliente_Click(object sender, EventArgs e)
        {
            frmCadastroCliente f = new frmCadastroCliente();

            f.ShowDialog();
            f.Dispose();
        }
 private void dgvDados_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     if (e.RowIndex >= 0)
     {
         frmCadastroCliente f = new frmCadastroCliente();
         f.codigo = Convert.ToInt32(dgvDados.Rows[e.RowIndex].Cells[0].Value);
         this.Close();
         f.ShowDialog();
         f.Dispose();
     }
 }
        private void clienteToolStripMenuItem_Click(object sender, EventArgs e)
        {
            MessageBox.Show("Falta implementar: " +
                            " \n mascaras -CEP CPF CNPJ Tel CEL " +
                            "\n Falta emplemtar validação diretamente nos campos." +
                            "\n usar maskedTextBox |ref: https://youtu.be/BTJP2RASd_c?list=PLfvOpw8k80Wqj1a66Qsjh8jj4hlkzKSjA |");

            frmCadastroCliente f = new frmCadastroCliente();

            f.ShowDialog();
            f.Dispose();
        }
Пример #7
0
        private void btnAddCat_Click(object sender, EventArgs e)
        {
            frmCadastroCliente f = new frmCadastroCliente();
            f.ShowDialog();
            f.Dispose();

            DALConexao cx = new DALConexao(DadosConexao.StringDeConexao);
            BLLCliente bll = new BLLCliente(cx);
            cbCliente.DataSource = bll.Localizar("");
            cbCliente.DisplayMember = "cli_nome";
            cbCliente.ValueMember = "cli_cod";
        }
 private void clienteToolStripMenuItem_Click(object sender, EventArgs e)
 {
     frmCadastroCliente f = new frmCadastroCliente();
     f.ShowDialog();
     f.Dispose();
 }
        private void clienteToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmCadastroCliente f = new frmCadastroCliente();

            CheckMdiChildren(f);
        }