BudgetAnalyser.LedgerBook.LedgerTransactionsController.ShowDialogCommon C# (CSharp) Method

ShowDialogCommon() private method

private ShowDialogCommon ( bool isNew ) : void
isNew bool
return void
        private void ShowDialogCommon(bool isNew)
        {
            IsReadOnly = !isNew;
            this.dialogCorrelationId = Guid.NewGuid();
            var dialogRequest = new ShellDialogRequestMessage(BudgetAnalyserFeature.LedgerBook, this, IsReadOnly ? ShellDialogType.Ok : ShellDialogType.OkCancel)
            {
                CorrelationId = this.dialogCorrelationId,
                Title = Title
            };
            MessengerInstance.Send(dialogRequest);
        }
    }