/// <summary> /// Controls the circular PictureBox control view. /// </summary> /// <param name="control">The control.</param> /// <param name="customColours">The custom colours.</param> /// <param name="customTextColours">The custom text colours.</param> /// <param name="noCustomColours">The no custom colours.</param> /// <param name="normal">The normal.</param> public static void ControlCircularPictureBoxControlView(CircularPictureBoxControl control, ToolStripMenuItem customColours, ToolStripMenuItem customTextColours, ToolStripMenuItem noCustomColours, ToolStripMenuItem normal) { if (customColours.Checked) { ChangeViewTypes(ViewLayoutType.CUSTOMCOLOURVIEW, customColours, customTextColours, noCustomColours, normal); control.ChangeViewLayout(ViewLayoutType.CUSTOMCOLOURVIEW); } else if (customTextColours.Checked) { ChangeViewTypes(ViewLayoutType.CUSTOMTEXTCOLOURVIEW, customColours, customTextColours, noCustomColours, normal); control.ChangeViewLayout(ViewLayoutType.CUSTOMTEXTCOLOURVIEW); } else if (noCustomColours.Checked) { ChangeViewTypes(ViewLayoutType.NOCUSTOMCOLOURS, customColours, customTextColours, noCustomColours, normal); control.ChangeViewLayout(ViewLayoutType.NOCUSTOMCOLOURS); } else if (normal.Checked) { ChangeViewTypes(ViewLayoutType.NORMALVIEW, customColours, customTextColours, noCustomColours, normal); control.ChangeViewLayout(ViewLayoutType.NORMALVIEW); } }
/// <summary> /// /// </summary> /// <param name="control"></param> public static void CustomColourLayout(CircularPictureBoxControl control) { #region Size control.Size = new Size(1625, 537); #endregion #region Basic Colour Location control.GetBaseColourPreview().Location = new Point(19, 15); control.GetDarkColourPreview().Location = new Point(272, 15); control.GetMiddleColourPreview().Location = new Point(525, 15); control.GetLightColourPreview().Location = new Point(778, 15); control.GetLightestColourPreview().Location = new Point(1031, 15); #endregion #region Rest of First Row control.GetBorderColourPreview().Location = new Point(1284, 18); control.GetAlternativeNormalTextColourPreview().Location = new Point(1537, 18); #endregion #region Second Row control.GetDisabledTextColourPreview().Location = new Point(19, 147); control.GetFocusedTextColourPreview().Location = new Point(272, 147); control.GetNormalTextColourPreview().Location = new Point(525, 147); control.GetPressedTextColourPreview().Location = new Point(778, 147); control.GetDisabledControlColourPreview().Location = new Point(1031, 147); control.GetLinkDisabledColourPreview().Location = new Point(1284, 147); control.GetLinkFocusedColourPreview().Location = new Point(1537, 147); #endregion #region Third Row control.GetLinkHoverColourPreview().Location = new Point(19, 280); control.GetLinkNormalColourPreview().Location = new Point(272, 280); control.GetLinkVisitedColourPreview().Location = new Point(525, 280); control.GetCustomColourOneColourPreview().Visible = true; control.GetCustomColourOneColourPreview().Location = new Point(778, 280); control.GetCustomColourTwoColourPreview().Visible = true; control.GetCustomColourTwoColourPreview().Location = new Point(1031, 280); control.GetCustomColourThreeColourPreview().Visible = true; control.GetCustomColourThreeColourPreview().Location = new Point(1284, 280); control.GetCustomColourFourColourPreview().Visible = true; control.GetCustomColourFourColourPreview().Location = new Point(1537, 280); #endregion #region Fourth Row control.GetCustomColourFiveColourPreview().Visible = true; control.GetCustomColourFiveColourPreview().Location = new Point(19, 413); control.GetCustomColourSixColourPreview().Visible = true; control.GetCustomColourSixColourPreview().Location = new Point(272, 413); control.GetCustomTextColourOneColourPreview().Visible = false; control.GetCustomTextColourTwoColourPreview().Visible = false; control.GetCustomTextColourThreeColourPreview().Visible = false; control.GetCustomTextColourFourColourPreview().Visible = false; control.GetCustomTextColourFiveColourPreview().Visible = false; control.GetCustomTextColourSixColourPreview().Visible = false; control.GetMenuTextColourPreview().Location = new Point(525, 413); control.GetStatusTextColourPreview().Location = new Point(778, 413); control.GetRibbonTabTextColourPreview().Location = new Point(1031, 413); #endregion }