mirror of
https://github.com/sp-tarkov/launcher.git
synced 2025-02-13 09:50:43 -05:00
28 lines
587 B
C#
28 lines
587 B
C#
![]() |
using ReactiveUI;
|
|||
|
|
|||
|
namespace Aki.Launcher.Models
|
|||
|
{
|
|||
|
public class ImageHelper : ReactiveObject
|
|||
|
{
|
|||
|
private string _Path;
|
|||
|
public string Path
|
|||
|
{
|
|||
|
get => _Path;
|
|||
|
set => this.RaiseAndSetIfChanged(ref _Path, value);
|
|||
|
}
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// Force property changed by touching the image path.
|
|||
|
/// </summary>
|
|||
|
/// <remarks>Can be used to force image re-loading</remarks>
|
|||
|
public void Touch()
|
|||
|
{
|
|||
|
string tmp = Path;
|
|||
|
|
|||
|
Path = "";
|
|||
|
|
|||
|
Path = tmp;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|