bloxstrap/Bloxstrap/Models/SettingTasks/BaseTask.cs
pizzaboxer 7e95fb4d8f
Deferred settings application system + new shortcut settings
this system took way too much effort to think of for some reason idk why
2024-08-13 00:10:18 +01:00

48 lines
945 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Bloxstrap.Models.SettingTasks
{
public class BaseTask : ISettingTask
{
private bool _originalState;
private bool _newState;
public string Name { get; set; } = "";
public bool OriginalState
{
get
{
return _originalState;
}
set
{
_originalState = value;
_newState = value;
}
}
public bool NewState
{
get
{
return _newState;
}
set
{
App.PendingSettingTasks[Name] = this;
_newState = value;
}
}
public virtual void Execute() => throw new NotImplementedException();
}
}