private void btnSearch_Click(object sender, EventArgs e) { try { Cursor.Current = Cursors.WaitCursor; serviceDAA = new DBControllerWSClient(); premises local = serviceDAA.queryPremisesByDescription(txtDesc.Text); if (local.address != null) { Modificar_Local updateForm1 = new Modificar_Local(); updateForm1.currentLocal = new premises(); updateForm1.currentLocal = local; updateForm1.SetParent(this); updateForm1.ShowDialog(); updateDataGridView(); } else { MessageBox.Show("No existe un local con ese nombre"); } } catch { MessageBox.Show("No existe el usuario"); updateDataGridView(); } }
private void btnModLocal_Click(object sender, EventArgs e) { Modificar_Local modLocal = new Modificar_Local(); modLocal.SetParent(this); modLocal.ShowDialog(); }