⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 utilgui.cs

📁 windows mobile 开发实例wi ndows mobile 开发实例
💻 CS
字号:
//-----------------------------------------------------------------------------
// Code from _Programming the .NET Compact Framework with C#_
// and _Programming the .NET Compact Framework with VB_
// (c) Copyright 2002-2004 Paul Yao and David Durant. 
// All rights reserved.
//-----------------------------------------------------------------------------

using System;
using System.Drawing;
using System.Windows.Forms;

namespace LifeGame
{
	/// <summary>
	/// Summary description for utilGUI.
	/// </summary>
	public class utilGUI
	{
		public utilGUI()
		{
			//
			// TODO: Add constructor logic here
			//
		}

      // Symbolic constants for menu selections.
      public enum gameSpeed
      {
         gsSlowest = 2046, gsSlow = 1024, gsSlower = 512, 
         gsNormal = 256, 
         gsFaster = 128, gsFast = 64, gsFastest = 32
      }
      public enum gameZoom 
      {
         gzInnest = 8, gzIn = 16, gzInner = 16, 
         gzNormal = 32, 
         gzOuter = 64, gzOut = 64, gzOutest = 128
      }

      // Replaces a desktop method that is not
      //     available in Compact Framework.
      internal static void SetBounds(Control theControl,
                                     int x, int y, 
                                     int width, int height)
      {
         theControl.Left = x;
         theControl.Top = y;
         theControl.Width = width;
         theControl.Height = height;
      }

	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -