Erster Commit des bestehenden monolithischen WinForms-Copytraders, inklusive der Alt-Backups (*.bak), damit diese dauerhaft in der Historie rekonstruierbar bleiben. Threema-Lib unter libs/ wurde vendored (nested .git entfernt). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
31 lines
1.3 KiB
C#
31 lines
1.3 KiB
C#
using System.ComponentModel;
|
|
using System.Runtime.CompilerServices;
|
|
|
|
namespace PolyTraderSharp.Models
|
|
{
|
|
public class JobStatusRow : INotifyPropertyChanged
|
|
{
|
|
private string _jobName = "";
|
|
private string _description = "";
|
|
private bool _isEnabled = true;
|
|
private DateTime? _lastRun;
|
|
private DateTime? _nextRun;
|
|
private string _statusText = "Initializing...";
|
|
|
|
public string JobName { get => _jobName; set { _jobName = value; OnPropertyChanged(); } }
|
|
public string Description { get => _description; set { _description = value; OnPropertyChanged(); } }
|
|
public bool IsEnabled { get => _isEnabled; set { _isEnabled = value; OnPropertyChanged(); } }
|
|
public DateTime? LastRun { get => _lastRun; set { _lastRun = value; OnPropertyChanged(); } }
|
|
public DateTime? NextRun { get => _nextRun; set { _nextRun = value; OnPropertyChanged(); } }
|
|
public string StatusText { get => _statusText; set { _statusText = value; OnPropertyChanged(); } }
|
|
|
|
public Func<Task>? ManualTriggerAction { get; set; }
|
|
|
|
public event PropertyChangedEventHandler? PropertyChanged;
|
|
protected void OnPropertyChanged([CallerMemberName] string? name = null)
|
|
{
|
|
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(name));
|
|
}
|
|
}
|
|
}
|