Inheritance: INotifyPropertyChanged
Exemplo n.º 1
0
 protected override void OnStartup(StartupEventArgs e)
 {
     mainvm = new MainVM();
     actorSystem = ActorSystem.Create("sys");
     appActor = actorSystem.ActorOf(Props.Create(() => new AppActor(mainvm)), "app");
     base.OnStartup(e);
 }
Exemplo n.º 2
0
 public UIActor(IActorRef appActor, MainVM vm)
 {
     _appActor = appActor;
     _vm = vm;
     _mainvm = new MainVM2(_appActor);
     _vm.VM = _mainvm;
     Receive<Messages.InitModuleMessage>(x => Handle(x));
 }
Exemplo n.º 3
0
 public AppActor(MainVM vm)
 {
     _vm = vm;
     Receive<Messages.RequestClose>(x => Sender.Tell(_moduleManagerActor.Ask(x).Result));
     Receive<Messages.IncrementerMessage>(x => _moduleManagerActor.Tell(x));
 }