Exemplo n.º 1
0
        private void NewEntry()
        {
            OrderEntryDetailsForm orderEntryDetailsForm = new OrderEntryDetailsForm();

            orderEntryDetailsForm.Entry = null;
            if (orderEntryDetailsForm.ShowDialog(this) == DialogResult.OK)
            {
                this.AddEntry(orderEntryDetailsForm.Entry);
            }
            orderEntryDetailsForm.Dispose();
        }
Exemplo n.º 2
0
        private void EditEntry(OrderEntry entry)
        {
            OrderEntryDetailsForm orderEntryDetailsForm = new OrderEntryDetailsForm();

            orderEntryDetailsForm.Entry = entry;
            if (orderEntryDetailsForm.ShowDialog(this) == DialogResult.OK)
            {
                this.entryItems[entry].UpdateValues();
                this.ltvEntries.Sort();
            }
            orderEntryDetailsForm.Dispose();
        }