📄 program.cs
字号:
using System;
using System.Collections.Generic;
using System.Windows.Forms;
using System.Threading;
using Microsoft.WindowsCE.Forms;
namespace cfWorldWind
{
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[MTAThread]
static void Main()
{
//Application.Run(new MainForm());
if (Screen.PrimaryScreen.Bounds.Height < Screen.PrimaryScreen.Bounds.Width)
{
SystemSettings.ScreenOrientation = ScreenOrientation.Angle0;
//MessageBox.Show("this will not work in Landscape mode", "/cfWorldWind");
//return;
}
Thread splashThread = new Thread(new ThreadStart(MainForm.SplashScreenShow));
splashThread.Start();
MainForm mainForm = new MainForm();
//MainForm.SplashScreenShow();
Exception exc;
if (mainForm.InitializeGraphics(out exc) == false)
{
MessageBox.Show("Could not initialize WindowsMobile Direct3D. Exiting:" + exc.ToString());
return;
}
MainForm.SplashScreenClose();
// Run the form
try
{
Application.Run(mainForm);
}
catch (Exception ex)
{
MessageBox.Show("An error occured and this application needs to close:" + ex.ToString());
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -