Пример #1
0
        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);
            });
        }
Пример #2
0
 public RegisterShell(ShellViewModel shell)
 {
     Shell = shell;
 }
Пример #3
0
 private void HandleRegisterShell(RegisterShell msg)
 {
     _shell = msg.Shell;
 }
Пример #4
0
 public FlashWindowNotifier(ShellViewModel viewmodel)
 {
     _viewmodel = viewmodel;
 }