private void ShowDialogCommon(string title)
{
Canceled = false;
List<Account> accountsToShow = this.accountTypeRepository.ListCurrentlyUsedAccountTypes().ToList();
BankAccounts = accountsToShow.OrderBy(a => a.Name);
SelectedBankAccount = null;
this.dialogCorrelationId = Guid.NewGuid();
var dialogRequest = new ShellDialogRequestMessage(BudgetAnalyserFeature.LedgerBook, this, ShellDialogType.OkCancel)
{
CorrelationId = this.dialogCorrelationId,
Title = title,
HelpAvailable = CreateMode
};
MessengerInstance.Send(dialogRequest);
}
}