/// <summary> /// 时钟事件 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> public void timeCycle(object sender, EventArgs e) { LastInputInfoHook lastInputInfoHook = new LastInputInfoHook(); if (lastInputInfoHook.NoOpera(MainWindow.VM.SeccondLock * 1000)) { this.WindowState = WindowState.Minimized; LKLockScreen lkLockScreen = LKLockScreen.GetInstance(); lkLockScreen.OnCloseEvent += (s, e2) => { if (s.ToString() == "1") { timeTrigger.Start(); } }; lkLockScreen.Activate(); lkLockScreen.Show(); timeTrigger.Stop(); } }