public AddLaborFlyoutPanel ()
        {
            this.InitializeComponent ();

            DataContext =
                laborViewModel = ServiceContainer.Resolve<LaborViewModel> ();
        }
        public LaborPage ()
        {
            this.InitializeComponent ();

            DataContext =
                assignmentControl.DataContext =
                assignmentViewModel = ServiceContainer.Resolve<AssignmentViewModel> ();

            laborListView.DataContext =
                laborAddLabor.DataContext =
                laborViewModel = ServiceContainer.Resolve<LaborViewModel> ();

            Window.Current.SizeChanged += (sender, e) => {
                if (laborViewModel.LaborPopUp != null && laborViewModel.LaborPopUp.IsOpen) {
                    laborViewModel.LaborPopUp.SetValue (Canvas.LeftProperty, Window.Current.Bounds.Width - Constants.PopUpWidth);
                }
            };
        }
        public AssignmentPage ()
        {
            this.InitializeComponent ();

            DataContext =
                assignmentControl.DataContext =
                assignmentViewModel = ServiceContainer.Resolve<AssignmentViewModel> ();
            
            itemViewModel = ServiceContainer.Resolve<ItemViewModel> ();
            
            laborViewModel = ServiceContainer.Resolve<LaborViewModel> ();
            
            photoViewModel = ServiceContainer.Resolve<PhotoViewModel> ();
            
            expenseViewModel = ServiceContainer.Resolve<ExpenseViewModel> ();
            
            documentViewModel = ServiceContainer.Resolve<DocumentViewModel> ();
            
            historyViewModel = ServiceContainer.Resolve<HistoryViewModel> ();

            picker = new MediaPicker ();
        }