public GradientDialog()
        {
            InitializeComponent();

            _dlgColor = new GoodColorDialog();
            _gradBrush = new LinearGradientBrush(new Rectangle(0, 0, pnlPreview.ClientRectangle.Width, pnlPreview.ClientRectangle.Height), Color.White, Color.Black, LinearGradientMode.Horizontal);
        }
示例#2
0
 public VertexEditor()
 {
     InitializeComponent();
     //uvIndex.SelectedIndex = 0;
     colorIndex.SelectedIndex = 0;
     _dlgColor = new GoodColorDialog();
 }
示例#3
0
        public GradientDialog()
        {
            InitializeComponent();

            _dlgColor  = new GoodColorDialog();
            _gradBrush = new LinearGradientBrush(new Rectangle(0, 0, pnlPreview.ClientRectangle.Width, pnlPreview.ClientRectangle.Height), Color.White, Color.Black, LinearGradientMode.Horizontal);
        }
 public VertexEditor()
 {
     InitializeComponent();
     //uvIndex.SelectedIndex = 0;
     colorIndex.SelectedIndex = 0;
     _dlgColor = new GoodColorDialog();
 }
        public GradientDialog2()
        {
            InitializeComponent();

            this.MouseLeftButtonDown += new MouseButtonEventHandler(Control_MouseLeftButtonDown);
            this.MouseLeftButtonUp += new MouseButtonEventHandler(Control_MouseLeftButtonUp);
            this.MouseMove += new MouseEventHandler(Control_MouseMove);

            _dlgColor = new GoodColorDialog();
            _gradBrush = new LinearGradientBrush(new Rectangle(0, 0, pnlPreview.ClientRectangle.Width, pnlPreview.ClientRectangle.Height), Color.White, Color.Black, LinearGradientMode.Horizontal);
        }
        public GradientDialog2()
        {
            InitializeComponent();

            this.MouseLeftButtonDown += new MouseButtonEventHandler(Control_MouseLeftButtonDown);
            this.MouseLeftButtonUp   += new MouseButtonEventHandler(Control_MouseLeftButtonUp);
            this.MouseMove           += new MouseEventHandler(Control_MouseMove);

            _dlgColor  = new GoodColorDialog();
            _gradBrush = new LinearGradientBrush(new Rectangle(0, 0, pnlPreview.ClientRectangle.Width, pnlPreview.ClientRectangle.Height), Color.White, Color.Black, LinearGradientMode.Horizontal);
        }
示例#7
0
 public CLRControl()
 {
     InitializeComponent();
     _dlgColor    = new GoodColorDialog();
     _dlgGradient = new GradientDialog();
 }
 public CLRControl()
 {
     InitializeComponent();
     _dlgColor = new GoodColorDialog();
     _dlgGradient = new GradientDialog();
 }
 public AttributeGrid()
 {
     InitializeComponent();
     _dlgColor = new GoodColorDialog();
 }
        public ModelViewerSettingsDialog()
        {
            InitializeComponent();
            _dlgColor = new GoodColorDialog();
            maxUndoCount._integral = true;
            _boxes[0] = ax;
            _boxes[1] = ay;
            _boxes[2] = az;
            _boxes[3] = ex;
            _boxes[4] = radius;
            _boxes[5] = azimuth;
            _boxes[6] = elevation;
            _boxes[7] = dx;
            _boxes[8] = dy;
            _boxes[9] = dz;
            _boxes[10] = ey;
            _boxes[11] = sx;
            _boxes[12] = sy;
            _boxes[13] = sz;
            _boxes[14] = ez;
            _boxes[15] = tScale;
            _boxes[16] = rScale;
            _boxes[17] = zScale;
            _boxes[18] = yFov;
            _boxes[19] = nearZ;
            _boxes[20] = farZ;
            _boxes[21] = maxUndoCount;

            for (int i = 0; i < 15; i++)
                if (i < 4 || i > 6)
                {
                    _boxes[i]._maxValue = 255;
                    _boxes[i]._minValue = 0;
                }
        }