private void btnAdd_ItemClick(object sender, DevExpress.XtraEditors.TileItemEventArgs e) { frmLocal frmAgregar = new frmLocal() { IsCreate = true }; this.Hide(); frmAgregar.ShowDialog(this); this.Show(); }
private void btselectlocalClick(object sender, EventArgs e) { DialogResult resul = new DialogResult(); frmLocal frlocal = new frmLocal(); frlocal.modoseleccion = true; resul = frlocal.ShowDialog(); if (frlocal.OPTION == "OK") { txtidlocal.Text = "" + frlocal.idlocal; } }