Exemplo n.º 1
0
        private void Editar(UI.Cliente uiCliente)
        {
            try
            {
                var frmClienteMant = FrmClienteMant.Instance();
                frmClienteMant.MdiParent = this.MdiParent;
                frmClienteMant.Show();

                frmClienteMant.frmList = this;
                frmClienteMant.Cargar(uiCliente);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
Exemplo n.º 2
0
        private void btnNuevo_Click(object sender, EventArgs e)
        {
            try
            {
                lastRowIndex = this.dgvClientes.Rows.Count;

                var frmClienteMant = FrmClienteMant.Instance();
                frmClienteMant.MdiParent = this.MdiParent;
                frmClienteMant.Show();

                frmClienteMant.frmList = this;
            }
            catch (Exception ex)
            {
                General.ErrorMessage(ex.Message);
            }
        }