Ejemplo n.º 1
0
        private void OnCommandLock(object sender, ExecutedRoutedEventArgs e)
        {
            App.AddLog("OnCommandLock");

            TaskbarIcon.ToggleChecked(LockCommand, out bool LockIt);
            SetSettingBool("Locked", LockIt);
            ChangeLockMode(LockIt);

            Icon Icon = LoadCurrentIcon(LockIt);

            TaskbarIcon.UpdateIcon(Icon);

            App.AddLog($"Lock mode: {LockIt}");
        }