Пример #1
0
        // Konstruktor
        public MainPage()
        {
            InitializeComponent();

            // Datenkontext des Listenfeldsteuerelements auf die Beispieldaten festlegen
            DataContext = App.ViewModel;
            app_overview.SelectionChanged += updateApplicationBar;
            myTimeLineControl              = new TimeLineControl(app_overview, 1, archive, timetable, Pages);
            this.Loaded   += new RoutedEventHandler(MainPage_Loaded);
            ApplicationBar = new ApplicationBar();
            setUpApplicationBar();
        }
Пример #2
0
        public OrderPage()
        {
            InitializeComponent();
            ApplicationBar    = new ApplicationBar();
            currentOrder      = App.formHandler.loadOrderFromIsolatedStorage(orderID);
            myTimeLineControl = new TimeLineControl(order_overview, 0, notes, costs, Pages);

            this.Loaded += updateApplicationBar;
            this.Loaded += loadControl;
            order_overview.SelectionChanged += updateApplicationBar;
            setUpApplicationBar();
            this.Loaded += loadForms;
        }