Example #1
0
        private void PersistenceLayerBuildCompleted()
        {
            _scheduleManagerModel = Microsoft.Practices.ServiceLocation.ServiceLocator.Current.GetInstance <IScheduleManagerModel>();

            new Thread(() =>
            {
                var misc = _scheduleManagerModel.LoadMisc();
                var l    = new List <Campaign> {
                    Campaign.AllOptopn
                };

                l.AddRange(misc.Item1);
                _campaigns = l;


                SearchRecentSchedule();
                BuildDocuments();


                RangeFilters.CurrentChanged += delegate
                {
                    SearchRecentSchedule();
                    BuildDocuments();
                };

                _campaignsView.CurrentChanged += delegate
                {
                    BuildDocuments();
                };

                NotifyOfPropertyChange(() => Campaigns);
            }).Self(t => { t.IsBackground = true; t.Start(); });
        }
        private void PersistenceLayerBuildCompleted()
        {
            _scheduleManagerModel = Microsoft.Practices.ServiceLocation.ServiceLocator.Current.GetInstance<IScheduleManagerModel>();

            new Thread(() =>
            {
                var misc = _scheduleManagerModel.LoadMisc();
                var l = new List<Campaign> {Campaign.AllOptopn};

                l.AddRange(misc.Item1);
                _campaigns = l;


                SearchRecentSchedule();
                BuildDocuments();


                RangeFilters.CurrentChanged += delegate
                {
                    SearchRecentSchedule();
                    BuildDocuments();
                };

                _campaignsView.CurrentChanged += delegate
                {
                    BuildDocuments();
                };

                NotifyOfPropertyChange(() => Campaigns);

            }).Self(t => { t.IsBackground = true; t.Start(); });


        }