diff --git a/TimeMocker.UI/Core/ProcessWatcher.cs b/TimeMocker.UI/Core/ProcessWatcher.cs index 25aaa61..de34ce3 100644 --- a/TimeMocker.UI/Core/ProcessWatcher.cs +++ b/TimeMocker.UI/Core/ProcessWatcher.cs @@ -42,13 +42,10 @@ namespace TimeMocker.UI.Core // Current fake time settings to apply on auto-inject public DateTime FakeUtc { get; set; } = DateTime.UtcNow; - public bool MockEnabled { get; set; } = false; public event Action LogMessage; public event Action ProcessAutoInjected; - public IReadOnlyList Rules => _rules; - public ProcessWatcher(InjectionManager mgr) { _injectionMgr = mgr; diff --git a/TimeMocker.UI/Forms/MainForm.cs b/TimeMocker.UI/Forms/MainForm.cs index 3a0ee8e..b3a37d8 100644 --- a/TimeMocker.UI/Forms/MainForm.cs +++ b/TimeMocker.UI/Forms/MainForm.cs @@ -169,7 +169,6 @@ namespace TimeMocker.UI.Forms btnSetNow.Click += (s, e) => { dtpDate.Value = dtpTime.Value = DateTime.Now; - ApplyTime(); }; btnApply = MakeButton("Set", 70, Color.FromArgb(70, 140, 200)); @@ -490,7 +489,6 @@ namespace TimeMocker.UI.Forms if (chkWatcherEnabled.Checked) { _watcher.FakeUtc = GetFakeTime().ToUniversalTime(); - _watcher.MockEnabled = true; _watcher.Start(); AppendLog("Process watcher started."); } @@ -537,7 +535,6 @@ namespace TimeMocker.UI.Forms var dt = GetFakeTime().ToUniversalTime(); _injMgr.SetFakeTimeAll(dt); _watcher.FakeUtc = dt; - _watcher.MockEnabled = true; UpdateTimePreview(); }