/// <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); } }