예제 #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;
		}