Ejemplo n.º 1
0
        private void lblFindPlaceCity_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            // *EAS jump to the Find Place by City form
            this.Close();
            FindPlaceCity findPlaceCity = new FindPlaceCity();

            findPlaceCity.Show();
        }
        private void DeleteSavedPlaces_Click(object sender, EventArgs e)
        {
            SqlCommand deleteCmd = new SqlCommand("DeleteSavedPlaces", Main.connection);

            deleteCmd.CommandType = CommandType.StoredProcedure;
            deleteCmd.Parameters.AddWithValue("@login", Main.login);
            deleteCmd.ExecuteNonQuery();

            this.Close();
            FindPlaceCity findPlaceCity = new FindPlaceCity();

            findPlaceCity.Show();
        }