示例#1
0
        public ColorDialog(Color c)
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            cdSlider.ColorChanged += new winmaped2.ColorDlgSlider.CEvent(cdSlider_ColorChanged);
            cdPicker.ColorChanged += new winmaped2.ColorDlgPicker.CEvent(cdPicker_ColorChanged);
            colorInfo = new ColorInfo();
            //			colorInfo.ColorChanged += new winmaped2.ColorInfo.CEvent(colorInfo_ColorChanged);
            colorDisplay.SetController(colorInfo);
            cdPicker.SetDisplayTarget(colorDisplay);
            cdPicker.SetDlg(this);
            SelectedColor = c;
        }
示例#2
0
        public ColorDialog(Color c)
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();



            cdSlider.ColorChanged += new winmaped2.ColorDlgSlider.CEvent(cdSlider_ColorChanged);
            cdPicker.ColorChanged += new winmaped2.ColorDlgPicker.CEvent(cdPicker_ColorChanged);
            colorInfo              = new ColorInfo();
//			colorInfo.ColorChanged += new winmaped2.ColorInfo.CEvent(colorInfo_ColorChanged);
            colorDisplay.SetController(colorInfo);
            cdPicker.SetDisplayTarget(colorDisplay);
            cdPicker.SetDlg(this);
            SelectedColor = c;
        }
示例#3
0
 public void SetController(ColorInfo ci)
 {
     controller = ci;
     ci.ColorChanged += new ColorInfo.CEvent(ColorChanged);
 }
示例#4
0
 public void SetController(ColorInfo ci)
 {
     controller       = ci;
     ci.ColorChanged += new ColorInfo.CEvent(ColorChanged);
 }