protected virtual void ClearButtons() { ButtonBar.Items.Clear(); ButtonBar.RefreshControl(); ButtonBar.Invalidate(); RefreshComponent(); }
protected virtual void AddButton() { var item = new BarItem(ButtonBar); ButtonBar.Items.Add(item); ButtonBar.RefreshControl(); ButtonBar.Invalidate(); RefreshComponent(); }
protected virtual void DeleteButton() { if (ButtonBar.SelectedItem == null) { return; } ButtonBar.Items.Remove(ButtonBar.SelectedItem); if (ButtonBar.Items.Count > 0) { ButtonBar.Items[0].Selected = true; } ButtonBar.RefreshControl(); ButtonBar.Invalidate(); RefreshComponent(); }
protected virtual void ShowBorders() { ButtonBar.ShowBorders = !ButtonBar.ShowBorders; ButtonBar.Invalidate(); RefreshComponent(); }