TimeLocker.WindowsLocker.SessionSwitch C# (CSharp) Method

SessionSwitch() public method

public SessionSwitch ( object o, Microsoft.Win32.SessionSwitchEventArgs e ) : void
o object
e Microsoft.Win32.SessionSwitchEventArgs
return void
        void SessionSwitch(object o, SessionSwitchEventArgs e)
        {
            if (e.Reason == SessionSwitchReason.SessionLock)
                LockStatusChanged(this, new LockStatusChangedEventArgs(LockStatusChangedReason.Lock));
            else if (e.Reason == SessionSwitchReason.SessionUnlock)
                LockStatusChanged(this, new LockStatusChangedEventArgs(LockStatusChangedReason.Unlock));
        }