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); }