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

📄 gatetrisdesigner.cs

📁 game tetris :), this file is a little too big but it s run well, besides, it also has file descripti
💻 CS
字号:
using System;
using System.Reflection;
using System.Windows.Forms.Design;
using System.ComponentModel.Design;
using System.Windows.Forms;

namespace GATetrisControl
{
	public class TetrisGridContainerDesigner : ParentControlDesigner
	{
		#region Overrides

		public override void Initialize(System.ComponentModel.IComponent component)
		{
			base.Initialize (component);
			tetris = component as GATetris;			
			
			Settings sett = new Settings();
			tetris.grid.settings = sett;
			sett.container = tetris;
			sett.ApplySettings();
		}

		protected override void PreFilterProperties(System.Collections.IDictionary props)
		{
			props.Remove("Size");
			props.Remove("Font");
			props.Remove("DockPadding");
			props.Remove("Dock");
			props.Remove("Anchor");
			props.Remove("BackColor");
			props.Remove("ForeColor");
			props.Remove("BackgroundImage");
			props.Remove("AutoScroll");
			props.Remove("AutoScrollMargin");
			props.Remove("AutoScrollMinSize");

			base.PreFilterProperties (props);
		}


		protected override bool DrawGrid
		{
			get
			{
				return false;
			}
			set
			{
				return;
			}
		}



		#endregion		

		#region Fields

		internal GATetris tetris;

		#endregion
	}
}

⌨️ 快捷键说明

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