ATMLCommonLibrary.controls.document.DocumentLibrarySelectionForm.DocumentLibrarySelectionForm_Closing C# (CSharp) Method

DocumentLibrarySelectionForm_Closing() private method

private DocumentLibrarySelectionForm_Closing ( object sender, CancelEventArgs e ) : void
sender object
e CancelEventArgs
return void
        private void DocumentLibrarySelectionForm_Closing( object sender, CancelEventArgs e )
        {
            if (DialogResult.OK == DialogResult)
            {
                if (!documentLibraryListControl.HasSelected)
                    e.Cancel = true;
                else
                    _selectedDocument = documentLibraryListControl.SelectedObject as Document;
            }
        }