示例#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();
        }
示例#2
0
        private void btnAgregarCli_Click(object sender, EventArgs e)
        {
            ClientCrudForm myClientCrudForm = new ClientCrudForm();

            myClientCrudForm.ShowDialog();
        }