示例#1
0
        private void btnAgregarCliente_Click(object sender, EventArgs e)
        {
            var result = new FrmClientesAlta().ShowDialog();

            if (result == System.Windows.Forms.DialogResult.OK)
            {
                RefrescarGrilla();
            }
        }
示例#2
0
        private void btnModificarCliente_Click(object sender, EventArgs e)
        {
            int idCliente = Convert.ToInt32(grdClientes.SelectedRows[0].Cells[0].Value);
            var result    = new FrmClientesAlta()
            {
                IdCliente = idCliente
            }.ShowDialog();

            if (result == System.Windows.Forms.DialogResult.OK)
            {
                RefrescarGrilla();
            }
        }