Esempio n. 1
0
 /// <summary>
 /// Populate values from the base palette.
 /// </summary>
 public void PopulateFromBase()
 {
     Button.PopulateFromBase();
     Grip.PopulateFromBase();
     Menu.PopulateFromBase();
     Rafting.PopulateFromBase();
     MenuStrip.PopulateFromBase();
     Separator.PopulateFromBase();
     StatusStrip.PopulateFromBase();
     ToolStrip.PopulateFromBase();
     UseRoundedEdges = InternalKCT.UseRoundedEdges;
 }
Esempio n. 2
0
 /// <summary>
 /// Populate values from the base palette.
 /// </summary>
 /// <param name="common">Reference to common settings.</param>
 /// <param name="state">State to inherit.</param>
 public void PopulateFromBase(KryptonPaletteCommon common,
                              PaletteState state)
 {
     common.StateCommon.BackStyle   = PaletteBackStyle.ContextMenuInner;
     common.StateCommon.BorderStyle = PaletteBorderStyle.ContextMenuInner;
     ControlInner.PopulateFromBase(state);
     common.StateCommon.BackStyle   = PaletteBackStyle.ContextMenuOuter;
     common.StateCommon.BorderStyle = PaletteBorderStyle.ContextMenuOuter;
     ControlOuter.PopulateFromBase(state);
     common.StateCommon.BackStyle    = PaletteBackStyle.ContextMenuHeading;
     common.StateCommon.BorderStyle  = PaletteBorderStyle.ContextMenuHeading;
     common.StateCommon.ContentStyle = PaletteContentStyle.ContextMenuHeading;
     Heading.PopulateFromBase(state);
     common.StateCommon.BackStyle   = PaletteBackStyle.ContextMenuItemImageColumn;
     common.StateCommon.BorderStyle = PaletteBorderStyle.ContextMenuItemImageColumn;
     ItemImageColumn.PopulateFromBase(state);
     common.StateCommon.BackStyle   = PaletteBackStyle.ContextMenuSeparator;
     common.StateCommon.BorderStyle = PaletteBorderStyle.ContextMenuSeparator;
     Separator.PopulateFromBase(state);
 }