Пример #1
0
        protected override void btnCrear_Click(object sender, EventArgs e)
        {
            base.btnCrear_Click(sender, e);

            var createDocuments = new CreateDocument(Loaddata, null);

            createDocuments.MdiParent = _mdiParentForm;
            createDocuments.Show();
        }
Пример #2
0
        protected override void btnActualizar_Click(object sender, EventArgs e)
        {
            base.btnActualizar_Click(sender, e);

            var selectedRow = dataGridView1.SelectedRows[0].Cells[0].Value;
            var documento   = DbContext.Instance.Find <Documento>($"select * from Documento where Id={selectedRow}");
            var crearForm   = new CreateDocument(Loaddata, documento);

            crearForm.MdiParent = _mdiParentForm;
            crearForm.Show();
        }