/// <summary>
        /// Called by the instantiator of this Dialog to retrieve the result of the dialog
        ///
        /// </summary>
        /// <param name="AExtractMasterTable"></param>
        /// <returns>true if at least one row was selected
        /// </returns>
        public bool GetResult(ref MExtractMasterTable AExtractMasterTable)
        {
            MExtractMasterRow NewRow;

            AExtractMasterTable.Clear();

            if (FResultTable == null)
            {
                return(false);
            }

            foreach (MExtractMasterRow Row in FResultTable.Rows)
            {
                NewRow             = AExtractMasterTable.NewRowTyped();
                NewRow.ExtractId   = Row.ExtractId;
                NewRow.ExtractName = Row.ExtractName;
                NewRow.ExtractDesc = Row.ExtractDesc;
                NewRow.KeyCount    = Row.KeyCount;
                NewRow.CreatedBy   = Row.CreatedBy;
                NewRow.DateCreated = Row.DateCreated;

                AExtractMasterTable.Rows.Add(NewRow);
            }

            return(AExtractMasterTable.Count >= 0);
        }
        /// <summary>
        /// close screen without accepting any extract
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void CloseScreen(System.Object sender, EventArgs e)
        {
            if (FResultTable != null)
            {
                FResultTable.Clear();
            }

            Close();
        }
        /// <summary>
        /// clear search criteria fields and empty grid
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void ClearSearchCriteria(System.Object sender, EventArgs e)
        {
            txtExtractName.Text = "";
            txtExtractDesc.Text = "";
            cmbUserCreated.SetSelectedString("", -1);
            dtpCreatedFrom.Text = "";
            dtpCreatedTo.Text   = "";
            cmbUserModified.SetSelectedString("", -1);
            dtpModifiedFrom.Text = "";
            dtpModifiedTo.Text   = "";

            FExtractMasterTable.Clear();
            DataView myDataView = FExtractMasterTable.DefaultView;

            myDataView.AllowNew   = false;
            clbDetails.DataSource = new DevAge.ComponentModel.BoundDataView(myDataView);

            PrepareButtons();
        }
        /// <summary>
        /// Called by the instantiator of this Dialog to retrieve the result of the dialog
        ///
        /// </summary>
        /// <param name="AExtractMasterTable"></param>
        /// <returns>true if at least one row was selected
        /// </returns>
        public bool GetResult(ref MExtractMasterTable AExtractMasterTable)
        {
            MExtractMasterRow NewRow;

            AExtractMasterTable.Clear();

            if (FResultTable == null)
            {
                return false;
            }

            foreach (MExtractMasterRow Row in FResultTable.Rows)
            {
                NewRow = AExtractMasterTable.NewRowTyped();
                NewRow.ExtractId = Row.ExtractId;
                NewRow.ExtractName = Row.ExtractName;
                NewRow.ExtractDesc = Row.ExtractDesc;
                NewRow.KeyCount = Row.KeyCount;
                NewRow.CreatedBy = Row.CreatedBy;
                NewRow.DateCreated = Row.DateCreated;

                AExtractMasterTable.Rows.Add(NewRow);
            }

            return AExtractMasterTable.Count >= 0;
        }