Exemplo n.º 1
0
    public void Dispose()
    {
        if (_disposed)
        {
            return;
        }

        _disposed = true;
        ControllerSupport.UnsubscribeCustomInputs(ProcessEvents);
        ViewModel.Dispose();
    }
    public void Dispose()
    {
        if (_disposed)
        {
            return;
        }

        _disposed = true;
        ControllerSupport.UnsubscribeCustomInputs(OnProcessCustomInputs);
        ViewModel?.Dispose();
        GC.SuppressFinalize(this);
    }
Exemplo n.º 3
0
 public void Dispose()
 {
     _owner !.KeyDown -= TrySwitchPage;
     ControllerSupport.UnsubscribeCustomInputs(ProcessCustomInputs);
     GC.SuppressFinalize(this);
 }