Esempio n. 1
0
        private void CalcButton_Click(object sender, RoutedEventArgs e)
        {
            var q = from stops in TourSource.GetAllTourStops()
                    where stops.Selected == true
                    select stops.EstimatedMinutes;

            MessageTextBlock.Text = String.Format("{0} minutes", q.Sum());
        }
Esempio n. 2
0
        public Form1()
        {
            InitializeComponent();


            foreach (TourStop stop in TourSource.GetAllTourStops())
            {
                this.listBox1.Items.Add(stop);
            }
        }
Esempio n. 3
0
 public MainWindow()
 {
     InitializeComponent();
     this.DataContext = TourSource.GetAllTourStops();
 }
Esempio n. 4
0
        public TourStopsView()
        {
            InitializeComponent();

            this.DataContext = TourSource.GetAllTourStops();
        }
Esempio n. 5
0
        public TourStopsView()
        {
            InitializeComponent();

            ToursListBox.ItemsSource = TourSource.GetAllTourStops();
        }
Esempio n. 6
0
 public TourStopsView()
 {
     InitializeComponent();
     lbTour.ItemsSource = TourSource.GetAllTourStops();
 }