Beispiel #1
0
        private void toolBar_btnCancel_Click(object sender)
        {
            SalesInvoiceDB.CancelAllChanges();
            sales_invoice sales_invoice = (sales_invoice)sales_invoiceDataGrid.SelectedItem;

            sales_invoice.State = EntityState.Unchanged;
        }
Beispiel #2
0
        private void Cancel_MouseDown(object sender, EventArgs e)
        {
            SalesInvoiceDB.CancelAllChanges();
            PaymentDB.CancelAllChanges();

            New_Sale_Payment();

            //Clean up Contact Data.
            sbxContact.Text      = "";
            sbxContact.ContactID = 0;

            sbxItem.Text   = string.Empty;
            sbxItem.ItemID = 0;

            tabContact.IsSelected = true;
        }