-
Notifications
You must be signed in to change notification settings - Fork 28
/
InvisibleLockScreenSaver.cs
45 lines (38 loc) · 1.08 KB
/
InvisibleLockScreenSaver.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
using System;
using System.Drawing;
using System.Collections.Generic;
using System.Text;
using Screensavers;
namespace InvisibleLockscreen
{
class TransparentLockSaver : Screensaver
{
public TransparentLockSaver()
: base(FullscreenMode.SingleWindow)
{
this.Initialize += new EventHandler(Saver_Initialize);
this.Update += new EventHandler(Saver_Update);
this.SettingsText = @"website: https://github.com/wmhilton/lock-screen
Based on:
Screensaver.cs © Rei Miyasaka 2006 [email protected]";
this.WindowTitle = InvisbleLockScreen.Properties.Resources.WindowTitle;
}
[STAThread]
static void Main()
{
TransparentLockSaver ps = new TransparentLockSaver();
ps.Run();
}
Random rand = new Random();
public Random Rand
{
get { return rand; }
}
void Saver_Update(object sender, EventArgs e)
{
}
void Saver_Initialize(object sender, EventArgs e)
{
}
}
}