There is a record of this type
private struct WindowProperties { public Action WindowDrawDelegate; } dialog.StartModal(entry.Id, DialogHelper.DialogType.AssignElement, new WindowProperties { WindowDrawDelegate = DrawReassignOrRemoveElementAssignmentWindow }, DialogResultCallback); dialog.StartModal(entry.Id, DialogHelper.DialogType.DeleteAssignmentConfirmation, new WindowProperties { WindowDrawDelegate = DrawModalWindow }, DialogResultCallback); If there is only one entry in WindowsProperties, can it somehow be simplified?