private void notifyIcon1_Click(object sender, EventArgs e) { if (isLock) { lockForm.showForm(); lockForm.Show(this); } else { if (this.WindowState == FormWindowState.Minimized) { this.WindowState = FormWindowState.Normal; } this.Activate(); } }
/// <summary> /// Ensures that the given lockscreen is shown on screen. (fullscreen prefered.) /// </summary> /// <param name="lockScreen">The lockscreen form</param> public override void Show(LockForm lockScreen) { lockScreen.WindowState = FormWindowState.Maximized; lockScreen.FormBorderStyle = FormBorderStyle.None; lockScreen.TopMost = true; lockScreen.Visible = true; lockScreen.Show(); lockScreen.Activate(); Win32.SetWinFullScreen(lockScreen.Handle); }
private void tool_lock_Click(object sender, EventArgs e) { if (!isLock || lockForm == null) { lockForm = new LockForm(); lockForm.showForm(); lockForm.Show(this); } else { lockForm.showForm(); lockForm.Show(this); } }
/// <summary> /// Ensures that the given lockscreen is shown on screen. (fullscreen prefered.) /// </summary> /// <param name="lockScreen">The lockscreen form</param> public override void Show(LockForm lockScreen) { lockScreen.WindowState = FormWindowState.Maximized; lockScreen.FormBorderStyle = FormBorderStyle.None; lockScreen.TopMost = true; lockScreen.Visible = true; lockScreen.Show(); lockScreen.Activate(); Win32.SetWinFullScreen(lockScreen.Handle); }