public void BuildGrid(
Engine.Ledger.LedgerBook currentLedgerBook,
ResourceDictionary viewResources,
ContentPresenter contentPanel,
int numberOfMonthsToShow)
{
if (viewResources == null)
{
throw new ArgumentNullException(nameof(viewResources));
}
if (contentPanel == null)
{
throw new ArgumentNullException(nameof(contentPanel));
}
this.ledgerBook = currentLedgerBook;
this.localResources = viewResources;
this.contentPresenter = contentPanel;
DynamicallyCreateLedgerBookGrid(numberOfMonthsToShow);
}