/// <summary>
        /// Overloaded constructor that recieves data from the calling form
        /// </summary>
        /// <param name="caller">Parameter used to call this form and request data by forms that implement IDocumentRequester interface</param>
        /// <param name="_documentType">The requested purchase document type(purchase order/invoice)</param>
        public SearchPurchaseDocumentForm(IDocumentRequester caller, RequestedPurchasingDocument _documentType)
        {
            InitializeComponent();
            RequestedDocument = _documentType;
            ChangeUIByDocType(RequestedDocument);
            InitializeDocumentList();

            callingForm = caller;
        }
 /// <summary>
 /// Changes the DocumentLabel text by the purchase document type we are searching for(Order/Invoice)
 /// </summary>
 private void ChangeUIByDocType(RequestedPurchasingDocument documentType)
 {
     if (documentType == RequestedPurchasingDocument.PurchaseOrder)
     {
         DocumentLabel.Text         = "Order";
         ActivePOCheckBox.Enabled   = true;
         FinishedPOCheckBox.Enabled = true;
     }
     else
     {
         DocumentLabel.Text         = "Invoice";
         ActivePOCheckBox.Enabled   = false;
         FinishedPOCheckBox.Enabled = false;
     }
 }