コード例 #1
0
 private void gridClientes_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     if (this.operacion == OperacionForm.frmModificacion)
     {
         ClienteAMFrm frm = new ClienteAMFrm();
         frm.ShowCliente((this.gridClientes.Rows[e.RowIndex].DataBoundItem as Cliente), this);
     }
 }
コード例 #2
0
        private void gridClientes_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            var grid = (DataGridView)sender;

            if (grid.Columns[e.ColumnIndex] is DataGridViewButtonColumn && e.RowIndex >= 0)
            {
                ClienteAMFrm frm = new ClienteAMFrm();
                frm.ShowCliente(grid.Rows[e.RowIndex].DataBoundItem as Cliente, this);
            }
        }
コード例 #3
0
        private void altaToolStripMenuItem_Click(object sender, EventArgs e)
        {
            ClienteAMFrm frmCliAlta = new ClienteAMFrm();

            frmCliAlta.NewCliente(null);
        }
コード例 #4
0
        private void NuevoClienteBtn_Click(object sender, EventArgs e)
        {
            ClienteAMFrm frm = new ClienteAMFrm();

            frm.NewCliente(this);
        }
コード例 #5
0
ファイル: PrincipalFrm.cs プロジェクト: maxijones012/LyL2018
        private void altaToolStripMenuItem_Click(object sender, EventArgs e)
        {
            ClienteAMFrm frm = new ClienteAMFrm();

            frm.Show();
        }