Exemplo n.º 1
0
 private void OnHostClosed(ScreenHost host)
 {
     host.Closed -= OnHostClosed;
     _screens.Remove(host.Key);
     if (!host.Persist(_persistenceService, out var e))
     {
         OnException($"Unable to restore screen: {host.Key}", e);
     }
     host.Dispose();
 }
Exemplo n.º 2
0
        private void OnHostClosed(ScreenHost host)
        {
            host.Closed -= OnHostClosed;
            _screens.Remove(host.Key);
            Exception e;

            if (!host.Persist(_persistenceService, out e))
            {
                OnException(string.Format("Unable to restore screen: {0}", host.Key), e);
            }
            host.Dispose();
        }