private void DocumentListControl_InitializeForm(Form form) { var df = form as DocumentForm; if (df != null) { df.DocumentType = _documentType; } }