private void btnPayment_Click(object sender, EventArgs e)
        {
            BaseController <InvoicePayment> .ShowEditorControl(ref _invoicePayment, this, ActiveInvoice, null,
                                                               EditorContainerType.Regular, ViewerName.InvoicePayment_Viewer, DB_CommonTransactionType.CreateNew,
                                                               "مـدفـوعــــات المـريـــض", true);

            ActiveInvoice = (Invoice)ActiveInvoice.RegenerateEntityObject(ActiveInvoice);
            LoadControls(ActiveInvoice);
            lytMenu.Visibility = LayoutVisibility.Never;
            chkShowHideNavigationMenu.Checked = false;
        }
 private void btnSave_Click(object sender, EventArgs e)
 {
     ActiveInvoice.SaveChanges <Invoice>(DB_CommonTransactionType.UpdateExisting);
 }