splashform.cs
来自「功能:基于windows mobile 的地图查看器。使用vs2005开发」· CS 代码 · 共 41 行
CS
41 行
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Reflection;
namespace cfWorldWind
{
public partial class SplashForm : Form
{
public SplashForm()
{
InitializeComponent();
}
private void SplashForm_Load(object sender, EventArgs e)
{
Bitmap b;
Assembly asm = Assembly.GetExecutingAssembly();
string splashFile = "splashPortrait.PNG"; //assume portrait
if (this.Width > this.Height)
{
splashFile = "splashLandscape.PNG";
}
string refPath = asm.GetName().Name;
//capitalization of file names matters (including extensions)
b = new Bitmap(asm.GetManifestResourceStream(refPath + "." + splashFile));
pictureBox1.Image = b;
}
public void KillMe(object o, EventArgs e)
{
//splashTimer.Dispose();
this.Close();
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?