private void cancelaPI_Click(Object sender, RoutedEventArgs e) { idPI.Text = ""; laPI.Text = ""; loPI.Text = ""; l1PI.BeginInit(); L2PI.BeginInit(); txtPI.Text = ""; }
//-------------------------------------- INTERFACE PontoInteresse ------------------------------------------ private void confirmaPI_Click(Object sender, RoutedEventArgs e) { q = new Query(); int id = Int32.Parse(idPI.Text); float latitude = float.Parse(laPI.Text); float longitude = float.Parse(loPI.Text); String txt = txtPI.Text; q.inserePontoInteresse(id, latitude, longitude, simagem, saudio, txt); idPI.Text = ""; laPI.Text = ""; loPI.Text = ""; l1PI.BeginInit(); L2PI.BeginInit(); txtPI.Text = ""; }