commandbarcontrol.cs

来自「c#源代码」· CS 代码 · 共 45 行

CS
45
字号
// ---------------------------------------------------------
// Windows Forms CommandBar Control
// Copyright (C) 2001-2003 Lutz Roeder. All rights reserved.
// http://www.aisto.com/roeder
// roeder@aisto.com
// ---------------------------------------------------------
namespace Reflector.UserInterface
{
	using System;
	using System.Drawing;
	using System.Collections;
	using System.ComponentModel;
	using System.Windows.Forms;
	
	public abstract class CommandBarControl : CommandBarItem
	{
		public event EventHandler Click;

		protected CommandBarControl(string text) : base(text)
		{
		}

		protected CommandBarControl(Image image) : base(image)
		{
		}

		protected CommandBarControl(Image image, string text) : base(image, text)
		{
		}

		protected virtual void OnClick(EventArgs e)
		{
			if (this.Click != null)
			{
				this.Click(this, e);
			}
		}

		internal void PerformClick(EventArgs e)
		{
			this.OnClick(e);
		}
	}
}

⌨️ 快捷键说明

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