示例#1
0
文件: Panels.cs 项目: xuanvu/Fluqi
		/// <summary>
		/// Adds a accordion into the collection of tabs.  Due to the dependencies between the 
		/// accordion headings and content panes the tabs must be defined up-front
		/// </summary>
		/// <param name="title">Title of the accordion (to appear in the accordion headings)</param>
		/// <param name="active">Flags whether this accordion should be the selected accordion on page load</param>
		/// <returns>Returns Tabs object to maintain chainability</returns>
		public Panels Add(string title, bool active) {
			Panel newPanel = new Panel(this.Accordion.Writer, this.Accordion, title, active);

			this._Panels.Add(newPanel);

			// hold a quick reference point for further configuration
			_CurrentPane = this._Panels.Count() - 1;

			return this;
		}
示例#2
0
文件: Header.cs 项目: xuanvu/Fluqi
		/// <summary>
		/// Constructor
		/// </summary>
		/// <param name="panel">Panel the header is for</param>
		public Header(Panel panel) {
			this.OnPanel = panel;
			this.Hyperlink = new Hyperlink(this);
		}
示例#3
0
文件: Header.cs 项目: akhuang/Fluqi
		/// <summary>
		/// Constructor
		/// </summary>
		/// <param name="panel">Panel the header is for</param>
		public Header(Panel panel) {
			this.OnPanel = panel;
		}