Example #1
0
 public MainPage()
 {
     this.InitializeComponent();
     lunchPlanHandler = new LunchPlanHandler();
     mealHandler      = new MealHandler();
     dbHandler        = new DBHandler();
     messageHandler   = new MessageHandler();
     adminHandler     = new AdminHandler();
     iPHandler        = new IPHandler();
     model            = dbHandler.Model;
     CmbBoxWeekNumbers.ItemsSource   = Enumerable.Range(1, 52);
     CmbBoxWeekNumbers.SelectedIndex = GetIso8601WeekOfYear(DateTime.Now) - 1;
     ShowSelectedLunchPlan(GetIso8601WeekOfYear(DateTime.Now));
     BtnDeleteDish.IsHitTestVisible = false;
     BtnDeleteDish.Opacity          = 0.4;
     try
     {
         ListViewDatabaseDishes.ItemsSource = model.Meals.OrderByDescending(m => m.TimesChosen);
         LoadMessage();
     }
     catch (ArgumentNullException e)
     {
         Debug.Write(e);
     }
 }
Example #2
0
 public MainPage()
 {
     this.InitializeComponent();
     lunchPlanHandler = new LunchPlanHandler();
     mealHandler      = new MealHandler();
     dbHandler        = new DBHandler();
     messageHandler   = new MessageHandler();
     model            = dbHandler.Model;
     counter          = 1;
     SetDpTimer();
 }
Example #3
0
 public MainPage()
 {
     this.InitializeComponent();
     lunchPlanHandler = new LunchPlanHandler();
     mealHandler      = new MealHandler();
     dbHandler        = new DBHandler();
     messageHandler   = new MessageHandler();
     imageHandler     = new ImageHandler();
     rSSFeedHandler   = new RSSFeedHandler("http://feeds.tv2.dk/nyhederne_seneste/rss");
     iPHandler        = new IPHandler();
     clockHandler     = new ClockHandler();
     Windows.UI.ViewManagement.ApplicationView.GetForCurrentView().Title = CalendarHandler.GetStringDate("dd/MM/yyyy") + " - Uge : " + CalendarHandler.GetWeekNumber();
     UpdateIp();
     counter = 0;
     SetDpTimer();
 }