public ShellViewModelActor(ShellViewModel shellViewModel) { _shellViewModel = shellViewModel; Receive<ConnectionActor.ConnectRequest>(msg => ForwardConnectionRequest(msg)); Receive<ConnectionActor.Disconnect>(msg => ForwardDisconnectRequest(msg)); Receive<UpdateConnectionState>(msg => _shellViewModel.IsConnected = msg.Connected); Receive<NotificationActor.NotifyUser>(msg => { _notifierActor.Tell(msg); }); }
public RegisterShell(ShellViewModel shell) { Shell = shell; }
private void HandleRegisterShell(RegisterShell msg) { _shell = msg.Shell; }
public FlashWindowNotifier(ShellViewModel viewmodel) { _viewmodel = viewmodel; }