private void ltvEntries_ItemChecked(object sender, ItemCheckedEventArgs e) { OrderEntryViewItem orderEntryViewItem = (OrderEntryViewItem)e.Item; orderEntryViewItem.Entry.Enabled = orderEntryViewItem.Checked; orderEntryViewItem.UpdateValues(); }
private void AddEntry(OrderEntry entry) { OrderEntryViewItem value = new OrderEntryViewItem(entry); this.ltvEntries.Items.Add(value); this.entryItems.Add(entry, value); }
private void RemoveEntry(OrderEntry entry) { OrderEntryViewItem orderEntryViewItem = this.entryItems[entry]; this.entryItems.Remove(entry); orderEntryViewItem.Remove(); }
public int Compare(object x, object y) { OrderEntryViewItem orderEntryViewItem = (OrderEntryViewItem)x; OrderEntryViewItem orderEntryViewItem2 = (OrderEntryViewItem)y; return(DateTime.Compare(orderEntryViewItem.Entry.DateTime, orderEntryViewItem2.Entry.DateTime)); }