예제 #1
0
        private void ltvEntries_ItemChecked(object sender, ItemCheckedEventArgs e)
        {
            OrderEntryViewItem orderEntryViewItem = (OrderEntryViewItem)e.Item;

            orderEntryViewItem.Entry.Enabled = orderEntryViewItem.Checked;
            orderEntryViewItem.UpdateValues();
        }
예제 #2
0
        private void AddEntry(OrderEntry entry)
        {
            OrderEntryViewItem value = new OrderEntryViewItem(entry);

            this.ltvEntries.Items.Add(value);
            this.entryItems.Add(entry, value);
        }
예제 #3
0
        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));
        }