Click here to Skip to main content
Click here to Skip to main content
Articles » Languages » XML » Web Services » Downloads
 
Add your own
alternative version

Implementing WS-SecureConversation in Microsoft IssueVision

, 27 Sep 2005
Adding secure communications to the Microsoft IssueVision sample application using WSE 2.0.
issuevisionwsesmartclient.zip
Database
IssueVision
Controls
Outlook
Images
statusbar
toolbar
types
Libraries
ThreadHelper Documentation
Panes
Patterns
Web References
localhost
IssueVisionWebWseCS
Libraries
App.ico
IssueVision.csproj.user
IssueVision.snk
IssueVisionServices.disco
IssueVisionServices.wsdl
Reference.map
AppUpdater.dll
ThreadHelper.dll
About BackgroundWorker.doc
Async Windows Forms Programming with BackgroundWorker.doc
IssueVision-about-banner.png
mosaic-light.png
Signin.png
all_staffers.png
all_types.png
computer.png
environmental.png
help_desk.png
network.png
none.png
printer.png
staff.png
technicians.png
technicians_group.png
telecom.png
new_task.png
synchronize.png
work_offline.png
StatusConnected.ico
StatusDisconnected.ico
StatusSynchronizing.ico
IssueVisionWebWseCS.csproj.webinfo
IVDataSet.xsx
using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Drawing;
using System.Resources;
using System.Windows.Forms;

namespace IssueVision
{
	// This control appears in the right pane and shows a summary of information about
	// the selected issue.
	public class OneIssuePane : UserControl, IObserver
	{
		private EllipsisLabel labelDescription;
		private IssueSubject m_subject;
		private Panel panelHistory;
		private PaneCaption captionDetails;
		private EllipsisLabel labelTitle;
		private Panel panelDetails;
		private Label labelNumber;
		private Panel panelMain;
		private LinkLabel linkEdit;
		private Label labelStatus;
		private Label detailStatus;
		private HistoryList listHistory;
		private PaneCaption panelBack;
		private Label detailNumber;
		private Label detailAssigned;
		private Label labelOpened;
		private Label detailCategory;
		private Label detailOpened;
		private Label labelAssigned;
		private Label labelCategory;
		private PaneCaption captionHistory;

		private IContainer components = null;

		public ISubject Subject
		{
			set
			{
				m_subject = (IssueSubject)value;
				m_subject.PositionChanged += new IssueSubject.PositionChangedEventHandler(this.Subject_PositionChanged);
				m_subject.IssueDataChanged += new IssueSubject.IssueDataChangedEventHandler(this.Subject_IssueDataChanged);
			}
		}

		public OneIssuePane()
		{
			InitializeComponent();
			labelTitle.Text = string.Empty;
			labelDescription.Text = string.Empty;
		}

		protected override void Dispose(bool disposing)
		{
			if (disposing && components != null)
			{
				components.Dispose();
			}
			base.Dispose(disposing);
		}

		[DebuggerStepThroughAttribute()]
		private void InitializeComponent()
		{
			System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(OneIssuePane));
			this.panelBack = new IssueVision.PaneCaption();
			this.panelMain = new System.Windows.Forms.Panel();
			this.labelDescription = new IssueVision.EllipsisLabel();
			this.labelTitle = new IssueVision.EllipsisLabel();
			this.linkEdit = new System.Windows.Forms.LinkLabel();
			this.captionHistory = new IssueVision.PaneCaption();
			this.panelHistory = new System.Windows.Forms.Panel();
			this.listHistory = new IssueVision.HistoryList();
			this.captionDetails = new IssueVision.PaneCaption();
			this.panelDetails = new System.Windows.Forms.Panel();
			this.detailOpened = new System.Windows.Forms.Label();
			this.detailCategory = new System.Windows.Forms.Label();
			this.detailAssigned = new System.Windows.Forms.Label();
			this.detailNumber = new System.Windows.Forms.Label();
			this.detailStatus = new System.Windows.Forms.Label();
			this.labelNumber = new System.Windows.Forms.Label();
			this.labelStatus = new System.Windows.Forms.Label();
			this.labelOpened = new System.Windows.Forms.Label();
			this.labelCategory = new System.Windows.Forms.Label();
			this.labelAssigned = new System.Windows.Forms.Label();
			this.panelBack.SuspendLayout();
			this.panelMain.SuspendLayout();
			this.panelHistory.SuspendLayout();
			this.panelDetails.SuspendLayout();
			this.SuspendLayout();
			// 
			// panelBack
			// 
			this.panelBack.AllowActive = false;
			this.panelBack.AntiAlias = false;
			this.panelBack.Controls.Add(this.panelMain);
			this.panelBack.Dock = System.Windows.Forms.DockStyle.Fill;
			this.panelBack.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
			this.panelBack.InactiveGradientHighColor = System.Drawing.Color.FromArgb(((System.Byte)(239)), ((System.Byte)(247)), ((System.Byte)(255)));
			this.panelBack.InactiveGradientLowColor = System.Drawing.Color.FromArgb(((System.Byte)(165)), ((System.Byte)(199)), ((System.Byte)(255)));
			this.panelBack.Location = new System.Drawing.Point(1, 1);
			this.panelBack.Name = "panelBack";
			this.panelBack.Size = new System.Drawing.Size(326, 494);
			this.panelBack.TabIndex = 8;
			// 
			// panelMain
			// 
			this.panelMain.BackColor = System.Drawing.SystemColors.Control;
			this.panelMain.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("panelMain.BackgroundImage")));
			this.panelMain.Controls.Add(this.labelDescription);
			this.panelMain.Controls.Add(this.labelTitle);
			this.panelMain.Controls.Add(this.linkEdit);
			this.panelMain.Dock = System.Windows.Forms.DockStyle.Top;
			this.panelMain.Location = new System.Drawing.Point(0, 0);
			this.panelMain.Name = "panelMain";
			this.panelMain.Size = new System.Drawing.Size(326, 72);
			this.panelMain.TabIndex = 14;
			// 
			// labelDescription
			// 
			this.labelDescription.Alignment = System.Drawing.ContentAlignment.TopLeft;
			this.labelDescription.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
				| System.Windows.Forms.AnchorStyles.Right)));
			this.labelDescription.BackColor = System.Drawing.Color.Transparent;
			this.labelDescription.Ellipsis = System.Drawing.StringTrimming.EllipsisCharacter;
			this.labelDescription.Location = new System.Drawing.Point(8, 32);
			this.labelDescription.Name = "labelDescription";
			this.labelDescription.Size = new System.Drawing.Size(312, 16);
			this.labelDescription.TabIndex = 18;
			this.labelDescription.Text = "< description >";
			// 
			// labelTitle
			// 
			this.labelTitle.Alignment = System.Drawing.ContentAlignment.TopLeft;
			this.labelTitle.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
				| System.Windows.Forms.AnchorStyles.Right)));
			this.labelTitle.BackColor = System.Drawing.Color.Transparent;
			this.labelTitle.Ellipsis = System.Drawing.StringTrimming.EllipsisCharacter;
			this.labelTitle.Font = new System.Drawing.Font("Tahoma", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
			this.labelTitle.Location = new System.Drawing.Point(8, 8);
			this.labelTitle.Name = "labelTitle";
			this.labelTitle.Size = new System.Drawing.Size(312, 23);
			this.labelTitle.TabIndex = 17;
			this.labelTitle.Text = "< title >";
			// 
			// linkEdit
			// 
			this.linkEdit.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
			this.linkEdit.BackColor = System.Drawing.Color.Transparent;
			this.linkEdit.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.linkEdit.Location = new System.Drawing.Point(288, 48);
			this.linkEdit.Name = "linkEdit";
			this.linkEdit.Size = new System.Drawing.Size(32, 23);
			this.linkEdit.TabIndex = 16;
			this.linkEdit.TabStop = true;
			this.linkEdit.Text = "Edit";
			this.linkEdit.TextAlign = System.Drawing.ContentAlignment.BottomRight;
			this.linkEdit.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkEdit_LinkClicked);
			// 
			// captionHistory
			// 
			this.captionHistory.AllowActive = false;
			this.captionHistory.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
				| System.Windows.Forms.AnchorStyles.Right)));
			this.captionHistory.AntiAlias = false;
			this.captionHistory.Caption = "History";
			this.captionHistory.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
			this.captionHistory.ForeColor = System.Drawing.SystemColors.AppWorkspace;
			this.captionHistory.InactiveGradientHighColor = System.Drawing.Color.FromArgb(((System.Byte)(175)), ((System.Byte)(200)), ((System.Byte)(245)));
			this.captionHistory.InactiveGradientLowColor = System.Drawing.Color.FromArgb(((System.Byte)(205)), ((System.Byte)(225)), ((System.Byte)(250)));
			this.captionHistory.InactiveTextColor = System.Drawing.Color.Black;
			this.captionHistory.Location = new System.Drawing.Point(8, 216);
			this.captionHistory.Name = "captionHistory";
			this.captionHistory.Size = new System.Drawing.Size(312, 22);
			this.captionHistory.TabIndex = 9;
			// 
			// panelHistory
			// 
			this.panelHistory.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
				| System.Windows.Forms.AnchorStyles.Left) 
				| System.Windows.Forms.AnchorStyles.Right)));
			this.panelHistory.Controls.Add(this.listHistory);
			this.panelHistory.Location = new System.Drawing.Point(8, 240);
			this.panelHistory.Name = "panelHistory";
			this.panelHistory.Size = new System.Drawing.Size(312, 240);
			this.panelHistory.TabIndex = 10;
			// 
			// listHistory
			// 
			this.listHistory.Dock = System.Windows.Forms.DockStyle.Fill;
			this.listHistory.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawVariable;
			this.listHistory.Location = new System.Drawing.Point(0, 0);
			this.listHistory.Name = "listHistory";
			this.listHistory.Size = new System.Drawing.Size(312, 240);
			this.listHistory.TabIndex = 0;
			// 
			// captionDetails
			// 
			this.captionDetails.AllowActive = false;
			this.captionDetails.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
				| System.Windows.Forms.AnchorStyles.Right)));
			this.captionDetails.AntiAlias = false;
			this.captionDetails.Caption = "Issue Details";
			this.captionDetails.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
			this.captionDetails.ForeColor = System.Drawing.SystemColors.AppWorkspace;
			this.captionDetails.InactiveGradientHighColor = System.Drawing.Color.FromArgb(((System.Byte)(175)), ((System.Byte)(200)), ((System.Byte)(245)));
			this.captionDetails.InactiveGradientLowColor = System.Drawing.Color.FromArgb(((System.Byte)(205)), ((System.Byte)(225)), ((System.Byte)(250)));
			this.captionDetails.InactiveTextColor = System.Drawing.Color.Black;
			this.captionDetails.Location = new System.Drawing.Point(8, 89);
			this.captionDetails.Name = "captionDetails";
			this.captionDetails.Size = new System.Drawing.Size(312, 22);
			this.captionDetails.TabIndex = 9;
			// 
			// panelDetails
			// 
			this.panelDetails.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
				| System.Windows.Forms.AnchorStyles.Right)));
			this.panelDetails.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(222)), ((System.Byte)(231)), ((System.Byte)(255)));
			this.panelDetails.Controls.Add(this.detailOpened);
			this.panelDetails.Controls.Add(this.detailCategory);
			this.panelDetails.Controls.Add(this.detailAssigned);
			this.panelDetails.Controls.Add(this.detailNumber);
			this.panelDetails.Controls.Add(this.detailStatus);
			this.panelDetails.Controls.Add(this.labelNumber);
			this.panelDetails.Controls.Add(this.labelStatus);
			this.panelDetails.Controls.Add(this.labelOpened);
			this.panelDetails.Controls.Add(this.labelCategory);
			this.panelDetails.Controls.Add(this.labelAssigned);
			this.panelDetails.Location = new System.Drawing.Point(8, 112);
			this.panelDetails.Name = "panelDetails";
			this.panelDetails.Size = new System.Drawing.Size(312, 92);
			this.panelDetails.TabIndex = 11;
			// 
			// detailOpened
			// 
			this.detailOpened.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
				| System.Windows.Forms.AnchorStyles.Right)));
			this.detailOpened.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.detailOpened.Location = new System.Drawing.Point(88, 40);
			this.detailOpened.Name = "detailOpened";
			this.detailOpened.Size = new System.Drawing.Size(216, 16);
			this.detailOpened.TabIndex = 0;
			// 
			// detailCategory
			// 
			this.detailCategory.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
				| System.Windows.Forms.AnchorStyles.Right)));
			this.detailCategory.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.detailCategory.Location = new System.Drawing.Point(88, 56);
			this.detailCategory.Name = "detailCategory";
			this.detailCategory.Size = new System.Drawing.Size(216, 16);
			this.detailCategory.TabIndex = 0;
			// 
			// detailAssigned
			// 
			this.detailAssigned.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
				| System.Windows.Forms.AnchorStyles.Right)));
			this.detailAssigned.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.detailAssigned.Location = new System.Drawing.Point(88, 72);
			this.detailAssigned.Name = "detailAssigned";
			this.detailAssigned.Size = new System.Drawing.Size(216, 16);
			this.detailAssigned.TabIndex = 0;
			// 
			// detailNumber
			// 
			this.detailNumber.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
				| System.Windows.Forms.AnchorStyles.Right)));
			this.detailNumber.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.detailNumber.Location = new System.Drawing.Point(88, 8);
			this.detailNumber.Name = "detailNumber";
			this.detailNumber.Size = new System.Drawing.Size(216, 16);
			this.detailNumber.TabIndex = 0;
			// 
			// detailStatus
			// 
			this.detailStatus.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
				| System.Windows.Forms.AnchorStyles.Right)));
			this.detailStatus.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.detailStatus.Location = new System.Drawing.Point(88, 24);
			this.detailStatus.Name = "detailStatus";
			this.detailStatus.Size = new System.Drawing.Size(216, 16);
			this.detailStatus.TabIndex = 0;
			// 
			// labelNumber
			// 
			this.labelNumber.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.labelNumber.Location = new System.Drawing.Point(8, 8);
			this.labelNumber.Name = "labelNumber";
			this.labelNumber.Size = new System.Drawing.Size(80, 16);
			this.labelNumber.TabIndex = 0;
			this.labelNumber.Text = "Issue Number:";
			// 
			// labelStatus
			// 
			this.labelStatus.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.labelStatus.Location = new System.Drawing.Point(8, 24);
			this.labelStatus.Name = "labelStatus";
			this.labelStatus.Size = new System.Drawing.Size(80, 16);
			this.labelStatus.TabIndex = 0;
			this.labelStatus.Text = "Status:";
			// 
			// labelOpened
			// 
			this.labelOpened.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.labelOpened.Location = new System.Drawing.Point(8, 40);
			this.labelOpened.Name = "labelOpened";
			this.labelOpened.Size = new System.Drawing.Size(80, 16);
			this.labelOpened.TabIndex = 0;
			this.labelOpened.Text = "Opened:";
			// 
			// labelCategory
			// 
			this.labelCategory.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.labelCategory.Location = new System.Drawing.Point(8, 56);
			this.labelCategory.Name = "labelCategory";
			this.labelCategory.Size = new System.Drawing.Size(80, 16);
			this.labelCategory.TabIndex = 0;
			this.labelCategory.Text = "Category:";
			// 
			// labelAssigned
			// 
			this.labelAssigned.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.labelAssigned.Location = new System.Drawing.Point(8, 72);
			this.labelAssigned.Name = "labelAssigned";
			this.labelAssigned.Size = new System.Drawing.Size(80, 16);
			this.labelAssigned.TabIndex = 0;
			this.labelAssigned.Text = "Assigned To:";
			// 
			// OneIssuePane
			// 
			this.BackColor = System.Drawing.Color.White;
			this.Controls.Add(this.panelDetails);
			this.Controls.Add(this.panelHistory);
			this.Controls.Add(this.captionHistory);
			this.Controls.Add(this.captionDetails);
			this.Controls.Add(this.panelBack);
			this.DockPadding.All = 1;
			this.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
			this.Name = "OneIssuePane";
			this.Size = new System.Drawing.Size(328, 496);
			this.panelBack.ResumeLayout(false);
			this.panelMain.ResumeLayout(false);
			this.panelHistory.ResumeLayout(false);
			this.panelDetails.ResumeLayout(false);
			this.ResumeLayout(false);

		}


		//m_subject.PositionChanged: A new issue has been selected, update the issue details
		private void Subject_PositionChanged(object sender, EventArgs e)
		{
			//If issue has an active conflict, show the conflictPane instead
			if (m_subject.ConflictItems != null && m_subject.ConflictItems.Count > 0 && m_subject.ConflictItems.ContainsKey(m_subject.CurrentItem["IssueID"]))
			{
				Hide();
				return;
			}
			
			Show();
						
			//make sure that we actually have an item to display
			if (m_subject.CurrentItem != null)
			{
				//Update the main area
				labelTitle.Text = m_subject.CurrentItem["Title"] as string;
				labelDescription.Text = m_subject.CurrentItem["Description"] as string;
				
				//Update the details
				detailAssigned.Text = m_subject.CurrentItem["DisplayName"] as string;
				detailCategory.Text = m_subject.CurrentItem["IssueType"] as string;
				detailNumber.Text = m_subject.CurrentItem["IssueID"] as string;
				
				if ((bool)m_subject.CurrentItem["IsOpen"])
				{
					detailStatus.Text = "Open";
				}
				else
				{
					detailStatus.Text = "Closed";
				}
				
				detailOpened.Text = GetOpenedText((DateTime)m_subject.CurrentItem["DateOpened"]);
				
				//Update the history
				listHistory.DataSource = m_subject.CurrentItem.Row.GetChildRows("History");
			}
		}
		
		// m_subject.IssueDataChanged: The data has been updated. Need to handle 
		// this event to update the history list and clear, or repopulate, the 
		// item details.
		private void Subject_IssueDataChanged(object sender, EventArgs e)
		{
			if (m_subject.CurrentView.Count == 0)
			{
				//There are not any items to display
				listHistory.Clear();
				
				//Clear the main area
				labelTitle.Text = "";
				labelDescription.Text = "";
				linkEdit.Enabled = false;
				
				//Clear the issue details
				panelDetails.Enabled = false;
				detailAssigned.Text = "";
				detailCategory.Text = "";
				detailNumber.Text = "";
				detailOpened.Text = "";
				detailStatus.Text = "";
			}
			else
			{
				//An issue is selected
				
				//Update the history list
				listHistory.DataSource = m_subject.CurrentItem.Row.GetChildRows("History");
				
				//Update the item details, if currently cleared
				if (!panelDetails.Enabled)
				{
					panelDetails.Enabled = true;
					linkEdit.Enabled = true;
					Subject_PositionChanged(this, EventArgs.Empty);
				}
			}
		}

		// Return the issue opened string
		public string GetOpenedText(DateTime dateOpened)
		{
			//Calculate number of days, just use the date (Today)
			// instead of the date and time (Now)
			int days = DateTime.Today.Subtract(dateOpened.Date).Days;
			
			//A future date
			if (days < 0)
			{
				return string.Format("{0} {1}", dateOpened.ToShortDateString(), dateOpened.ToShortTimeString());
			}
			
			//Today
			if (days == 0 && dateOpened.DayOfWeek == DateTime.Today.DayOfWeek)
			{
				return string.Format("{0} {1} (Today)", dateOpened.ToShortDateString(), dateOpened.ToShortTimeString());
			}
			
			//Yesterday
			if (days < 1 && dateOpened.DayOfWeek == DateTime.Today.AddDays(-1.0).DayOfWeek)
			{
				return string.Format("{0} {1} (Yesterday)", dateOpened.ToShortDateString(), dateOpened.ToShortTimeString());
			}
			
			// Older
			return string.Format("{0} {1} ({2} days ago)", dateOpened.ToShortDateString(), dateOpened.ToShortTimeString(), days);
		}

		// Open the edit form for this issue
		private void linkEdit_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
		{
			IssueEditForm f = new IssueEditForm((Form)TopLevelControl);
			f.Subject = m_subject;
			f.Show();
		}
	}
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

About the Author

Weidong Shen
Software Developer (Senior)
United States United States
Weidong has been an information system professional since 1990. He has a Master's degree in Computer Science, and is currently a MCSD .NET

| Advertise | Privacy | Mobile
Web04 | 2.8.140721.1 | Last Updated 27 Sep 2005
Article Copyright 2005 by Weidong Shen
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid