You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
454 B
20 lines
454 B
using System;
|
|
using CommunityToolkit.Mvvm.ComponentModel;
|
|
|
|
namespace DiscordChatExporter.Gui.Framework;
|
|
|
|
public abstract class ViewModelBase : ObservableObject, IDisposable
|
|
{
|
|
~ViewModelBase() => Dispose(false);
|
|
|
|
protected void OnAllPropertiesChanged() => OnPropertyChanged(string.Empty);
|
|
|
|
protected virtual void Dispose(bool disposing) { }
|
|
|
|
public void Dispose()
|
|
{
|
|
Dispose(true);
|
|
GC.SuppressFinalize(this);
|
|
}
|
|
}
|