Beispiel #1
0
        private void buttonAllHotels_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                AddHotel wnd = new AddHotel();
                wnd.Show();
                wnd.ski3 = ski;

                wnd.listViewHotels.Items.Clear();
                foreach (var item in wnd.lr.Res)
                {
                    if (ski.Name == item.Name)
                    {
                        foreach (var h in item.Hotels)
                        {
                            wnd.listViewHotels.Items.Add(h.Name);
                        }
                    }
                }
            }
            catch (Exception er)
            {
                MessageBox.Show(er.ToString());
            }
        }
Beispiel #2
0
 private void buttonHotel_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         AddHotel wnd = new AddHotel();
         wnd.Show();
     }
     catch (Exception er)
     {
         MessageBox.Show(er.ToString());
     }
 }