static void OnToolbarStyle(object obj, ChangedArgs args) { RadioAction action = (RadioAction)obj; ToolbarStyle style = (ToolbarStyle)action.CurrentValue; toolbar.ToolbarStyle = style; }
public MmcButton(int bitmap, int commandId, ToolbarButtonState state, ToolbarStyle type, string buttonText, string tooltipText) { Bitmap = bitmap; CommandId = commandId; State = (byte)state; Type = (byte)type; ButtonText = buttonText; TooltipText = tooltipText; }
private void ToolBarMode(ToolbarStyle style) { if (CurrentUserSettings.Settings.ToolbarStyle != style) { CurrentUserSettings.Settings.ToolbarStyle = style; CurrentUserSettings.SaveSettings(); } toolbarMain.ToolbarStyle = style; ActionIconsExtraSmall.Sensitive = ActionIconsSmall.Sensitive = ActionIconsMiddle.Sensitive = ActionIconsLarge.Sensitive = style != ToolbarStyle.Text; }
private void ToolBarMode(ToolbarStyle style) { if(CurrentUserSettings.Settings.ToolbarStyle != style) { CurrentUserSettings.Settings.ToolbarStyle = style; CurrentUserSettings.SaveSettings(); } toolbarMain.ToolbarStyle = style; ActionIconsExtraSmall.Sensitive = ActionIconsSmall.Sensitive = ActionIconsMiddle.Sensitive = ActionIconsLarge.Sensitive = style != ToolbarStyle.Text; }