-
Notifications
You must be signed in to change notification settings - Fork 0
Implementation
jemakrol edited this page Jul 9, 2018
·
3 revisions
#A simple Windows Forms application# ##Selected notes on some of the files:##
- Brickllink\WantedList.cs: the class defining the XML-serializable class that represent a Wanted List. It is a 1:1 mapping to the XML format of Wanted Lists. The InventoryItem class in this class is the same used in InventoryItemList.cs.
- BO\InventoryItemList.cs: A collection of inventory items, databound and with events for add and remove
- UI\FormMain: Main UI. Mainly event handlers dealing with UI update and user interaction
- Generics\SortableBindingList.cs: Extension of binding list to provide sortable columns in DataGridView
- BO\ValueTransformer.cs: Encapsulates the tranformations possible to make on certain columns in DataGridView
##Overall functionality##
- Users can drag-and-drop XML-files OR browse them (Drag/Drop and buttonBrowseForFiles event handling in FormMain)
- Loading XML-files will add new items (rows) if they're unique or merge to existing ones if not. A row is unique if no other items share Item Id and Color. Two items with same Item Id but different Colors are, in other words, two different items (thus two separate rows).
- Some columns are read only (those providing identity of the items), the rest can be edited: cell wise using DataGridView functionality and column wise using right click on column (will show context menu, see FormSetValue and FormTransformValue along contextMenuStripDgvRightClick)