Exemple #1
0
        public static void ExecuteOnClosed(this ISupportClosing source, Action action)
        {
            IDisposable supportClosingClosed = null;

            supportClosingClosed = source.Closed
                                   .Subscribe(x =>
            {
                action();

                if (supportClosingClosed != null)
                {
                    supportClosingClosed.Dispose();
                }
            });
        }
Exemple #2
0
 public static IDisposable SyncViewModelClose(this ISupportClosing destination, ISupportClosing source)
 {
     return(source.ClosingStrategy.Closed
            .Subscribe(x => destination.ClosingStrategy.Close()));
 }
Exemple #3
0
 public static IDisposable SyncViewModelClose(this ISupportClosing destination, ISupportClosing source)
 {
     return source.ClosingStrategy.Closed
                  .Subscribe(x => destination.ClosingStrategy.Close());
 }