Пример #1
0
 private void click_btn_back(object sender, EventArgs e)
 {
     if (flag == 1)
     {
         this.Hide();
         SearchResultsFoodList t = new SearchResultsFoodList();
         t.ShowDialog();
         this.Close();
     }
     else
     {
         this.Hide();
         SearchResultFoodListRadious t = new SearchResultFoodListRadious();
         t.ShowDialog();
         this.Close();
     }
 }
Пример #2
0
        private void click_btn_search_radious(object sender, EventArgs e)
        {
            if (cb_searchTypeRadious.SelectedItem != null)
            {
                KeyValuePair <string, string> kvp = (KeyValuePair <string, string>)cb_searchTypeRadious.SelectedItem;

                string key = kvp.Key.ToString();

                if (key == "Tourist Spot")
                {
                    this.Hide();
                    SearchResultSpotListRadious t = new SearchResultSpotListRadious();
                    t.ShowDialog();
                    this.Close();
                }

                else if (key == "Restaurent")
                {
                    this.Hide();
                    SearchResultRestaurentListRadious r = new SearchResultRestaurentListRadious();
                    r.ShowDialog();
                    this.Close();
                }

                else if (key == "Food")
                {
                    this.Hide();
                    SearchResultFoodListRadious s = new SearchResultFoodListRadious();
                    s.ShowDialog();
                    this.Close();
                }

                else if (key == "Tourist Guide")
                {
                    this.Hide();
                    SearchResultGuideListRadious g = new SearchResultGuideListRadious();
                    g.ShowDialog();
                    this.Close();
                }
            }
            else
            {
                MessageBox.Show("Please Select A Category...");
            }
        }