public void Initialize(bool isElevated, Dispatcher dispatcher, TaskbarIconHost.IPluginSettings settings, TaskbarIconHost.IPluginLogger logger) { IsElevated = isElevated; Dispatcher = dispatcher; Settings = settings; Logger = logger; InitServiceManager(); InitializeCommand("Locked", isVisibleHandler: () => true, isEnabledHandler: () => StartType.HasValue && IsElevated, isCheckedHandler: () => IsLockEnabled, commandHandler: OnCommandLock); }