/// <summary>
 /// clsSearchLogic constructor: another clsSearchLogic object supplied as an argument
 /// </summary>
 /// <param name="invoice"></param>
 public clsSearchLogic(clsSearchLogic invoice) : this(invoice.InvoiceID, invoice.InvoiceDate, invoice.InvoiceCharge)
 {
 }
        /// <summary>
        /// Initialize/construtor
        /// </summary>
        public wndSearch()
        {
            try
            {
                InitializeComponent();

                ///<summary>
                ///initialize our clsSearchLogicInst
                /// </summary>
                clsSearchLogicInst = new clsSearchLogic();

                ///<summary>
                ///this creates a new instance of our invoiceIDArray
                ///</summary>
                invoiceIDArray = new ArrayList();

                ///<summary>
                ///this creates a new instance of our invoiceDatesArray
                ///</summary>
                invoiceDatesArray = new ArrayList();

                ///<summary>
                ///this creates a new instance of our invoiceCostArray
                ///</summary>
                invoiceCostArray = new ArrayList();

                ///<summary>
                ///this creates a new instance of our data access to our search invoice database
                ///</summary>
                db = new clsSearchSQL();

                ///<summary>
                ///this creates a new instance of our invoice class
                /// </summary>
                inv = new Invoice();

                ///<summary>
                ///initially load our invoice dates in our combo box
                ///</summary>
                loadInvoiceDatesInComboBox();

                ///<summary>
                ///initially load our invoice dates in our combo box
                ///</summary>
                loadInvoiceIDsInComboBox();

                ///<summary>
                ///initially load our invoice costs in our combo box
                ///</summary>
                loadInvoiceCostsInComboBox();

                ///<summary>
                ///this will be used to bind to our list of invoices and display it in our search window DataGrid
                /// </summary>
                DisplaySearchedInvoice.ItemsSource = clsSearchLogicInst.GetInvoicesFromDataBase();
            }
            catch (Exception ex)
            {
                HandleError(MethodInfo.GetCurrentMethod().DeclaringType.Name,
                            MethodInfo.GetCurrentMethod().Name, ex.Message);
            }
        }