예제 #1
0
        public void TryDisposeDisposesIDisposable()
        {
            var screen = new Mock <IDisposable>();

            ScreenExtensions.TryDispose(screen.Object);
            screen.Verify(x => x.Dispose());
        }
예제 #2
0
        public override void Dispose()
        {
            ScreenExtensions.TryDispose(rootViewModel);
            container?.Dispose();

            base.Dispose();
        }
예제 #3
0
        public override void Dispose()
        {
            ScreenExtensions.TryDispose(this._rootViewModel);
            if (this.container != null)
                this.container.Dispose();

            base.Dispose();
        }
예제 #4
0
 public override void Dispose()
 {
     base.Dispose();
     ScreenExtensions.TryDispose(_rootViewModel);
     if (Kernel != null)
     {
         Kernel.Dispose();
     }
 }
예제 #5
0
        public override void Dispose()
        {
            ScreenExtensions.TryDispose(this._rootViewModel);
            if (this.kernel != null)
            {
                this.kernel.Dispose();
            }

            base.Dispose();
        }
예제 #6
0
        public override void Dispose()
        {
            base.Dispose();

            ScreenExtensions.TryDispose(this._rootViewModel);
            if (this.serviceProvider != null)
            {
                this.serviceProvider.Dispose();
            }
        }
예제 #7
0
    public override void Dispose()
    {
        ScreenExtensions.TryDispose(_rootViewModel);
        if (_container != null)
        {
            _container.Dispose();
        }

        base.Dispose();
    }
예제 #8
0
 /// <summary>
 /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
 /// </summary>
 public override void Dispose()
 {
     base.Dispose();
     ScreenExtensions.TryDispose(_rootViewModel);
 }
예제 #9
0
 public override void Dispose()
 {
     // Probably need to make Stylet to this...
     ScreenExtensions.TryDispose(this.RootViewModel);
     base.Dispose();
 }
        public override void Dispose()
        {
            ScreenExtensions.TryDispose(this.RootViewModel);

            base.Dispose();
        }