internal NavigationButton(string text, NavigationButtonType buttonType, Action <NavigationButton> onUpdate) { this.Text = text; this.ButtonType = buttonType; this.Visible = true; this.Enabled = true; this.OnUpdate = onUpdate; }
/// <summary> /// Initializes a new instance of the <see cref="NavigationButton"/> class. /// </summary> public NavigationButton() { this.type = NavigationButtonType.Back; this.SetStyle(ControlStyles.AllPaintingInWmPaint | ControlStyles.OptimizedDoubleBuffer | ControlStyles.ResizeRedraw | ControlStyles.UserPaint, true); this.UpdateStyles(); }