Ejemplo n.º 1
0
        private void btnModificarCli_Click(object sender, EventArgs e)
        {
            string code, name, hours, metodo;

            code   = dataGridView1.SelectedRows[0].Cells[0].Value.ToString();
            name   = dataGridView1.SelectedRows[0].Cells[1].Value.ToString();
            hours  = dataGridView1.SelectedRows[0].Cells[2].Value.ToString();
            metodo = "Modificar";
            ClientCrudForm myClientCrudForm = new ClientCrudForm(int.Parse(code), name, int.Parse(hours), metodo);

            myClientCrudForm.ShowDialog();
        }
Ejemplo n.º 2
0
        private void btnAgregarCli_Click(object sender, EventArgs e)
        {
            ClientCrudForm myClientCrudForm = new ClientCrudForm();

            myClientCrudForm.ShowDialog();
        }