2015-09-18 15:33:36 +12:00
|
|
|
|
using System;
|
|
|
|
|
using System.Drawing;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using Screensavers;
|
|
|
|
|
|
|
|
|
|
namespace InvisibleLockscreen
|
|
|
|
|
{
|
|
|
|
|
class TransparentLockSaver : Screensaver
|
|
|
|
|
{
|
|
|
|
|
public TransparentLockSaver()
|
|
|
|
|
: base(FullscreenMode.SingleWindow)
|
|
|
|
|
{
|
2017-08-17 08:36:42 +12:00
|
|
|
|
this.Initialize += new EventHandler(Saver_Initialize);
|
|
|
|
|
this.Update += new EventHandler(Saver_Update);
|
2015-09-18 15:33:36 +12:00
|
|
|
|
|
2017-08-17 08:36:42 +12:00
|
|
|
|
this.SettingsText = @"website: https://github.com/wmhilton/lock-screen
|
|
|
|
|
|
|
|
|
|
Based on:
|
|
|
|
|
Screensaver.cs <EFBFBD> Rei Miyasaka 2006 rei@thefraser.com";
|
2015-09-18 15:33:36 +12:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[STAThread]
|
|
|
|
|
static void Main()
|
|
|
|
|
{
|
|
|
|
|
TransparentLockSaver ps = new TransparentLockSaver();
|
|
|
|
|
ps.Run();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Random rand = new Random();
|
|
|
|
|
public Random Rand
|
|
|
|
|
{
|
|
|
|
|
get { return rand; }
|
|
|
|
|
}
|
2017-08-17 08:36:42 +12:00
|
|
|
|
|
|
|
|
|
void Saver_Update(object sender, EventArgs e)
|
2015-09-18 15:33:36 +12:00
|
|
|
|
{
|
2017-08-17 08:36:42 +12:00
|
|
|
|
}
|
2015-09-18 15:33:36 +12:00
|
|
|
|
|
2017-08-17 08:36:42 +12:00
|
|
|
|
void Saver_Initialize(object sender, EventArgs e)
|
2015-09-18 15:33:36 +12:00
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|