📄 splashscreen.cs
字号:
using System;
using System.Collections;
using System.Windows.Forms;
using System.Drawing;
using System.Reflection;
using System.Resources;
namespace ICSharpCode.SharpDevelop.Gui.Dialogs {
public class SplashScreenForm : Form
{
static SplashScreenForm splashScreen = new SplashScreenForm();
static ArrayList requestedFileList = new ArrayList();
static ArrayList parameterList = new ArrayList();
public static SplashScreenForm SplashScreen {
get {
return splashScreen;
}
}
public SplashScreenForm()
{
#if !DEBUG
TopMost = true;
#endif
FormBorderStyle = FormBorderStyle.None;
StartPosition = FormStartPosition.CenterScreen;
ShowInTaskbar = false;
Bitmap bitmap = new Bitmap(Assembly.GetEntryAssembly().GetManifestResourceStream("SplashScreen.png"));
Size = bitmap.Size;
BackgroundImage = bitmap;
}
public static string[] GetParameterList()
{
return GetStringArray(parameterList);
}
public static string[] GetRequestedFileList()
{
return GetStringArray(requestedFileList);
}
static string[] GetStringArray(ArrayList list)
{
return (string[])list.ToArray(typeof(string));
}
public static void SetCommandLineArgs(string[] args)
{
requestedFileList.Clear();
parameterList.Clear();
foreach (string arg in args)
{
if (arg[0] == '-' || arg[0] == '/') {
int markerLength = 1;
if (arg.Length >= 2 && arg[0] == '-' && arg[1] == '-') {
markerLength = 2;
}
parameterList.Add(arg.Substring(markerLength));
}
else {
requestedFileList.Add(arg);
}
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -