|
using System;
using System.ComponentModel;
using System.Diagnostics;
using System.Drawing;
using System.Windows.Forms;
namespace IssueVision
{
public class StaffPane : UserControl, IObserver
{
private Panel Panel2;
private Panel Panel1;
private PaneCaption PaneCaption1;
private PaneCaption PaneCaption2;
private IssueTreeView itvViews;
private IContainer components = null;
// IObserver.Subject
public ISubject Subject
{
set
{
itvViews.Subject = (IssueSubject)value;
}
}
public StaffPane()
{
InitializeComponent();
}
protected override void Dispose(bool disposing)
{
if (disposing && components != null)
{
components.Dispose();
}
base.Dispose(disposing);
}
[DebuggerStepThroughAttribute()]
private void InitializeComponent()
{
PaneCaption1 = new PaneCaption();
itvViews = new IssueTreeView();
PaneCaption2 = new PaneCaption();
Panel1 = new Panel();
Panel2 = new Panel();
SuspendLayout();
PaneCaption1.Caption = "Views";
PaneCaption1.Dock = DockStyle.Top;
PaneCaption1.Font = new Font("Tahoma", 12.0F, FontStyle.Bold);
PaneCaption1.Location = new Point(1, 1);
PaneCaption1.Name = "PaneCaption1";
PaneCaption1.Size = new Size(206, 31);
PaneCaption1.TabIndex = 14;
itvViews.Dock = DockStyle.Fill;
itvViews.DockPadding.All = 1;
itvViews.Location = new Point(1, 52);
itvViews.Name = "itvViews";
itvViews.Size = new Size(206, 275);
itvViews.TabIndex = 15;
PaneCaption2.AntiAlias = false;
PaneCaption2.Caption = "Staff list";
PaneCaption2.Dock = DockStyle.Top;
PaneCaption2.Font = new Font("Tahoma", 8.25F, FontStyle.Regular, GraphicsUnit.Point, 0);
PaneCaption2.InactiveGradientHighColor = Color.FromArgb(205, 225, 255);
PaneCaption2.InactiveGradientLowColor = Color.FromArgb(175, 200, 245);
PaneCaption2.InactiveTextColor = Color.Black;
PaneCaption2.Location = new Point(1, 32);
PaneCaption2.Name = "PaneCaption2";
PaneCaption2.Size = new Size(206, 19);
PaneCaption2.TabIndex = 21;
Panel1.BackColor = SystemColors.InactiveCaption;
Panel1.Dock = DockStyle.Top;
Panel1.Location = new Point(1, 51);
Panel1.Name = "Panel1";
Panel1.Size = new Size(206, 1);
Panel1.TabIndex = 22;
Panel2.Dock = DockStyle.Fill;
Panel2.Location = new Point(1, 52);
Panel2.Name = "Panel2";
Panel2.Size = new Size(206, 275);
Panel2.TabIndex = 23;
BackColor = SystemColors.Window;
Controls.Add(itvViews);
Controls.Add(Panel2);
Controls.Add(Panel1);
Controls.Add(PaneCaption2);
Controls.Add(PaneCaption1);
DockPadding.All = 1;
Name = "StaffPane";
Size = new Size(208, 328);
ResumeLayout(false);
}
}
}
|
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.
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
Weidong has been an information system professional since 1990. He has a Master's degree in Computer Science, and is currently a MCSD .NET