Ejemplo n.º 1
0
        private Timer autoSlideTimer;       //for automatic sliding

        public SlideToButton(CCToolbar ccToolbar, string buttonName,
                             string horizIconPath, string horizGrayIconPath,
                             string vertIconPath, string vertGrayIconPath
                             ) : base(ccToolbar, buttonName)
        {
            //initialize button image
            this.horizIconPath     = horizIconPath;
            this.horizGrayIconPath = horizGrayIconPath;
            this.vertIconPath      = vertIconPath;
            this.vertGrayIconPath  = vertGrayIconPath;
            UpdateImage();

            //slide buttons on each click
            if (true == isSlideOnClick)
            {
                this.Click += new EventHandler(SlideToolbarButtons);
            }
            //slide buttons automatically as long as mouse is on button
            else
            {
                //initialize timer, interval is set on click
                autoSlideTimer         = new Timer();
                autoSlideTimer.Tick   += new EventHandler(SlideToolbarButtons);
                autoSlideTimer.Enabled = false;

                this.Click      += new EventHandler(OnClick_ActivateSliding);
                this.MouseLeave += new EventHandler(OnMouseLeave_StopSliding);
            }
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Construct the New Size button on the toolbar.
        /// </summary>
        /// <param name="ccToolbar"></param>
        /// ref icon: http://www.openclipart.org/detail/32137
        public NewCCButton(CCToolbar ccToolbar) : base(ccToolbar, "New", "Icons/new.png")
        {
            //create the new size buttons and add them to the toolbar
            newSizeButtonList = new List <CCButton>();

            NewSizeCCButton newSizeFromClipboard = new NewSizeCCButton(this.ccToolbar, true);

            newSizeButtonList.Add(newSizeFromClipboard);

            NewSizeCCButton newSize100x100 = new NewSizeCCButton(this.ccToolbar, 100, 100);

            newSizeButtonList.Add(newSize100x100);

            NewSizeCCButton newSize300x300 = new NewSizeCCButton(this.ccToolbar, 300, 300);

            newSizeButtonList.Add(newSize300x300);

            NewSizeCCButton newSize600x600 = new NewSizeCCButton(this.ccToolbar, 600, 600);

            newSizeButtonList.Add(newSize600x600);

            NewSizeCCButton newSize800x800 = new NewSizeCCButton(this.ccToolbar, 800, 800);

            newSizeButtonList.Add(newSize800x800);
        }
Ejemplo n.º 3
0
        public EffectsCCButton(CCToolbar ccToolbar)
            : base(ccToolbar, "&Effects", "Icons/Effects.png")
        {
            effectsToolbarButtons = new List <CCButton>();

            effectsToolbarButtons.Add(ccToolbar.UndoButton);
            effectsToolbarButtons.Add(ccToolbar.RedoButton);

            //TODO change these to use ChoiceForm's instead
            BrightnessCCButton brightnessBtn = new BrightnessCCButton(this.ccToolbar);

            effectsToolbarButtons.Add(brightnessBtn);

            ContrastCCButton contrastBtn = new ContrastCCButton(this.ccToolbar);

            effectsToolbarButtons.Add(contrastBtn);

            CCButton invertColorsBtn = new CCButton(this.ccToolbar, "Invert Colors", "Icons/InvertColors.png");

            invertColorsBtn.Click += new EventHandler(invertColorsBtn_Click);
            effectsToolbarButtons.Add(invertColorsBtn);

            CCButton grayscaleBtn = new CCButton(this.ccToolbar, "Grayscale", "Icons/Grayscale.png");

            grayscaleBtn.Click += new EventHandler(grayscaleBtn_Click);
            effectsToolbarButtons.Add(grayscaleBtn);
        }
Ejemplo n.º 4
0
 public UndoCCButton(CCToolbar ccToolbar)
     : base(ccToolbar, "&Undo", "Icons/undo.png", "Icons/undoGray.png")
 {
     //in beginning, no undos exist yet
     //TODO fix
     this.Disable();
 }
Ejemplo n.º 5
0
        public SettingsCCButton(CCToolbar ccToolbar)
            : base(ccToolbar, "&Settings", "Icons/Settings.png")
        {
            settingsToolbarButtons = new List <CCButton>();

            CCButton toolbarPlacementBtn = new CCButton(ccToolbar, "Toolbar Placement", "Icons/ToolbarPlacement.png");

            toolbarPlacementBtn.actionEvent += new actionEventHandler(toolbarPlacementBtn_actionEvent);
            settingsToolbarButtons.Add(toolbarPlacementBtn);

            CCButton buttonSizeBtn = new CCButton(ccToolbar, "Button Size", "Icons/ButtonSize.png");

            buttonSizeBtn.actionEvent += new actionEventHandler(buttonSizeBtn_actionEvent);
            settingsToolbarButtons.Add(buttonSizeBtn);

            CCButton slideSpeedBtn = new CCButton(ccToolbar, "Sliding Speed", "Icons/SlidingSpeed.png");

            slideSpeedBtn.actionEvent += new actionEventHandler(slideSpeedBtn_actionEvent);
            settingsToolbarButtons.Add(slideSpeedBtn);

            CCButton welcomeBtn = new CCButton(ccToolbar, "Play Games", "Icons/PlayGames.png");

            welcomeBtn.actionEvent += new actionEventHandler(welcomeBtn_actionEvent);
            settingsToolbarButtons.Add(welcomeBtn);

            //TODO delete/uncomment
            //hiding before the Pathways visit
            //CCButton movementPanelBtn = new CCButton(ccToolbar, "Movement Panel");
            //movementPanelBtn.actionEvent += new actionEventHandler(movementPanelBtn_actionEvent);
            //settingsToolbarButtons.Add(movementPanelBtn);
        }
Ejemplo n.º 6
0
 /// <summary>
 /// Defines a button representing a folder.
 /// </summary>
 /// <param name="ccToolbar"></param>
 public FolderCCButton(CCToolbar ccToolbar, string text, string directory)
     : base(ccToolbar, text, directory)
 {
     directoryBtnList = new List <CCButton>();
     this.directory   = directory;
     this.Click      += new EventHandler(FolderCCButton_Click);
 }
        public ButtonSizeChoiceForm(CCToolbar ccToolbar)
            : base(ccToolbar, 2)
        {
            //formTableLayout.ColumnCount = 3;

            this.topPanel              = new TableLayoutPanel();//new Panel();
            topPanel.RowCount          = 1;
            topPanel.ColumnCount       = 3;
            this.topPanel.AutoSize     = true;
            this.topPanel.AutoSizeMode = AutoSizeMode.GrowAndShrink;
            this.formTableLayout.Controls.Add(this.topPanel, 0, 0);
            this.topPanel.Controls.Add(this.label, 0, 0);

            textBox = new TextBox();
            int size = Math.Min(ccToolbar.ButtonWidth, ccToolbar.ButtonHeight);

            textBox.Text = size.ToString();
            topPanel.Controls.Add(textBox, 1, 0);
            textBox.Left = label.Width;

            updateButton           = new Button();
            updateButton.Text      = "Update";
            updateButton.BackColor = System.Drawing.Color.White;
            updateButton.Click    += new EventHandler(updateButton_Click);
            topPanel.Controls.Add(updateButton, 2, 0);

            this.label.Text    = "Button Size: " + ccToolbar.ButtonWidth + " by " + ccToolbar.ButtonHeight;
            this.leftBtn.Text  = "Smaller";
            this.rightBtn.Text = "Larger";

            leftBtn.actionEvent  += new CCButton.actionEventHandler(leftBtn_actionEvent);
            rightBtn.actionEvent += new CCButton.actionEventHandler(rightBtn_actionEvent);
        }
Ejemplo n.º 8
0
 public PrevCCButton(CCToolbar ccToolbar)
     : base(ccToolbar,
            "&Previous",
            "Icons/PrevLeft.png",
            "Icons/PrevLeftGray.png",
            "Icons/PrevUp.png",
            "Icons/PrevUpGray.png")
 {
 }
Ejemplo n.º 9
0
        List <CCButton> pencilToolbarButtons; //list of buttons in subtoolbar

        public PencilCCButton(CCToolbar toolbar)
            : base(toolbar, "Pencil", "Icons/pencil.png")
        {
            pencilToolbarButtons = new List <CCButton>();

            ColorCCButton colorCCBtn = new ColorCCButton(toolbar);

            pencilToolbarButtons.Add(colorCCBtn);
        }
Ejemplo n.º 10
0
 public NextCCButton(CCToolbar ccToolbar)
     : base(ccToolbar,
            "&Next",
            "Icons/NextRight.png",
            "Icons/NextRightGray.png",
            "Icons/NextDown.png",
            "Icons/NextDownGray.png")
 {
 }
Ejemplo n.º 11
0
            public ShadeCCButton(CCToolbar ccToolbar, Color color)
                : base(ccToolbar)
            {
                this.color     = color;
                this.BackColor = color;

                //since the backcolor of these buttons represents their color values
                //do not change the backcolor on mouse events
                this.FlatAppearance.MouseOverBackColor = this.BackColor;
                this.FlatAppearance.MouseDownBackColor = this.BackColor;
            }
        public SlidingSpeedChoiceForm(CCToolbar ccToolbar)
            : base(ccToolbar, 2)
        {
            label.Text    = "Speed: Slide every " + 0.001 * ccToolbar.AutoSlideInterval + " seconds";
            leftBtn.Text  = "Slower";
            rightBtn.Text = "Faster";

            leftBtn.actionEvent  += new CCButton.actionEventHandler(leftBtn_actionEvent);
            rightBtn.actionEvent += new CCButton.actionEventHandler(rightBtn_actionEvent);
            this.SetBottomButtonToClose();
        }
Ejemplo n.º 13
0
        public AboutForm(CCToolbar ccToolbar)
        {
            InitializeComponent();

            Toolbar.Config.CloseCCButton closeBtn = new CameraCanvas.Toolbar.Config.CloseCCButton(ccToolbar, this);
            closeBtn.Size   = new Size(ccToolbar.ButtonWidth, ccToolbar.ButtonHeight);
            closeBtn.Anchor = AnchorStyles.None; //center the button vertically
            this.tableLayoutPanel.Controls.Add(closeBtn, 0, 1);

            txtBoxVersion.Text = Application.ProductVersion;
        }
Ejemplo n.º 14
0
            /// <summary>
            /// Construct a new image from the image on the system clipboard.
            /// </summary>
            /// <param name="ccToolbar"></param>
            /// <param name="isNewFromClipboard"></param>
            public NewSizeCCButton(CCToolbar ccToolbar, bool isNewFromClipboard)
                : base(ccToolbar)
            {
                this.isNewFromClipboard = isNewFromClipboard;

                //string iconPath = "Icons/new_clip.png";
                //if (File.Exists(iconPath))
                //{
                //    this.BackgroundImage = System.Drawing.Image.FromFile(iconPath);
                //}

                SetTextAndTooltip("From Clipboard");
            }
Ejemplo n.º 15
0
        public LineThicknessChoiceForm(CCToolbar ccToolbar)
            : base(ccToolbar, 2, true, false)
        {
            this.label.Text    = "Line Thickness: " + ccToolbar.CCMainForm.LineThickness;
            this.leftBtn.Text  = "Less";
            this.rightBtn.Text = "More";

            leftBtn.Click  += new EventHandler(button1_Click);
            rightBtn.Click += new EventHandler(button2_Click);

            //initialize preview image and draw for first time
            previewImage = new Bitmap(previewPanel.Width, previewPanel.Height);
            DrawPreview();
        }
Ejemplo n.º 16
0
 public DriveListCCButton(CCToolbar ccToolbar)
     : base(ccToolbar, "Up One Level")
 {
     drives = new List <CCButton>();
     foreach (string drive in Directory.GetLogicalDrives())
     {
         DirectoryInfo driveDirInfo = new DirectoryInfo(drive);
         if (driveDirInfo.Exists)
         {
             drives.Add(new FolderCCButton(ccToolbar, driveDirInfo.Name, driveDirInfo.FullName));
         }
     }
     this.Click += new EventHandler(DriveCCBtn_Click);
 }
Ejemplo n.º 17
0
        public TextCCButton(CCToolbar ccToolbar)
            : base(ccToolbar, "Text", "Icons/Text.png")
        {
            //using Rick Hoyt spelling method
            letterRanges = new List <CCButton>();
            letterRanges.Add(new LetterRangeCCButton(ccToolbar, "ABCD"));
            letterRanges.Add(new LetterRangeCCButton(ccToolbar, "EFGH"));
            letterRanges.Add(new LetterRangeCCButton(ccToolbar, "IJKLMN"));
            letterRanges.Add(new LetterRangeCCButton(ccToolbar, "OPQRST"));
            letterRanges.Add(new LetterRangeCCButton(ccToolbar, "UVWXYZ"));
            letterRanges.Add(new LetterRangeCCButton(ccToolbar, "1234567890"));

            this.Click += new EventHandler(TextCCButton_Click);
        }
Ejemplo n.º 18
0
            private int numColors = 9; //TODO refactor

            public PrimaryColorCCButton(CCToolbar ccToolbar, Color color)
                : base(ccToolbar)
            {
                this.color     = color;
                this.BackColor = color;

                //since the backcolor of these buttons represents their color values
                //do not change the backcolor on mouse events
                this.FlatAppearance.MouseOverBackColor = this.BackColor;
                this.FlatAppearance.MouseDownBackColor = this.BackColor;


                shadeColors    = new Color[numColors];
                shadeColorBtns = new List <CCButton>();
            }
Ejemplo n.º 19
0
        public ColorCCButton(CCToolbar toolbar)
            : base(toolbar, "Color", "Icons/Color.png")
        {
            buttonList = new List <CCButton>();

            primaryColors = new Color[]
            {
                Color.Black, Color.White, Color.Brown, Color.Red, Color.Orange,
                Color.Yellow, Color.Green, Color.Blue, Color.Purple
            };

            foreach (Color color in primaryColors)
            {
                PrimaryColorCCButton shadeBtn = new PrimaryColorCCButton(ccToolbar, color);
                buttonList.Add(shadeBtn);
            }
        }
Ejemplo n.º 20
0
        /// <summary>
        /// Construct an Exit button on the toolbar.
        /// </summary>
        /// <param name="ccToolbar"></param>
        /// ref icon: http://www.openclipart.org/detail/20476
        public ExitCCButton(CCToolbar ccToolbar)
            : base(ccToolbar, "Exit", "Icons/exit.png")
        {
            exitOptionsButtons = new List <CCButton>();

            //Save and Exit
            ExitOptionsCCButton saveAndExitBtn
                = new ExitOptionsCCButton(this.ccToolbar, "Save and Exit", true);

            exitOptionsButtons.Add(saveAndExitBtn);

            //Exit without Saving
            ExitOptionsCCButton exitWithoutSavingBtn
                = new ExitOptionsCCButton(this.ccToolbar, "Exit Without Saving", false);

            exitOptionsButtons.Add(exitWithoutSavingBtn);
        }
Ejemplo n.º 21
0
        public ToolbarPlacementForm(CCToolbar ccToolbar)
            : base(ccToolbar, 4)
        {
            label.Text = "Toolbar Placement: " + ccToolbar.Orientation;

            topBtn.Text         = "Top";
            topBtn.actionEvent += new CCButton.actionEventHandler(topBtn_actionEvent);

            bottomBtn.Text         = "Bottom";
            bottomBtn.actionEvent += new CCButton.actionEventHandler(bottomBtn_actionEvent);

            leftBtn.Text         = "Left";
            leftBtn.actionEvent += new CCButton.actionEventHandler(leftBtn_actionEvent);

            rightBtn.Text         = "Right";
            rightBtn.actionEvent += new CCButton.actionEventHandler(rightBtn_actionEvent);
        }
Ejemplo n.º 22
0
        public DrawingCCButton(CCToolbar ccToolbar)
            : base(ccToolbar, "&Drawing", "Icons/Drawing.png")
        {
            drawingToolbarButtons = new List <CCButton>();
            drawingToolbarButtons.Add(new FileCCButton(ccToolbar));
            drawingToolbarButtons.Add(ccToolbar.UndoButton);
            drawingToolbarButtons.Add(ccToolbar.RedoButton);
            drawingToolbarButtons.Add(new PencilCCButton(ccToolbar));
            drawingToolbarButtons.Add(new ShapesCCButton(ccToolbar));
            drawingToolbarButtons.Add(new ColorCCButton(ccToolbar));

            CCButton lineThickCCBtn = new CCButton(ccToolbar, "Line Thickness", "Icons/Thickness.png");

            lineThickCCBtn.actionEvent += new actionEventHandler(lineThickCCBtn_actionEvent);
            drawingToolbarButtons.Add(lineThickCCBtn);

            drawingToolbarButtons.Add(new TextCCButton(ccToolbar));
        }
Ejemplo n.º 23
0
        public LetterRangeCCButton(CCToolbar ccToolbar, string text)
            : base(ccToolbar, text)
        {
            letters = new List <CCButton>();

            letters.Add(new BackspaceCCButton(ccToolbar));
            letters.Add(new LetterCCButton(ccToolbar, "Space", ' '));

            //add all letters in the letter range
            foreach (char letter in text)
            {
                letters.Add(new LetterCCButton(ccToolbar, letter.ToString(), letter));
            }

            letters.Add(new LetterCCButton(ccToolbar, "Space", ' '));
            letters.Add(new BackspaceCCButton(ccToolbar));

            this.Click += new EventHandler(LetterRangeCCButton_Click);
        }
Ejemplo n.º 24
0
            /// <summary>
            /// Construct a new image from a given width and height.
            /// </summary>
            /// <param name="ccToolbar"></param>
            /// <param name="newImageWidth"></param>
            /// <param name="newImageHeight"></param>
            public NewSizeCCButton(CCToolbar ccToolbar, int newImageWidth, int newImageHeight)
                : base(ccToolbar)
            {
                this.newImageWidth  = newImageWidth;
                this.newImageHeight = newImageHeight;

                SetTextAndTooltip(newImageWidth + " by " + newImageHeight);

                //set background image depending on width and height
                //string iconPath = "Icons/new_" + newImageWidth + newImageHeight + ".png";
                //if (File.Exists(iconPath))
                //{
                //    this.BackgroundImage = System.Drawing.Image.FromFile(iconPath);

                //    //TODO refactor
                //    //dont show text ontop of the picture
                //    this.Text = "";
                //}
            }
Ejemplo n.º 25
0
        /// <summary>
        /// Construct a new Save button in the File tools on the toolbar.
        /// </summary>
        /// <param name="ccToolbar"></param>
        /// ref icon: http://www.openclipart.org/detail/2206
        public SaveCCButton(CCToolbar ccToolbar)
            : base(ccToolbar, "Save", "Icons/save.png")
        {
            saveOptionButtons = new List <CCButton>();

            //"Save"
            SaveOptionsCCButton saveBtn = new SaveOptionsCCButton(this.ccToolbar, "Save", false);

            saveOptionButtons.Add(saveBtn);

            //"Save As"
            //TODO Bug
            //1. New image from clipboard
            //2. SaveBtn -> Save
            //3. SaveBtn -> Save As
            //4. Exception!
            SaveOptionsCCButton saveAsBtn = new SaveOptionsCCButton(this.ccToolbar, "Save A Copy", true);

            saveOptionButtons.Add(saveAsBtn);
        }
Ejemplo n.º 26
0
        public BrightnessChoiceForm(CCToolbar ccToolbar)
            : base(ccToolbar, 4, true, true)
        {
            this.label.Text = "Brightness: " + brightnessValue;

            //top: cancel
            this.SetButtonToCancel(this.topBtn);

            this.leftBtn.Text         = "Darker";
            this.leftBtn.actionEvent += new CCButton.actionEventHandler(leftBtn_actionEvent);

            this.rightBtn.Text         = "Lighter";
            this.rightBtn.actionEvent += new CCButton.actionEventHandler(rightBtn_actionEvent);

            //bottom: apply
            this.SetButtonIconToApply(bottomBtn);
            this.bottomBtn.actionEvent += new CCButton.actionEventHandler(applyBtn_actionEvent);

            previewPicBox.Image = ccToolbar.CCMainForm.MainImage.BrightenPreview(this.brightnessValue);
        }
Ejemplo n.º 27
0
        public FileCCButton(CCToolbar ccToolbar)
            : base(ccToolbar, "&File", "Icons/File.png")
        {
            fileToolbarButtons = new List <CCButton>();

            NewCCButton newCCButton = new NewCCButton(this.ccToolbar);

            fileToolbarButtons.Add(newCCButton);

            OpenCCButton openCCButton = new OpenCCButton(this.ccToolbar);

            fileToolbarButtons.Add(openCCButton);

            SaveCCButton saveCCButton = new SaveCCButton(this.ccToolbar);

            fileToolbarButtons.Add(saveCCButton);

            ExitCCButton exitCCButton = new ExitCCButton(this.ccToolbar);

            fileToolbarButtons.Add(exitCCButton);
        }
Ejemplo n.º 28
0
        public ShapesCCButton(CCToolbar ccToolbar)
            : base(ccToolbar, "Shapes", "Icons/Shapes.png")
        {
            drawingToolbarButtons = new List <CCButton>();

            //TODO refactor
            CCButton lineCCBtn = new CCButton(ccToolbar, "Line", "Icons/Line.png");

            lineCCBtn.actionEvent += new actionEventHandler(lineCCBtn_actionEvent);
            drawingToolbarButtons.Add(lineCCBtn);

            //TODO refactor
            CCButton rectCCBtn = new CCButton(ccToolbar, "Rectangle", "Icons/Rectangle.png");

            rectCCBtn.actionEvent += new actionEventHandler(rectCCBtn_actionEvent);
            drawingToolbarButtons.Add(rectCCBtn);

            //TODO refactor
            CCButton filledRectCCBtn = new CCButton(ccToolbar, "Filled Rectangle", "Icons/FilledRectangle.png");

            filledRectCCBtn.actionEvent += new actionEventHandler(filledRectCCBtn_actionEvent);
            drawingToolbarButtons.Add(filledRectCCBtn);

            //TODO refactor
            CCButton circleCCBtn = new CCButton(ccToolbar, "Circle", "Icons/Circle.png");

            circleCCBtn.actionEvent += new actionEventHandler(circleCCBtn_actionEvent);
            drawingToolbarButtons.Add(circleCCBtn);

            //TODO refactor
            CCButton filledCircleCCBtn = new CCButton(ccToolbar, "Filled Circle", "Icons/FilledCircle.png");

            filledCircleCCBtn.actionEvent += new actionEventHandler(filledCircleCCBtn_actionEvent);
            drawingToolbarButtons.Add(filledCircleCCBtn);

            this.Click += new EventHandler(ShapesCCButton_Click);
        }
Ejemplo n.º 29
0
        public RotateChoiceForm(CCToolbar ccToolbar)
            : base(ccToolbar, 4, true, true)
        {
            this.label.Text = "Rotation Angle: " + rotateAngle + " degrees";

            //top: cancel
            this.SetButtonToCancel(this.topBtn);

            this.leftBtn.Text = "Rotate Left";
            //ref icon: http://www.openclipart.org/detail/27401
            this.leftBtn.SetIcon("Icons/RotateLeft.png");
            this.leftBtn.actionEvent += new CCButton.actionEventHandler(leftBtn_actionEvent);

            this.rightBtn.Text = "Rotate Right";
            //ref icon: http://www.openclipart.org/detail/27401
            this.rightBtn.SetIcon("Icons/RotateRight.png");
            this.rightBtn.actionEvent += new CCButton.actionEventHandler(rightBtn_actionEvent);

            //bottom: apply
            this.SetButtonIconToApply(this.bottomBtn);
            this.bottomBtn.actionEvent += new CCButton.actionEventHandler(applyBtn_actionEvent);

            previewPicBox.Image = ccToolbar.CCMainForm.MainImage.previewRotation(rotateAngle);
        }
Ejemplo n.º 30
0
        public ImageCCButton(CCToolbar ccToolbar)
            : base(ccToolbar, "&Photos", "Icons/Photos.png")
        {
            imageToolbarButtons = new List <CCButton>();

            FileCCButton fileCCBtn = new FileCCButton(this.ccToolbar);

            imageToolbarButtons.Add(fileCCBtn);

            imageToolbarButtons.Add(ccToolbar.UndoButton);
            imageToolbarButtons.Add(ccToolbar.RedoButton);

            MoveCCButton moveCCBtn = new MoveCCButton(this.ccToolbar);

            imageToolbarButtons.Add(moveCCBtn);

            ZoomCCButton zoomCCBtn = new ZoomCCButton(this.ccToolbar);

            imageToolbarButtons.Add(zoomCCBtn);

            RotateCCButton rotateCCBtn = new RotateCCButton(this.ccToolbar);

            imageToolbarButtons.Add(rotateCCBtn);

            SelectCCButton selectCCBtn = new SelectCCButton(this.ccToolbar);

            imageToolbarButtons.Add(selectCCBtn);

            EffectsCCButton effectsCCBtn = new EffectsCCButton(this.ccToolbar);

            imageToolbarButtons.Add(effectsCCBtn);

            TextCCButton textCCBtn = new TextCCButton(this.ccToolbar);

            imageToolbarButtons.Add(textCCBtn);
        }