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

📄 initframe.cs

📁 独立完成考勤管理软件加打卡系统(C#) 是打卡加管理系统软件 
💻 CS
字号:
using System;
using System.Windows.Forms;
namespace WindowsApplication.UiUtils
{
	public class InitFrame
	{
		public InitFrame()
		{
			//
			// TODO: 在此处添加构造函数逻辑
			//
		}
		public static void InitUI(Form target)
		{
			target.BackColor = System.Drawing.Color.AliceBlue;
			target.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
			System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(WindowsApplication.mainFrame));
			target.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
			setColor(target);
		}
		private static void setColor(Control control)
		{
			for(int i=0;i<control.Controls.Count;i++)
			{
				if(control.Controls[i].Controls.Count>0)
				{
					setColor(control.Controls[i]);
				}
				else
				{
					if(control.Controls[i] is System.Windows.Forms.Button)
					{
						control.Controls[i].BackColor = System.Drawing.Color.LightSteelBlue;
					}
				}
			}
		}
	}
}

⌨️ 快捷键说明

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