BudgetAnalyser.LedgerBook.LedgerTransactionsController.ShowLedgerTransactionsDialog C# (CSharp) Метод

ShowLedgerTransactionsDialog() публичный Метод

Show the Ledger Transactions view for viewing and editing Ledger Transactions.
public ShowLedgerTransactionsDialog ( LedgerEntryLine ledgerEntryLine, LedgerEntry ledgerEntry, bool isNew ) : void
ledgerEntryLine BudgetAnalyser.Engine.Ledger.LedgerEntryLine
ledgerEntry BudgetAnalyser.Engine.Ledger.LedgerEntry
isNew bool
Результат void
        public void ShowLedgerTransactionsDialog(LedgerEntryLine ledgerEntryLine, LedgerEntry ledgerEntry, bool isNew)
        {
            if (ledgerEntry == null)
            {
                return;
            }

            InBalanceAdjustmentMode = false;
            InLedgerEntryMode = true;
            LedgerEntry = ledgerEntry;
            this.entryLine = ledgerEntryLine; // Will be null when editing an existing LedgerEntry as opposed to creating a new reconciliation.
            ShownTransactions = new ObservableCollection<LedgerTransaction>(LedgerEntry.Transactions);
            Title = string.Format(CultureInfo.CurrentCulture, "{0} Transactions", ledgerEntry.LedgerBucket.BudgetBucket.Code);
            OpeningBalance = RetrieveOpeningBalance();
            ShowDialogCommon(isNew);
        }