mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
18 lines
469 B
C#
18 lines
469 B
C#
using System;
|
|
using System.Reactive.Disposables;
|
|
using ReactiveUI;
|
|
using ReactiveUI.Validation.Helpers;
|
|
|
|
namespace Wabbajack.App.ViewModels;
|
|
|
|
public class ViewModelBase : ReactiveValidationObject, IActivatableViewModel, IDisposable
|
|
{
|
|
protected readonly CompositeDisposable VMDisposables = new();
|
|
public ViewModelActivator Activator { get; protected set; }
|
|
|
|
public void Dispose()
|
|
{
|
|
VMDisposables.Dispose();
|
|
Activator.Dispose();
|
|
}
|
|
} |