-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProgram.cs
More file actions
44 lines (40 loc) · 1.2 KB
/
Program.cs
File metadata and controls
44 lines (40 loc) · 1.2 KB
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
using System;
using System.Windows.Forms;
namespace ScreenSaverMatrixStyle
{
static class Program
{
[STAThread]
static void Main(string[] args)
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
if (args.Length > 0)
{
string arg = args[0].ToLower().Trim();
// Handle /c, /s, /p, -c, -s, -p
if (arg.Length > 2 && arg.StartsWith("/")) arg = arg.Substring(0, 2);
if (arg.StartsWith("/c"))
{
MessageBox.Show("Nenhuma configuração disponível.", "Matrix Screen Saver");
}
else if (arg.StartsWith("/p"))
{
// Preview mode not implemented
}
else if (arg.StartsWith("/s"))
{
Application.Run(new Tela());
}
else
{
Application.Run(new Tela());
}
}
else
{
Application.Run(new Tela());
}
}
}
}