Summary description for Class1
コード例 #1
0
ファイル: PLCView.cs プロジェクト: Wiladams/NewTOAPIA
		public PLCView(string name, string heading, int x, int y, int width, int height)
			: base(name, x, y, width, height)
		{
			//this.GraphicsUnit = GraphicsUnit.Inch;

			fTeamLogo = new TextBox("Team Logo","Tahoma",14,GDIFont.FontStyle.Regular,0,0,160,60,RGBColor.Black);
			fLegend = null;
			fCS = new PLCColorScheme();
			//fTransitionAnimator = new CrossFade();
			fDataBinder = null;
			fBackingPixelBuffer = new GDIDIBSection(width, height);
			fBackingGraphics = fBackingPixelBuffer.GraphPort;
			//fBackingGraphics.PageUnit = GraphicsUnit.Inch;

			fHeading = heading;

			// These are the set of virtual calls
			// That any subclasser will implement
			AddMasterHeading();
			AddPhaseArrows();
			AddPhaseHeadings();
			AddStageHeadings();
			AddDeliveryContainers();
			AddImages();
			AddLegend();
			AddTeamLogo();

			//DrawSelf(fBackingGraphics);
		}
コード例 #2
0
ファイル: ITPhaseControl.cs プロジェクト: Wiladams/NewTOAPIA
	public ITPhaseControl(string name, string phaseName, string deliverableName, string milestoneName, string checkpointName, int x, int y)
		:base(name,x,y,173,468)
	{
        //Debug = true;

        fCS = new PLCColorScheme();

		fBaseFrame = new Rectangle(x, y, 173, 468);
		fExpandedFrame = new Rectangle(x, y, 400, 468);
		fIsExpanded = false;

		GraphicsUnit = GraphicsUnit.Inch;

		// Big arrow
		fBigArrow=new GraphicArrow("bigarrow", 0, 0, 173, 468);
		//AddGraphic(fBigArrow);

		// Heading
        GradientRectangle gRect = new GradientRectangle(0, 0, 118, 35, RGBColor.White, fCS.HeaderBack, fCS.HeaderBorder, 90);
		HeadingButton heading = new HeadingButton(phaseName, "Tahoma", 11, GDIFont.FontStyle.Bold, 
            6, 36, 118, 35, StringAlignment.Center, StringAlignment.Center, 
            fCS.HeaderText, gRect);
		heading.MouseUpEvent +=new EventHandler(HeadingClicked);
		AddGraphic(heading);

		// Production Phase Deliverables List
		// The deliverables, milestones, checkpoints
		AddGraphic(new DeliverablesList(deliverableName, 6, 85, 117, 152, fCS.ProductBack, fCS.ProductBorder, 45));
		AddGraphic(new DeliverablesList(milestoneName, 6, 255, 117, 119, fCS.MilestoneBack, fCS.MilestoneBorder, 45));
		AddGraphic(new DeliverablesList(checkpointName, 6, 391, 117, 40, fCS.ChecklistBack, fCS.ChecklistBorder, 90));
	}
コード例 #3
0
ファイル: HardwareLegend.cs プロジェクト: Wiladams/NewTOAPIA
		public HardwareLegend()
			:base("legendbox",630, 590, 135, 83)
		{
			PLCColorScheme CS = new PLCColorScheme();

			GraphicsUnit = GraphicsUnit.Inch;

			AddGraphic(new GradientRectangle(0, 0, 12, 12, RGBColor.White, CS.HeaderBack, CS.HeaderBorder, 90));
            AddGraphic(new GradientRectangle(0, 21, 12, 12, RGBColor.White, CS.MilestoneBack, CS.MilestoneBorder, 90));
            AddGraphic(new GradientRectangle(0, 41, 12, 12, RGBColor.White, CS.ProductBack, CS.ProductBorder, 45));
            AddGraphic(new GradientRectangle(0, 61, 12, 12, RGBColor.White, CS.ChecklistBack, CS.ChecklistBorder, 45));

			AddGraphic(new TextBox("Phases", "Tahoma", 8, GDIFont.FontStyle.Regular, 21, 0, 115, 12, StringAlignment.Left, StringAlignment.Center, CS.HeaderText, null));
            AddGraphic(new TextBox("Stages", "Tahoma", 8, GDIFont.FontStyle.Regular, 21, 21, 115, 12, StringAlignment.Left, StringAlignment.Center, CS.StageHeaderText, null));
            AddGraphic(new TextBox("Deliverables", "Tahoma", 8, GDIFont.FontStyle.Regular, 21, 41, 115, 12, StringAlignment.Left, StringAlignment.Center, CS.ProductText, null));
            AddGraphic(new TextBox("Checkpoints", "Tahoma", 8, GDIFont.FontStyle.Regular, 21, 61, 115, 12, StringAlignment.Left, StringAlignment.Center, CS.ChecklistText, null));
		}