//Properties for UserControlWorkingPanel// public UserControlWorkingPanel() { InitializeComponent(); this.SetStyle(ControlStyles.SupportsTransparentBackColor, true); tbControlPanelAssignment = new DataTable(); tbControlPanelAssignment.Columns.Add("index"); tbControlPanelAssignment.Columns.Add("control", typeof(ObjectSignal)); tbControlPanelAssignment.Columns.Add("isSelected"); IndicatorList = new List<ObjectIndicator>(); SequenceObjectList = new List<ObjectSequence>(); //MainForm.treeViewSolutionList.SelectedNode = MainForm.treeViewSolutionList.Nodes[0].Nodes[0]; shapeContainer = new ShapeContainer(); shapeContainer.Location = new Point(0, 0); shapeContainer.Size = new Size(20, 20); this.panelSequence.Controls.Add(shapeContainer); InitTbLineSequence(); InitTbAssemblyList(); List<string> fileList = Directory.GetFiles(Directory.GetCurrentDirectory() + AddinPath, "*.dll").ToList<string>(); foreach (string file in fileList) { Assembly asm = Assembly.LoadFrom(file); foreach (Type t in asm.GetTypes()) { foreach (Type iface in t.GetInterfaces()) { if (iface.Name == "ISigsenceAccess") { ISigsenceAccess sigsenceAccess = (ISigsenceAccess)Activator.CreateInstance(t); InsertToAssemblyList(sigsenceAccess); switch (sigsenceAccess.IControlType) { case InterfaceControlType.Indicator: ToolStripMenuItem menuItemIndicator = (ToolStripMenuItem)contextMenuStripIndicatorPanel.Items[0]; menuItemIndicator.DropDownItems.Add(sigsenceAccess.ObjectName); menuItemIndicator.DropDownItems[menuItemIndicator.DropDownItems.Count - 1].Tag = tbAssemblyList.Rows[tbAssemblyList.Rows.Count - 1]["guid"]; menuItemIndicator.DropDownItems[menuItemIndicator.DropDownItems.Count - 1].Click += new EventHandler(contextMenuItemObjectCustomIndicator_Click); break; case InterfaceControlType.Sequence: ToolStripMenuItem menuItemSequence = (ToolStripMenuItem)contextMenuStripSequencePanel.Items[0]; menuItemSequence.DropDownItems.Add(sigsenceAccess.ObjectName); menuItemSequence.DropDownItems[menuItemSequence.DropDownItems.Count - 1].Tag = tbAssemblyList.Rows[tbAssemblyList.Rows.Count - 1]["guid"]; menuItemSequence.DropDownItems[menuItemSequence.DropDownItems.Count - 1].Click += new EventHandler(contextMenuItemObjectCustomSequence_Click); break; } } } } } }
public void InitializeLightbulbs(int rows, int columns) { this.shapeContainer1 = new ShapeContainer(); this.SuspendLayout(); this.shapeContainer1.Location = new System.Drawing.Point(0, 0); this.shapeContainer1.Margin = new System.Windows.Forms.Padding(0); this.shapeContainer1.Name = "shapeContainer1"; int numberOfBulbs = rows * columns; _lightbulbs = new RectangleShape[numberOfBulbs]; int index = 0; for (int rowNumber = 0; rowNumber < rows; rowNumber++) { for (int columNumber = 0; columNumber < columns; columNumber++) { int left = (columNumber * PADDING) + (columNumber * BULB_SIZE); int top = (rowNumber * PADDING) + (rowNumber * BULB_SIZE); var bulb = new RectangleShape(left, top, BULB_SIZE, BULB_SIZE) { BackStyle = BackStyle.Opaque, BackColor = COLOR_OFF, }; _lightbulbs[index++] = bulb; this.shapeContainer1.Shapes.Add(bulb); } } this.shapeContainer1.Size = new System.Drawing.Size(64, 73); this.shapeContainer1.TabIndex = 0; this.shapeContainer1.TabStop = false; this.Controls.Add(this.shapeContainer1); int totalWidth = (columns * PADDING) + (columns * BULB_SIZE); int totalHeight = (rows * PADDING) + (rows * BULB_SIZE); this.Size = new System.Drawing.Size(totalWidth, totalHeight); this.ResumeLayout(false); this.PerformLayout(); }
public RelationshipView(Control.ControlCollection collection, Essenishial one, Essenishial two, ErRelationshipConnectType firsType, ErRelationshipConnectType secType, ErDiagram Diagram ) { targetDiagram = Diagram; ErConnectEssencePair firstPair = new ErConnectEssencePair(one.Essence, firsType); ErConnectEssencePair secondPair = new ErConnectEssencePair(two.Essence, secType); targetRelationship = new ErRelationship(firstPair, secondPair); targetDiagram.AddRelationship(targetRelationship); oneEssenishial = one; twoEssenishial = two; one.OneOrTwoList.Add(1); two.OneOrTwoList.Add(2); OnePoint = one.GetCentralPoint(); TwoPoint = two.GetCentralPoint(); one.RelationshipViewList.Add(this); two.RelationshipViewList.Add(this); MiddlePoint = new Point((OnePoint.X + TwoPoint.X) / 2, (OnePoint.Y + TwoPoint.Y) / 2); containerOne = new ShapeContainer(); OneToMiddleLine = new LineShape(OnePoint.X, OnePoint.Y, MiddlePoint.X, MiddlePoint.Y); OneToMiddleLine.DoubleClick += OpenRelationshipEditorWindow; OneToMiddleLine.BorderWidth = 3; OneToMiddleLine.BorderStyle = GetLineStyle(firsType.ModalType); MiddelToTwoLine = new LineShape(MiddlePoint.X, MiddlePoint.Y, TwoPoint.X, TwoPoint.Y); MiddelToTwoLine.BorderWidth = 3; MiddelToTwoLine.DoubleClick += OpenRelationshipEditorWindow; MiddelToTwoLine.BorderStyle = GetLineStyle(secType.ModalType); containerOne.Shapes.Add(OneToMiddleLine); containerOne.Shapes.Add(MiddelToTwoLine); //shape. collection.Add(containerOne); }
private void traserparafrente(object sender, MouseEventArgs e) { if (this.Cursor == Cursors.Hand) { if (objOrigem != sender) { Panel painel = (Panel) objOrigem; Panel painel2 = (Panel)sender; this.Cursor = Cursors.Default; Microsoft.VisualBasic.PowerPacks.LineShape linha = new Microsoft.VisualBasic.PowerPacks.LineShape(); linha.ContextMenuStrip = contextMenuStripObjetos; ShapeContainer shapeContainer = new ShapeContainer(); shapeContainer.Shapes.Add(linha); linha.X1 = painel.Location.X + painel.Size.Width; linha.X2 = painel2.Location.X; linha.Y1 = painel.Location.Y + 4; linha.Y2 = painel2.Location.Y + 3; panel1.Controls.Add(shapeContainer); /* Graphics g = panel1.CreateGraphics(); Pen pen = new Pen(Color.Red); g.DrawLine(pen, painel.Location.X, painel.Location.Y, painel2.Location.X, painel2.Location.Y); g.Dispose(); */ } } else { Panel painel = (Panel)sender; painel.BringToFront(); } }
/// <summary> /// Constructor /// </summary> /// <param name="info"></param> public BOMChartDynamically(BOMTool info) { mainForm = info; MaxCount = Count(); //ClientDataControl.Client = mainForm.CompanyName; for (int i = 0; i < MaxCount; i++) { circle[i] = new OvalShape(); labelInfo[i] = new Label(); objectivesCheckBox[i] = new CheckBox(); categoryLabel[i] = new Label(); labelHide[i] = false; newDiff[i] = new float(); newCrit[i] = new float(); newEff[i] = new int(); catArray[i] = new int(); objArray[i] = new int(); iniArray[i] = new int(); count[i] = new int(); clickArray[i] = new int(); for (int j = 0; j < 100; j++) { difArray[i, j] = new float(); effArray[i, j] = new float(); criArray[i, j] = new float(); locX[i, j] = new int(); locY[i, j] = new int(); //access[i, j] = new string("", j); } } panelChart.Parent = this; panelList.Parent = this; btnClose.Parent = this; btnReset.Parent = this; btnUndo.Parent = this; btnSave.Parent = this; btnUpdate.Parent = this; infoPanel.Parent = this; infoGridView.Parent = infoPanel; infoLabel.Parent = infoPanel; ShapeContainer canvas = new ShapeContainer(); canvas.Parent = panelChart; lineX.Parent = canvas; lineY.Parent = canvas; diffLabel.Parent = panelChart; origin.Parent = panelChart; endX.Parent = panelChart; endY.Parent = panelChart; endXLine.Parent = canvas; endYLine.Parent = canvas; panelChart.Width = 550; panelChart.Height = 550; panelList.Width = 200; panelList.Height = 400; infoPanel.Width = 770; infoPanel.Height = 140; infoPanel.AutoScroll = true; infoLabel.Width = 770; infoLabel.Height = 20; infoLabel.Font = new Font("Arial", 12); infoLabel.Text = "View Bubble: "; infoGridView.Width = 770; infoGridView.Height = 100; infoGridView.AllowUserToAddRows = false; infoGridView.AllowUserToDeleteRows = false; infoGridView.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.AllCells; DataGridViewCellStyle columnHeaderStyle = new DataGridViewCellStyle(); columnHeaderStyle.BackColor = Color.Aqua; columnHeaderStyle.Font = new Font("Verdana", 12, FontStyle.Bold); columnHeaderStyle.Alignment = DataGridViewContentAlignment.MiddleCenter; infoGridView.ColumnHeadersDefaultCellStyle = columnHeaderStyle; DataGridViewCellStyle rowStyle = new DataGridViewCellStyle(); rowStyle.Font = new Font("Verdana", 12); rowStyle.Alignment = DataGridViewContentAlignment.MiddleCenter; infoGridView.RowsDefaultCellStyle = rowStyle; infoGridView.ColumnCount = 4; infoGridView.Columns[0].Name = "Imperative"; infoGridView.Columns[1].Name = "Differentiation"; infoGridView.Columns[2].Name = "Criticality"; infoGridView.Columns[3].Name = "Effectiveness"; infoGridView.RowHeadersVisible = false; infoGridView.AutoSize = true; panelList.AutoScroll = true; diffLabel.AutoSize = true; diffLabel.Text = "Differentiation"; diffLabel.Font = new Font("Arial", 14, FontStyle.Bold); diffLabel.BringToFront(); origin.AutoSize = true; origin.Text = "0"; origin.Font = new Font("Arial", 12); endX.AutoSize = true; endX.Text = "10"; endX.Font = new Font("Arial", 12); endY.AutoSize = true; endY.Text = "10"; endY.Font = new Font("Arial", 12); //criticLabel.AutoSize = true; //criticLabel.Text = "Criticality"; //criticLabel.Font = new Font("Arial", 14, FontStyle.Bold); //diffLabel.Font.Size = 14; //diffLabel.Font.Name = "Arial"; //diffLabel.Font.Bold = true; diffLabel.Location = new Point(panelChart.Width / 2 - diffLabel.Width / 2, panelChart.Height - diffLabel.Height - 5); Size btnSize = new Size(200, 35); Size btnSmallSize = new Size(95, 35); btnClose.Size = btnSize; btnReset.Size = btnSmallSize; btnUndo.Size = btnSmallSize; btnSave.Size = btnSize; btnUpdate.Size = btnSize; btnClose.Text = "Close"; btnReset.Text = "Reset"; btnUndo.Text = "Undo"; btnSave.Text = "Save Image"; btnUpdate.Text = "Update"; btnClose.TextAlign = ContentAlignment.MiddleCenter; lineX.X1 = 30; lineX.X2 = panelChart.Width - 20; lineX.Y1 = panelChart.Height - 30; lineX.Y2 = panelChart.Height - 30; lineX.Enabled = false; lineY.X1 = 30; lineY.X2 = 30; lineY.Y1 = 20; lineY.Y2 = panelChart.Height - 30; lineY.Enabled = false; endXLine.X1 = lineX.X2; endXLine.X2 = lineX.X2; endXLine.Y1 = lineX.Y1; endXLine.Y2 = lineX.Y1 + 5; endYLine.X1 = lineY.X1 - 5; endYLine.X2 = lineY.X1; endYLine.Y1 = lineY.Y1; endYLine.Y2 = lineY.Y1; origin.Location = new Point(lineX.X1 - origin.Size.Width, lineX.Y1); endX.Location = new Point(endXLine.X2 - endX.Size.Width / 2, endXLine.Y2); endY.Location = new Point(endYLine.X1 - endY.Size.Width, endYLine.Y1); origin.BringToFront(); endX.BringToFront(); endY.BringToFront(); this.SizeChanged += new EventHandler(BOMChartDynamically_SizeChanged); SizeChanged += new EventHandler(panelChart_SizeChanged); SizeChanged += new EventHandler(panelList_SizeChanged); SizeChanged += new EventHandler(infoPanel_SizeChanged); panelChart.BackColor = Color.White; panelList.BackColor = Color.LightGray; infoPanel.BackColor = Color.DimGray; panelChart.Location = new Point(5, 5); panelList.Location = new Point(570, 5); infoPanel.Location = new Point(5, 560); infoLabel.Location = new Point(0, 0); infoGridView.Location = new Point(0, 20); btnUndo.Location = new Point(570, panelList.Height + 10); btnReset.Location = new Point(570 + btnUndo.Width, panelList.Height + 10); btnUpdate.Location = new Point(570, btnUndo.Location.Y + 38); btnSave.Location = new Point(570, btnUpdate.Location.Y + 38); btnClose.Location = new Point(570, btnSave.Location.Y + 38); btnUndo.Click += new EventHandler(btnUndo_Click); btnReset.Click += new EventHandler(btnReset_Click); btnSave.Click += new EventHandler(btnSave_Click); btnClose.Click += new EventHandler(btnClose_Click); btnUpdate.Click += new EventHandler(btnUpdate_Click); //picBox.Parent = panelChart; //panelChart.Paint += new PaintEventHandler(OnPaintBackground); //picBox.BringToFront(); int rowCount = 0; objCount = 0; int cirCount = 0; int objectivesCount = 0; mouseDown = false; for (int i = 0; i < circleCount; i++) { if (labelInfo[i] != null) { labelInfo[i].ResetText(); labelInfo[i] = new Label(); } } for (int i = 0; i < circleCount; i++) { if (circle[i] != null) { circle[i].Hide(); circle[i] = new OvalShape(); } } circleCount = 0; labelCount = 0; int x = 5; int y = 5; if (mainForm == null) { this.Hide(); } int valOfCount = 0; for (int i = 0; i < mainForm.Categories.Count; i++) { rowCount++; categoryLabel[i].Parent = panelList; categoryLabel[i].Text = mainForm.Categories[i].name; categoryLabel[i].AutoSize = true; categoryLabel[i].Font = new Font("Arial", 12, FontStyle.Bold); categoryLabel[i].BackColor = Color.Orange; y += i * 24; categoryLabel[i].Location = new Point(x, y); for (int j = 0; j < mainForm.Categories[i].Objectives.Count; j++) { rowCount++; objectivesCheckBox[objCount].Parent = panelList; //System.Diagnostics.Trace.WriteLine(mainForm.Categories[i].Objectives[j].Name); objectivesCheckBox[objCount].Text = mainForm.Categories[i].Objectives[j].ObjName; objectivesCheckBox[objCount].Name = objectivesCheckBox[j].Text; y += 24; objectivesCheckBox[objCount].Location = new Point((x + 10), y); objectivesCheckBox[objCount].Font = new Font("Arial", 12); objectivesCheckBox[objCount].AutoSize = true; objectivesCheckBox[objCount].BackColor = mainForm.Categories[i].Objectives[j].BackColor; if (valOfCount > 0 && objectivesCheckBox[objCount - valOfCount].BackColor == objectivesCheckBox[objCount].BackColor) objectivesCheckBox[objCount].BackColor = Color.FromArgb(random.Next(225), random.Next(225), random.Next(225), random.Next(225)); objectivesCheckBox[objCount].Checked = true; objectivesCheckBox[objCount].CheckedChanged += new EventHandler(checkBox_CheckedChanged); valOfCount++; //if (objectivesCheckBox[objectivesCount].Checked) //{ for (int k = 0; k < mainForm.Categories[i].Objectives[j].Imperatives.Count; k++) { name = mainForm.Categories[i].Objectives[j].Imperatives[k].Name; criticality = mainForm.Categories[i].Objectives[j].Imperatives[k].Criticality; differentiation = mainForm.Categories[i].Objectives[j].Imperatives[k].Differentiation; effectiveness = mainForm.Categories[i].Objectives[j].Imperatives[k].Effectiveness; catArray[cirCount] = i; objArray[cirCount] = j; iniArray[cirCount] = k; float effective = effectiveness * 20; int effectivenessBig = (int)(effective); newEff[cirCount] = effectivenessBig; effArray[cirCount, 0] = effectiveness; float critical = criticality * ((lineY.Y2 - lineY.Y1) / 10); int newCriticality = (int)(critical); newCrit[cirCount] = criticality; criArray[cirCount, 0] = criticality; float different = differentiation * ((lineX.X2 - lineX.X1) / 10); int newDifferentiation = (int)(different); newDiff[cirCount] = differentiation; difArray[cirCount, 0] = differentiation; System.Diagnostics.Trace.WriteLine("Diff: " + newDifferentiation.ToString() + " Critic: " + newCriticality.ToString()); circle[cirCount].Parent = canvas; circle[cirCount].FillStyle = FillStyle.Solid; circle[cirCount].FillColor = objectivesCheckBox[objectivesCount].BackColor; circle[cirCount].Name = (i + 1).ToString() + "." + (j + 1).ToString() + "." + (k + 1).ToString() + " " + name; circle[cirCount].AccessibleName = "Differentiation: " + differentiation.ToString() + ", Criticality: " + criticality.ToString() + ", Effectiveness: " + effectiveness.ToString(); //circle[cirCount].AccessibleDescription = circle[cirCount].Name + "\n" + circle[cirCount].AccessibleName; circle[cirCount].Visible = true; circle[cirCount].Location = new System.Drawing.Point((30 + (int)(newDifferentiation) - (int)effectivenessBig / 2), (lineX.Y1 - (int)(newCriticality) - (int)(effectivenessBig / 2))); circle[cirCount].Size = new System.Drawing.Size(effectivenessBig, effectivenessBig); locX[cirCount, 0] = circle[cirCount].Left; locY[cirCount, 0] = circle[cirCount].Top; count[cirCount] = 0; access1[cirCount, 0] = circle[cirCount].Name; access2[cirCount, 0] = circle[cirCount].AccessibleName; System.Diagnostics.Trace.WriteLine("X: " + circle[cirCount].Location.X.ToString() + " Y: " + circle[cirCount].Location.Y.ToString()); circle[cirCount].MouseClick += new MouseEventHandler(circle_MouseClick); circle[cirCount].MouseDown += new MouseEventHandler(circle_MouseDown); circle[cirCount].MouseMove += new MouseEventHandler(circle_MouseMove); circle[cirCount].MouseUp += new MouseEventHandler(circle_MouseUp); rowCount++; circleCount++; cirCount++; imperativesCount++; } //}*/ objectivesCount++; objCount++; } y += 10; } panelChart.Paint += new PaintEventHandler(picBox_Paint); Bitmap bmp = new Bitmap(panelChart.Width, panelChart.Height); //new Bitmap(this.panelChart.Width,this.panelChart.Height); panelChart.DrawToBitmap(bmp, new Rectangle(5, 5, bmp.Width, bmp.Height)); //System.Diagnostics.Trace.WriteLine("path: " + Application.StartupPath.ToString()); bmp.Save(ClientDataControl.Client.FilePath + "/BubbleChart.jpg", System.Drawing.Imaging.ImageFormat.Jpeg); bmp.Save(Directory.GetCurrentDirectory() + @"/Charts/" + "BubbleChart.jpg", System.Drawing.Imaging.ImageFormat.Jpeg); InitializeComponent(); //this.panelChart.Paint += new PaintEventHandler(picBox_Paint); //GenerateText(); }
private void checkBox_CheckedChanged(object sender, EventArgs e) { int rowCount = 0; int cirCount = 0; int objectivesCount = 0; mouseDown = false; for (int i = 0; i < circleCount; i++) { if (labelInfo[i] != null) { labelInfo[i].ResetText(); labelInfo[i] = new Label(); } } for (int i = 0; i < circleCount; i++) { //circle[i]. if (circle[i] != null) { circle[i].Hide(); circle[i] = new OvalShape(); } } lineX.BringToFront(); lineY.BringToFront(); circleCount = 0; labelCount = 0; ShapeContainer canvas = new ShapeContainer(); canvas.Parent = panelChart; if (mainForm == null) { this.Hide(); } for (int i = 0; i < mainForm.Categories.Count; i++) { rowCount++; for (int j = 0; j < mainForm.Categories[i].Objectives.Count; j++) { rowCount++; if (objectivesCheckBox[objectivesCount].Checked) { for (int k = 0; k < mainForm.Categories[i].Objectives[j].Imperatives.Count; k++) { name = mainForm.Categories[i].Objectives[j].Imperatives[k].Name; criticality = mainForm.Categories[i].Objectives[j].Imperatives[k].Criticality; differentiation = mainForm.Categories[i].Objectives[j].Imperatives[k].Differentiation; effectiveness = mainForm.Categories[i].Objectives[j].Imperatives[k].Effectiveness; catArray[cirCount] = i; objArray[cirCount] = j; iniArray[cirCount] = k; float effective = effectiveness * 20; int effectivenessBig = (int)(effective); newEff[cirCount] = effectivenessBig; effArray[cirCount, 0] = effectiveness; float critical = criticality * ((lineY.Y2 - lineY.Y1) / 10); int newCriticality = (int)(critical); newCrit[cirCount] = criticality; criArray[cirCount, 0] = criticality; float different = differentiation * ((lineX.X2 - lineX.X1) / 10); int newDifferentiation = (int)(different); newDiff[cirCount] = differentiation; difArray[cirCount, 0] = differentiation; circle[cirCount].Parent = canvas; circle[cirCount].FillStyle = FillStyle.Solid; circle[cirCount].FillColor = objectivesCheckBox[objectivesCount].BackColor; circle[cirCount].Name = (i + 1).ToString() + "." + (j + 1).ToString() + "." + (k + 1).ToString() + " " + name; circle[cirCount].AccessibleName = "Differentiation: " + differentiation.ToString() + "\nCriticality: " + criticality.ToString() + "\nEffectiveness: " + effectiveness.ToString(); circle[cirCount].Visible = true; circle[cirCount].Location = new System.Drawing.Point((30 + (int)(newDifferentiation) - (int)effectivenessBig / 2), (lineX.Y1 - (int)(newCriticality) - (int)(effectivenessBig / 2))); circle[cirCount].Size = new System.Drawing.Size(effectivenessBig, effectivenessBig); circle[cirCount].AccessibleDescription = circle[cirCount].Name + "\n" + circle[cirCount].AccessibleName; locX[cirCount, 0] = circle[cirCount].Left; locY[cirCount, 0] = circle[cirCount].Top; count[cirCount] = 0; access1[cirCount, 0] = circle[cirCount].Name; access2[cirCount, 0] = circle[cirCount].AccessibleName; circle[cirCount].MouseClick += new MouseEventHandler(circle_MouseClick); circle[cirCount].MouseDown += new MouseEventHandler(circle_MouseDown); circle[cirCount].MouseMove += new MouseEventHandler(circle_MouseMove); circle[cirCount].MouseUp += new MouseEventHandler(circle_MouseUp); rowCount++; circleCount++; cirCount++; } } objectivesCount++; } } Bitmap bmp = new Bitmap(panelChart.Width, panelChart.Height); panelChart.DrawToBitmap(bmp, new Rectangle(5, 5, panelChart.Width, panelChart.Height)); bmp.Save(Directory.GetCurrentDirectory() + @"/Charts/" + "BubbleChart.jpg", System.Drawing.Imaging.ImageFormat.Jpeg); }
private void HeatMapChart_Load(object sender, EventArgs e) { title.ResetText(); title.Hide(); linePacks.Hide(); for (int i = 0; i < domCount; i++) { if (domTitle[i] != null) domTitle[i].Hide(); if (rectangle[i] != null) rectangle[i].Hide(); for (int j = 0; j < capCount; j++) { if (capTitle[j] != null) capTitle[j].Hide(); } } Label legend = new Label(); legend.Parent = panelList; legend.Text = "Legend: "; legend.AutoSize = true; legend.Font = new Font("Arial", 14, FontStyle.Bold); legend.Location = new Point(5, 5); Label major = new Label(); major.Parent = panelList; major.Text = "Major Gap"; major.AutoSize = true; major.Font = new Font("Arial", 12, FontStyle.Bold); Label middle = new Label(); middle.Parent = panelList; middle.Text = "Gap"; middle.AutoSize = true; middle.Font = new Font("Arial", 12, FontStyle.Bold); Label small = new Label(); small.Parent = panelList; small.Text = "Small/No Gap"; small.AutoSize = true; small.Font = new Font("Arial", 12, FontStyle.Bold); Label notFocus = new Label(); notFocus.Parent = panelList; notFocus.Text = "Not Focus"; notFocus.AutoSize = true; notFocus.Font = new Font("Arial", 12, FontStyle.Bold); ShapeContainer canvas = new ShapeContainer(); canvas.Parent = panelList; RectangleShape recMajor = new RectangleShape(); recMajor.Parent = canvas; recMajor.FillColor = Color.Red; recMajor.FillStyle = FillStyle.Solid; recMajor.Size = new Size(20, 20); recMajor.Location = new Point(legend.Right + 20, 5); major.Location = new Point(recMajor.Right + 5, recMajor.Top); RectangleShape recMid = new RectangleShape(); recMid.Parent = canvas; recMid.FillColor = Color.Yellow; recMid.FillStyle = FillStyle.Solid; recMid.Size = new Size(20, 20); recMid.Location = new Point(major.Right + 20, 5); middle.Location = new Point(recMid.Right + 5, recMid.Top); RectangleShape recSmall = new RectangleShape(); recSmall.Parent = canvas; recSmall.FillColor = Color.GreenYellow; recSmall.FillStyle = FillStyle.Solid; recSmall.Size = new Size(20, 20); recSmall.Location = new Point(middle.Right + 20, 5); small.Location = new Point(recSmall.Right + 5, recSmall.Top); RectangleShape recNo = new RectangleShape(); recNo.Parent = canvas; recNo.FillColor = Color.White; recNo.FillStyle = FillStyle.Solid; recNo.Size = new Size(20, 20); recNo.Location = new Point(small.Right + 20, 5); notFocus.Location = new Point(recNo.Right + 5, recNo.Top); float[] gaps = new float[capabilities.Count]; System.Diagnostics.Trace.WriteLine("size: " + notFocus.Height.ToString()); title.Parent = panelChart; title.Text = capGapName; //"Capability Gap"; title.Font = new Font("Arial", 16, FontStyle.Bold); title.AutoSize = true; title.Location = new Point(panelChart.Width / 2 - title.Width / 2, 5); title.Show(); linePacks.Parent = panelChart; main.Parent = linePacks; main.BorderWidth = 2; main.X1 = title.Left; main.X2 = title.Right; main.Y1 = title.Bottom + 5; main.Y2 = title.Bottom + 5; linePacks.Show(); int counting = 0; int lastVal = 0; int locBoxY = 0; Size size = new Size(250, 20); for (int i = 0; i < domCount; i++) { domTitle[i] = new Label(); domTitle[i].Parent = panelChart; domTitle[i].AutoSize = true; domTitle[i].Text = domains[i]; domTitle[i].Font = new Font("Arial", 14, FontStyle.Bold); domTitle[i].ForeColor = Color.White; domTitle[i].BackColor = Color.DodgerBlue; // Color.FromArgb(70, 107, 176); ShapeContainer con = new ShapeContainer(); con.Parent = panelChart; rectangle[i] = new RectangleShape(); rectangle[i].Parent = con; rectangle[i].Enabled = false; rectangle[i].FillStyle = FillStyle.Solid; rectangle[i].FillColor = Color.DodgerBlue; //Color.FromArgb(70, 107, 176);// #466BB0; //Color.RoyalBlue; rectangle[i].FillGradientStyle = FillGradientStyle.Vertical; rectangle[i].FillGradientColor = Color.White; if (lastVal != 0) domTitle[i].Location = new Point(panelChart.Width / 2 - domTitle[i].Width / 2, 10 + rectangle[i-1].Bottom); else domTitle[i].Location = new Point(panelChart.Width / 2 - domTitle[i].Width / 2, title.Bottom + 20 + i * 10); // System.Diagnostics.Trace.WriteLine("per domain: " + capPerDom[i].ToString()); counting = capPerDom[i]; for (int j = 0; j < counting; j++) { capTitle[j+lastVal] = new Button(); //capTitle[j + lastVal] = new Label(); capTitle[j+lastVal].Parent = panelChart; capTitle[j + lastVal].Width = panelChart.Width / 2 - 20; capTitle[j + lastVal].Height = 25; capTitle[j + lastVal].AutoSize = true; capTitle[j+lastVal].Text = capabilities[j+lastVal]; capTitle[j+lastVal].Font = new Font("Arial", 12, FontStyle.Bold); capTitle[j + lastVal].Name = capabilities[j + lastVal]; nameOfDomain.Add(domains[i]); nameOfCap.Add(capabilities[j + lastVal]); capabilityGapType.Add(gapType[j + lastVal]); capabilityGap.Add(gap[j + lastVal]); if ((j % 2) == 1) capTitle[j+lastVal].Location = new Point(panelChart.Width - capTitle[j+lastVal].Width - 10, capTitle[j + lastVal - 1].Location.Y); else { if (j != 0) capTitle[j+lastVal].Location = new Point(10, capTitle[j + lastVal - 1].Bottom + 10); else capTitle[j+lastVal].Location = new Point(10, domTitle[i].Bottom + 10); } System.Diagnostics.Trace.WriteLine("gap: " + gap[j + lastVal].ToString()); if (gapType[j + lastVal] == "High") { capTitle[j + lastVal].BackColor = Color.OrangeRed; } else if (gapType[j + lastVal] == "Middle") { capTitle[j + lastVal].BackColor = Color.Yellow; } else if (gapType[j + lastVal] == "Low") { capTitle[j + lastVal].BackColor = Color.GreenYellow; } else { capTitle[j + lastVal].BackColor = Color.White; } capTitle[j + lastVal].BringToFront(); capTitle[j + lastVal].Click += new EventHandler(HeatMapChart_Click); } lastVal += counting; rectangle[i].Size = new Size(panelChart.Width - 10, capTitle[lastVal-1].Bottom + 15 - domTitle[i].Top); if (i == 0) rectangle[i].Location = new Point(5, title.Bottom + 10); else rectangle[i].Location = new Point(5, locBoxY); locBoxY = rectangle[i].Bottom; rectangle[i].SendToBack(); for (int num = 0; num < lastVal; num++) capTitle[num].BringToFront(); //panelChart.Refresh(); } }
private void InitializeComponent() { this._PanelAccounts = new Shellscape.UI.Controls.Preferences.PreferencesPanel(); this._LabelAccountIntro = new System.Windows.Forms.Label(); this._ButtonNewAccount = new System.Windows.Forms.Button(); this._PanelAppearance = new Shellscape.UI.Controls.Preferences.PreferencesPanel(); this._CheckToast = new System.Windows.Forms.CheckBox(); this._CheckTray = new System.Windows.Forms.CheckBox(); this._CheckFlash = new System.Windows.Forms.CheckBox(); this._LabelLanguage = new System.Windows.Forms.Label(); this._ComboLanguage = new System.Windows.Forms.ComboBox(); this.shapeContainer2 = new Microsoft.VisualBasic.PowerPacks.ShapeContainer(); this.lineShape2 = new Microsoft.VisualBasic.PowerPacks.LineShape(); this._PanelNewAccount = new GmailNotifierPlus.Controls.AccountPanel(); this._CheckUpdates = new System.Windows.Forms.CheckBox(); this._LabelSound = new System.Windows.Forms.Label(); this._LabelInterval = new System.Windows.Forms.Label(); this._LabelMinutes = new System.Windows.Forms.Label(); this._TextInterval = new Shellscape.UI.Controls.NumericTextBox(); this._ComboSound = new System.Windows.Forms.ComboBox(); this._ButtonBrowse = new System.Windows.Forms.Button(); this.lineShape1 = new Microsoft.VisualBasic.PowerPacks.LineShape(); this.shapeContainer1 = new Microsoft.VisualBasic.PowerPacks.ShapeContainer(); this.lineShape3 = new Microsoft.VisualBasic.PowerPacks.LineShape(); this._PanelGeneral.SuspendLayout(); this._PanelParent.SuspendLayout(); this._PanelAccounts.SuspendLayout(); this._PanelAppearance.SuspendLayout(); this.SuspendLayout(); // // _PanelGeneral // this._PanelGeneral.Controls.Add(this._ButtonBrowse); this._PanelGeneral.Controls.Add(this._ComboSound); this._PanelGeneral.Controls.Add(this._TextInterval); this._PanelGeneral.Controls.Add(this._LabelMinutes); this._PanelGeneral.Controls.Add(this._LabelInterval); this._PanelGeneral.Controls.Add(this._LabelSound); this._PanelGeneral.Controls.Add(this._CheckUpdates); this._PanelGeneral.Controls.Add(this.shapeContainer1); // // _PanelParent // this._PanelParent.Controls.Add(this._PanelAppearance); this._PanelParent.Controls.Add(this._PanelAccounts); this._PanelParent.Controls.Add(this._PanelNewAccount); this._PanelParent.Controls.SetChildIndex(this._PanelNewAccount, 0); this._PanelParent.Controls.SetChildIndex(this._PanelGeneral, 0); this._PanelParent.Controls.SetChildIndex(this._PanelAccounts, 0); this._PanelParent.Controls.SetChildIndex(this._PanelAppearance, 0); // // _PanelAccounts // this._PanelAccounts.BackColor = System.Drawing.Color.Transparent; this._PanelAccounts.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(119)))), ((int)(((byte)(119)))), ((int)(((byte)(119))))); this._PanelAccounts.ControlBackColor = System.Drawing.Color.White; this._PanelAccounts.Controls.Add(this._LabelAccountIntro); this._PanelAccounts.Controls.Add(this._ButtonNewAccount); this._PanelAccounts.Dock = System.Windows.Forms.DockStyle.Fill; this._PanelAccounts.DrawHeader = true; this._PanelAccounts.Font = new System.Drawing.Font("Segoe UI", 9F); this._PanelAccounts.HeaderColorFrom = System.Drawing.Color.FromArgb(((int)(((byte)(254)))), ((int)(((byte)(254)))), ((int)(((byte)(254))))); this._PanelAccounts.HeaderColorTo = System.Drawing.Color.FromArgb(((int)(((byte)(228)))), ((int)(((byte)(228)))), ((int)(((byte)(228))))); this._PanelAccounts.HeaderForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(100)))), ((int)(((byte)(100)))), ((int)(((byte)(100))))); this._PanelAccounts.HeaderHeight = 39; this._PanelAccounts.HeaderImage = null; this._PanelAccounts.HeaderPadding = new System.Windows.Forms.Padding(10, 5, 10, 5); this._PanelAccounts.HeaderText = "Manage your accounts"; this._PanelAccounts.Location = new System.Drawing.Point(12, 12); this._PanelAccounts.Margin = new System.Windows.Forms.Padding(12, 0, 0, 0); this._PanelAccounts.Name = "_PanelAccounts"; this._PanelAccounts.Padding = new System.Windows.Forms.Padding(10, 45, 10, 10); this._PanelAccounts.SeperatorColor = System.Drawing.Color.FromArgb(((int)(((byte)(200)))), ((int)(((byte)(200)))), ((int)(((byte)(200))))); this._PanelAccounts.Size = new System.Drawing.Size(500, 394); this._PanelAccounts.TabIndex = 3; // // _LabelAccountIntro // this._LabelAccountIntro.AutoSize = true; this._LabelAccountIntro.Location = new System.Drawing.Point(13, 45); this._LabelAccountIntro.MaximumSize = new System.Drawing.Size(450, 0); this._LabelAccountIntro.Name = "_LabelAccountIntro"; this._LabelAccountIntro.Size = new System.Drawing.Size(436, 30); this._LabelAccountIntro.TabIndex = 1; this._LabelAccountIntro.Text = "Click an account to the left to manage your individual accounts. Click the button" + " below to add a new account."; // // _ButtonNewAccount // this._ButtonNewAccount.AutoSize = true; this._ButtonNewAccount.Location = new System.Drawing.Point(292, 92); this._ButtonNewAccount.Name = "_ButtonNewAccount"; this._ButtonNewAccount.Size = new System.Drawing.Size(170, 30); this._ButtonNewAccount.TabIndex = 0; this._ButtonNewAccount.Text = "Add New Account"; this._ButtonNewAccount.UseVisualStyleBackColor = true; // // _PanelAppearance // this._PanelAppearance.BackColor = System.Drawing.Color.Transparent; this._PanelAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(119)))), ((int)(((byte)(119)))), ((int)(((byte)(119))))); this._PanelAppearance.ControlBackColor = System.Drawing.Color.White; this._PanelAppearance.Controls.Add(this._CheckToast); this._PanelAppearance.Controls.Add(this._CheckTray); this._PanelAppearance.Controls.Add(this._CheckFlash); this._PanelAppearance.Controls.Add(this._LabelLanguage); this._PanelAppearance.Controls.Add(this._ComboLanguage); this._PanelAppearance.Controls.Add(this.shapeContainer2); this._PanelAppearance.Dock = System.Windows.Forms.DockStyle.Fill; this._PanelAppearance.DrawHeader = true; this._PanelAppearance.Font = new System.Drawing.Font("Segoe UI", 9F); this._PanelAppearance.HeaderColorFrom = System.Drawing.Color.FromArgb(((int)(((byte)(254)))), ((int)(((byte)(254)))), ((int)(((byte)(254))))); this._PanelAppearance.HeaderColorTo = System.Drawing.Color.FromArgb(((int)(((byte)(228)))), ((int)(((byte)(228)))), ((int)(((byte)(228))))); this._PanelAppearance.HeaderForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(100)))), ((int)(((byte)(100)))), ((int)(((byte)(100))))); this._PanelAppearance.HeaderHeight = 39; this._PanelAppearance.HeaderImage = null; this._PanelAppearance.HeaderPadding = new System.Windows.Forms.Padding(10, 5, 10, 5); this._PanelAppearance.HeaderText = ""; this._PanelAppearance.Location = new System.Drawing.Point(12, 12); this._PanelAppearance.Margin = new System.Windows.Forms.Padding(12, 0, 0, 0); this._PanelAppearance.Name = "_PanelAppearance"; this._PanelAppearance.Padding = new System.Windows.Forms.Padding(10, 45, 10, 10); this._PanelAppearance.SeperatorColor = System.Drawing.Color.FromArgb(((int)(((byte)(200)))), ((int)(((byte)(200)))), ((int)(((byte)(200))))); this._PanelAppearance.Size = new System.Drawing.Size(500, 394); this._PanelAppearance.TabIndex = 4; // // _CheckToast // this._CheckToast.AutoSize = true; this._CheckToast.Location = new System.Drawing.Point(15, 141); this._CheckToast.Name = "_CheckToast"; this._CheckToast.Size = new System.Drawing.Size(231, 19); this._CheckToast.TabIndex = 3; this._CheckToast.Text = "Show Toast notifications for new Email"; this._CheckToast.UseVisualStyleBackColor = true; // // _CheckTray // this._CheckTray.AutoSize = true; this._CheckTray.Location = new System.Drawing.Point(15, 116); this._CheckTray.Name = "_CheckTray"; this._CheckTray.Size = new System.Drawing.Size(201, 19); this._CheckTray.TabIndex = 2; this._CheckTray.Text = "Show Email count in System Tray"; this._CheckTray.UseVisualStyleBackColor = true; // // _CheckFlash // this._CheckFlash.AutoSize = true; this._CheckFlash.Location = new System.Drawing.Point(15, 91); this._CheckFlash.Name = "_CheckFlash"; this._CheckFlash.Size = new System.Drawing.Size(172, 19); this._CheckFlash.TabIndex = 1; this._CheckFlash.Text = "Flash Taskbar for new Email"; this._CheckFlash.UseVisualStyleBackColor = true; // // _LabelLanguage // this._LabelLanguage.AutoSize = true; this._LabelLanguage.Location = new System.Drawing.Point(11, 51); this._LabelLanguage.Name = "_LabelLanguage"; this._LabelLanguage.Size = new System.Drawing.Size(100, 15); this._LabelLanguage.TabIndex = 48; this._LabelLanguage.Text = "Display language:"; // // _ComboLanguage // this._ComboLanguage.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this._ComboLanguage.FlatStyle = System.Windows.Forms.FlatStyle.System; this._ComboLanguage.FormattingEnabled = true; this._ComboLanguage.Location = new System.Drawing.Point(117, 48); this._ComboLanguage.Name = "_ComboLanguage"; this._ComboLanguage.Size = new System.Drawing.Size(134, 23); this._ComboLanguage.TabIndex = 0; // // shapeContainer2 // this.shapeContainer2.Location = new System.Drawing.Point(10, 45); this.shapeContainer2.Margin = new System.Windows.Forms.Padding(0); this.shapeContainer2.Name = "shapeContainer2"; this.shapeContainer2.Shapes.AddRange(new Microsoft.VisualBasic.PowerPacks.Shape[] { this.lineShape2}); this.shapeContainer2.Size = new System.Drawing.Size(480, 339); this.shapeContainer2.TabIndex = 50; this.shapeContainer2.TabStop = false; // // lineShape2 // this.lineShape2.BorderColor = System.Drawing.Color.Red; this.lineShape2.Name = "lineShape2"; this.lineShape2.X1 = -6; this.lineShape2.X2 = 294; this.lineShape2.Y1 = 35; this.lineShape2.Y2 = 35; // // _PanelNewAccount // this._PanelNewAccount.Account = null; this._PanelNewAccount.BackColor = System.Drawing.Color.Transparent; this._PanelNewAccount.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(119)))), ((int)(((byte)(119)))), ((int)(((byte)(119))))); this._PanelNewAccount.ControlBackColor = System.Drawing.Color.White; this._PanelNewAccount.Dock = System.Windows.Forms.DockStyle.Fill; this._PanelNewAccount.DrawHeader = true; this._PanelNewAccount.Font = new System.Drawing.Font("Segoe UI", 9F); this._PanelNewAccount.HeaderColorFrom = System.Drawing.Color.FromArgb(((int)(((byte)(254)))), ((int)(((byte)(254)))), ((int)(((byte)(254))))); this._PanelNewAccount.HeaderColorTo = System.Drawing.Color.FromArgb(((int)(((byte)(228)))), ((int)(((byte)(228)))), ((int)(((byte)(228))))); this._PanelNewAccount.HeaderForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(100)))), ((int)(((byte)(100)))), ((int)(((byte)(100))))); this._PanelNewAccount.HeaderHeight = 39; this._PanelNewAccount.HeaderImage = null; this._PanelNewAccount.HeaderPadding = new System.Windows.Forms.Padding(10, 5, 10, 5); this._PanelNewAccount.HeaderText = "Add a New Account"; this._PanelNewAccount.Location = new System.Drawing.Point(12, 12); this._PanelNewAccount.Margin = new System.Windows.Forms.Padding(12, 0, 0, 0); this._PanelNewAccount.Name = "_PanelNewAccount"; this._PanelNewAccount.Padding = new System.Windows.Forms.Padding(2, 45, 2, 2); this._PanelNewAccount.SeperatorColor = System.Drawing.Color.FromArgb(((int)(((byte)(200)))), ((int)(((byte)(200)))), ((int)(((byte)(200))))); this._PanelNewAccount.Size = new System.Drawing.Size(500, 394); this._PanelNewAccount.TabIndex = 5; // // _CheckUpdates // this._CheckUpdates.AutoSize = true; this._CheckUpdates.Location = new System.Drawing.Point(12, 165); this._CheckUpdates.Name = "_CheckUpdates"; this._CheckUpdates.Size = new System.Drawing.Size(123, 19); this._CheckUpdates.TabIndex = 51; this._CheckUpdates.Text = "Check for Updates"; this._CheckUpdates.UseVisualStyleBackColor = true; // // _LabelSound // this._LabelSound.AutoSize = true; this._LabelSound.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this._LabelSound.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(51)))), ((int)(((byte)(153))))); this._LabelSound.Location = new System.Drawing.Point(8, 48); this._LabelSound.Name = "_LabelSound"; this._LabelSound.Size = new System.Drawing.Size(39, 21); this._LabelSound.TabIndex = 52; this._LabelSound.Text = "Title"; // // _LabelInterval // this._LabelInterval.AutoSize = true; this._LabelInterval.Location = new System.Drawing.Point(12, 123); this._LabelInterval.Name = "_LabelInterval"; this._LabelInterval.Size = new System.Drawing.Size(106, 15); this._LabelInterval.TabIndex = 53; this._LabelInterval.Text = "Check Email every:"; // // _LabelMinutes // this._LabelMinutes.AutoSize = true; this._LabelMinutes.Location = new System.Drawing.Point(157, 123); this._LabelMinutes.Name = "_LabelMinutes"; this._LabelMinutes.Size = new System.Drawing.Size(58, 15); this._LabelMinutes.TabIndex = 54; this._LabelMinutes.Text = "minute(s)"; // // _TextInterval // this._TextInterval.AllowNegativeValues = true; this._TextInterval.Location = new System.Drawing.Point(124, 122); this._TextInterval.Name = "_TextInterval"; this._TextInterval.Size = new System.Drawing.Size(27, 23); this._TextInterval.TabIndex = 55; this._TextInterval.Text = "1"; this._TextInterval.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; // // _ComboSound // this._ComboSound.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this._ComboSound.FlatStyle = System.Windows.Forms.FlatStyle.System; this._ComboSound.FormattingEnabled = true; this._ComboSound.Location = new System.Drawing.Point(12, 80); this._ComboSound.Name = "_ComboSound"; this._ComboSound.Size = new System.Drawing.Size(164, 23); this._ComboSound.TabIndex = 56; // // _ButtonBrowse // this._ButtonBrowse.AutoSize = true; this._ButtonBrowse.Enabled = false; this._ButtonBrowse.FlatStyle = System.Windows.Forms.FlatStyle.System; this._ButtonBrowse.Location = new System.Drawing.Point(182, 79); this._ButtonBrowse.MinimumSize = new System.Drawing.Size(65, 23); this._ButtonBrowse.Name = "_ButtonBrowse"; this._ButtonBrowse.Size = new System.Drawing.Size(68, 26); this._ButtonBrowse.TabIndex = 57; this._ButtonBrowse.Text = "Browse..."; this._ButtonBrowse.UseVisualStyleBackColor = true; // // lineShape1 // this.lineShape1.BorderColor = System.Drawing.Color.Red; this.lineShape1.Name = "lineShape1"; this.lineShape1.X1 = -3; this.lineShape1.X2 = 297; this.lineShape1.Y1 = 67; this.lineShape1.Y2 = 67; // // shapeContainer1 // this.shapeContainer1.Location = new System.Drawing.Point(10, 45); this.shapeContainer1.Margin = new System.Windows.Forms.Padding(0); this.shapeContainer1.Name = "shapeContainer1"; this.shapeContainer1.Shapes.AddRange(new Microsoft.VisualBasic.PowerPacks.Shape[] { this.lineShape3, this.lineShape1}); this.shapeContainer1.Size = new System.Drawing.Size(480, 339); this.shapeContainer1.TabIndex = 58; this.shapeContainer1.TabStop = false; // // lineShape3 // this.lineShape3.BorderColor = System.Drawing.Color.Red; this.lineShape3.Name = "lineShape3"; this.lineShape3.X1 = 1; this.lineShape3.X2 = 301; this.lineShape3.Y1 = 109; this.lineShape3.Y2 = 109; // // Preferences // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.ClientSize = new System.Drawing.Size(724, 412); this.Name = "Preferences"; this._PanelGeneral.ResumeLayout(false); this._PanelGeneral.PerformLayout(); this._PanelParent.ResumeLayout(false); this._PanelAccounts.ResumeLayout(false); this._PanelAccounts.PerformLayout(); this._PanelAppearance.ResumeLayout(false); this._PanelAppearance.PerformLayout(); this.ResumeLayout(false); }
public MainForm() { InitializeComponent(); shapeContainer_allCityShape = new ShapeContainer(); // // shapeContainer_allCityShape // shapeContainer_allCityShape.Location = new Point(0, 0); shapeContainer_allCityShape.Margin = new Padding(0); shapeContainer_allCityShape.Size = new Size(this.Width, this.Height); //800, 600); shapeContainer_allCityShape.TabIndex = 0; shapeContainer_allCityShape.TabStop = false; this.Controls.Add(shapeContainer_allCityShape); // // Make up some data points from the Sine function _pPlistTfg = new PointPairList[2]; // [0] for Series GA and [1] for PGA (Time-Fitness) data _pPlistTfg[0] = new PointPairList(); // For Series GA (Time-Fitness) Data's _pPlistTfg[1] = new PointPairList(); // For Parallel GA (Time-Fitness) Data's _pPlistTgg = new PointPairList[2]; // [0] for Series GA and [1] for PGA (Time-Fitness) data _pPlistTgg[0] = new PointPairList(); // For Series GA (Time-Fitness) Data's _pPlistTgg[1] = new PointPairList(); // For Parallel GA (Time-Fitness) Data's _pPlistGfg = new PointPairList[2]; // [0] for Series GA and [1] for PGA (Time-Fitness) data _pPlistGfg[0] = new PointPairList(); // For Series GA (Time-Fitness) Data's _pPlistGfg[1] = new PointPairList(); // For Parallel GA (Time-Fitness) Data's }