Beispiel #1
0
        public TCSettings()
        {
            Scale          = new ScaleProp();
            FaceColorList2 = new ColorProp();

            /*FaceColorList2.colorList = new List<Color>{
             *  Color.FromArgb(255,0,0),
             *  Color.FromArgb(126,0,0),
             *  Color.FromArgb(0,126,0),
             *  Color.FromArgb(0,255,0),
             *  Color.FromArgb(0,0,125),
             *  Color.FromArgb(0,0,255)
             * };*/
            FaceColorList2.colorList = ColorizeBase.genColorList(colorCount);
            ContourFont = new Font(FontFamily.GenericSerif, 11);
        }
 private void btnAutoGen_Click(object sender, EventArgs e)
 {
     this.CP.colorList = ColorizeBase.genColorList((int)(updown.Value));
 }