예제 #1
0
        public void InitializeFarmLoad()
        {
            // repository.Reload(Common.Constants.Tasks.TaskTitleInitialLoad);

            taskManagerActorRef.Tell(
                new LoadTask(Common.Constants.Tasks.TaskTitleInitialLoad,
                             Core.Factories.LocationFactory.GetDummyFarmForLoadCommand())
                );
        }
예제 #2
0
        public void InitializeFarmLoad()
        {
            // Commented out, because calling via Caliburn Eventbus is too early on application start ...
            // would have to find a way to verify, the actor is already listening at that time ...
            // TriggerFarmLoadTask(Common.Constants.Tasks.TaskTitleInitialLoad);

            taskManagerActorRef.Tell(
                new LoadTask(Common.Constants.Tasks.TaskTitleInitialLoad,
                             Core.Factories.LocationFactory.GetDummyFarmForLoadCommand())
                );
        }
예제 #3
0
        private void TriggerFarmLoadTask(string taskTitle)
        {
            CanReLoad      = false;
            recentLoadTask = Guid.NewGuid();
            taskManagerActorRef.Tell(new LoadTask(recentLoadTask, taskTitle, Core.Factories.LocationFactory.GetDummyFarmForLoadCommand()));

            // fyi - to do this via eventAggregator would also allow to trigger reload from other viewModels, e.g. also for single locations,
            // but at least the initial farm load cannot be triggered by eventaggregator, because it is not listening at that
            // early point in time, so all triggers from this viewModel directly call the actor ...
            // eventAggregator.PublishOnUIThread(new LoadTask(taskTitle, Core.Factories.LocationFactory.GetDummyFarmForLoadCommand()));
        }