Source/BubbleButtonCollection.cs

(开头部分) 11KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Collections;
using System.Windows.Forms;
using DevComponents.UI.ContentManager;

namespace DevComponents.DotNetBar
{
	/// <summary>
	/// Represents typed collection of BubbleButton objects.
	/// </summary>
	public class BubbleButtonCollection:CollectionBase
	{
		#region Private Variables
		private BubbleBarTab m_Parent=null;
		private bool m_IgnoreEvents=false;
		#endregion

		#region Internal Implementation
		/// <summary>
		/// Copies contained items to the IBlock array.
		/// </summary>
		/// <param name="array">Array to copy to.</param>
		internal void CopyTo(IBlock[] array)
		{
			List.CopyTo(array,0);
		}

		/// <summary>
		/// Creates new instance of the collection.
		/// </summary>
		/// <param name="parent">Parent of the collection.</param>
		internal BubbleButtonCollection(BubbleBarTab parent)
		{
			m_Parent=parent;
		}

		/// <summary>
		/// Gets the parent of the collection.
		/// </summary>
		internal BubbleBarTab Parent
		{
			get {return m_Parent;}
		}

		/// <summary>
		/// Adds new item to the collection but it does not raise internal events.
		/// </summary>
		/// <param name="item">New item to add.</param>
		/// <returns>Index of newly added item.</returns>
		internal int _Add(BubbleButton item)
		{
			m_IgnoreEvents=true;
			int i=0;
			try
			{
				i=List.Add(item);
			}
			finally
			{
				m_IgnoreEvents=false;
后面还有 376 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。