コード例 #1
0
        private void ColorBook_ColorChanged()
        {
            customColorIcon  = new ColorIcon(area.ActualPage.PencilColor);
            currentColorIcon = customColorIcon;

            colorPanel.Icon = currentColorIcon.Icon;
        }
コード例 #2
0
        private void rubberMenuItem_Click(object sender, EventArgs e)
        {
            customColorIcon  = new ColorIcon(Color.White);
            currentColorIcon = customColorIcon;
            colorPanel.Icon  = Resource.RubberIcon;

            area.ActualPage.PencilColor = currentColorIcon.Color;
        }
コード例 #3
0
 public ColorMenuItem(String text, ColorIcon color_icon, EventHandler e)
     : base()
 {
     Text      = text;
     _colrIcon = color_icon;
     Image     = _colrIcon.Bitmap;
     Click    += e;
 }
コード例 #4
0
        public ColorBarButton(ColorIcon color_icon, EventHandler e)
            : base()
        {
            _colrIcon = color_icon;
            Image     = _colrIcon.Bitmap;
            Click    += e;

            ToolTipText = "#" + String.Format("{0:X2}{1:X2}{2:X2}",
                                              _colrIcon.Color.R, _colrIcon.Color.G, _colrIcon.Color.B);
        }
コード例 #5
0
        private void customColorMenuItem_Click(object sender, EventArgs e)
        {
            if (colorDialog.ShowDialog() == DialogResult.OK)
            {
                customColorIcon  = new ColorIcon(colorDialog.Color);
                currentColorIcon = customColorIcon;
                colorPanel.Icon  = currentColorIcon.Icon;
            }

            area.ActualPage.PencilColor = currentColorIcon.Color;
        }