예제 #1
0
    	protected override void OnClick(EventArgs e)
    	{
    		base.OnClick(e);
    		
    		Point p = new Point(0, Height);
    		p = PointToScreen(p);
			
			using (ColorPaletteDialog clDlg = new ColorPaletteDialog(p.X, p.Y)) {
		    	clDlg.ShowDialog(ICSharpCode.SharpDevelop.Gui.WorkbenchSingleton.MainForm);    	 
				if (clDlg.DialogResult == DialogResult.OK) {
		    		CenterColor = clDlg.Color;
				}
			}
	    		
    	}  	    
예제 #2
0
        protected override void OnClick(EventArgs e)
        {
            base.OnClick(e);

            Point p = new Point(0, Height);

            p = PointToScreen(p);

            using (ColorPaletteDialog clDlg = new ColorPaletteDialog(p.X, p.Y)) {
                clDlg.ShowDialog(ICSharpCode.SharpDevelop.Gui.WorkbenchSingleton.MainForm);
                if (clDlg.DialogResult == DialogResult.OK)
                {
                    CenterColor = clDlg.Color;
                }
            }
        }