예제 #1
0
        public RepoResultsViewModel(IActorRef githubCoordinator, Messages.RepoKey repo)
        {
            //run on the UI thread;
            var props = Props.Create(() => new RepoResultsActor(this))
                        .WithDispatcher("akka.actor.synchronized-dispatcher");

            _formActor = App.GithubSystem.ActorOf(props);

            Title = string.Format("Repos Similar to {0} / {1}", repo.Owner, repo.Repo);

            //start subscribing to updates
            githubCoordinator.Tell(new GithubCoordinatorActor.SubscribeToProgressUpdates(_formActor));

            Items = new ReactiveList <RepoViewModel>();
        }
예제 #2
0
 public RepoResultsForm(IActorRef githubCoordinator, Messages.RepoKey repo)
 {
     InitializeComponent();
     m_vm        = new RepoResultsViewModel(githubCoordinator, repo);
     DataContext = m_vm;
 }