Make(cnet) ver(4.04 build 185) Add(EntryPoint,10395694,175,105) { BackColor=-16777200 KeyPreview=0 Point(onPaint) Point(doBackColor) link(onPaint,1397922:doDisplayKnownColors,[]) } Add(Inline,1397922,217,112) { WorkPoints=#20:doDisplayKnownColors| Code="private void doWork(PaintEventArgs e, int indx) {\r\n this.Size = new Size(680, 550);\r\n\r\n // Get all the values from the KnownColor enumeration.\r\n System.Array colorsArray = Enum.GetValues(typeof(KnownColor));\r\n KnownColor[] allColors = new KnownColor[colorsArray.Length];\r\n\r\n Array.Copy(colorsArray, allColors, colorsArray.Length);\r\n\r\n // Loop through printing out the values' names in the colors \r\n // they represent.\r\n float y = 10.0F;\r\n float x = 10.0F;\r\n\r\n for(int i = 0; i < allColors.Length; i++)\r\n {\r\n\r\n // If x is a multiple of 30, start a new column.\r\n if (i > 0 && i % 30 == 0)\r\n {\r\n x += 105.0F;\r\n y = 25.0F;\r\n }\r\n else\r\n {\r\n // Otherwise, increment y by 15.\r\n y += 15.0F;\r\n }\r\n\r\n // Create a custom brush from the color and use it to draw\r\n // the brush's name.\r\n SolidBrush aBrush = \r\n new SolidBrush(Color.FromName(allColors[i].ToString()));\r\n e.Graphics.DrawString(allColors[i].ToString(), \r\n this.Font, aBrush, x, y);\r\n\r\n // Dispose of the custom brush.\r\n aBrush.Dispose();\r\n }\r\n}\r\n" } Add(Button,3054687,49,105) { Width=65 Height=20 Dock=1 BackColor=16777215 ForeColor=255 Text="Change Back Color" Point(onClick) link(onClick,9421109:doCompare,[]) } Add(If_else,9421109,91,105) { link(onTrue,6561715:doData,[]) link(Op1,198018:ShowDialog,[(97,93)(90,93)]) link(Op2,9338171:DialogResult,[(104,81)(139,81)]) } Add(DialogResult,9338171,133,42) { } Add(DoData,6561715,133,105) { link(onEventData,10395694:doBackColor,[]) link(Data,198018:Color,[(139,89)(97,89)]) } Add(ColorDialog,198018,84,42) { CustomColors=[] }