public RevenueEditControl(RevenueItem bundleItem) { _bundleItem = bundleItem; InitializeComponent(); Text = RevenueItem.ItemName; if (CreateGraphics().DpiX > 96) { var font = new Font(styleController.Appearance.Font.FontFamily, styleController.Appearance.Font.Size - 2, styleController.Appearance.Font.Style); styleController.Appearance.Font = font; styleController.AppearanceDisabled.Font = font; styleController.AppearanceDropDown.Font = font; styleController.AppearanceDropDownHeader.Font = font; styleController.AppearanceFocused.Font = font; styleController.AppearanceReadOnly.Font = font; } var itemId = 100; foreach (var infoType in RevenueInfo.AvailableInfoTypes) { var barButton = new BarLargeButtonItem(); barButton.Caption = infoType; barButton.Tag = infoType; barButton.Id = itemId; barButton.ItemClick += OnRevenueInfoItemAdd; _infoTypeBarButtons.Add(barButton); itemId++; barSubItemInfoAdd.LinksPersistInfo.Add(new LinkPersistInfo(barButton)); } }
public void Release() { gridControlInfoItems.DataSource = null; _bundleItem = null; }
public RevenueInfo(RevenueItem parent, string title) { ParentRevenue = parent; Title = title; }