| 12345678910111213141516171819202122232425262728293031 |
- using System;
- using System.Windows.Media.Imaging;
- using InABox.Core;
- using InABox.DynamicGrid;
- using InABox.WPF;
- using PRSDesktop.Integrations.V6;
- namespace PRSDesktop.Integrations.V6.Grids;
- public class V6ProjectGrid : DynamicItemsListGrid<V6Project>
- {
-
- public bool ShowPrices { get; set; }
-
- public override DynamicGridColumns GenerateColumns()
- {
- var result = new DynamicGridColumns()
- .AddFluent<V6Project>(x => x.Number, 60, "No.", null, Alignment.MiddleCenter)
- .AddFluent<V6Project>(x => x.Title, 0, "Title", null, Alignment.MiddleLeft);
- if (ShowPrices)
- result.AddFluent<V6Project>(x=>x.SellPrice,100, "Ex Tax", "F2", Alignment.MiddleCenter);
- return result;
- }
-
- protected override void DoReconfigure(DynamicGridOptions options)
- {
- base.DoReconfigure(options);
- options.FilterRows = true;
- options.HideDatabaseFilters = true;
- }
- }
|