/// <summary>
        /// Alissa Duffy
        /// Updated: 2017/04/21
        ///
        /// Loads the Supplier Invoice Details Window.
        /// Standardized method.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            lblInvoiceId.Content        = "Invoice " + _supplierInvoice.SupplierInvoiceId;
            lblTotalAmount.Content      = _supplierInvoice.Total.ToString("c");
            lblAmountPaidAmount.Content = _supplierInvoice.AmountPaid.ToString("c");
            Supplier supplierAssociated = null;

            try
            {
                supplierAssociated = _supplierManager.RetrieveSupplierBySupplierID(_supplierInvoice.SupplierId);
                if (null != supplierAssociated)
                {
                    lblSupplierName.Content = _supplierManager.RetrieveSupplierName(supplierAssociated.UserId);
                    lblFarmName.Content     = supplierAssociated.FarmName;
                }
            }
            catch (Exception ex)
            {
                if (null != ex.InnerException)
                {
                    MessageBox.Show(ex.Message + "\n\n" + ex.InnerException.Message);
                }
                else
                {
                    MessageBox.Show(ex.Message);
                }
            }

            try
            {
                _invoiceLines = _supplierInvoiceManager.RetrieveSupplierInvoiceLinesByInvoiceId(_supplierInvoice.SupplierInvoiceId);
            }
            catch (Exception ex)
            {
                if (null != ex.InnerException)
                {
                    MessageBox.Show(ex.Message + "\n\n" + ex.InnerException.Message);
                }
                else
                {
                    MessageBox.Show(ex.Message);
                }
            }

            dgSupplierInvoiceLines.ItemsSource = _invoiceLines;
        }
        /// <summary>
        /// Christian Lopez
        /// Created: 2017/02/22
        /// </summary>
        ///
        /// <remarks>
        /// Aaron Usher
        /// Updated: 2017/04/07
        ///
        /// Changed string array of grades to list of string of grades.
        /// </remarks>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void Window_Initialized(object sender, EventArgs e)
        {
            try
            {
                var grades = _gradeManager.RetrieveGradeList();
                cboGradeSelect.ItemsSource = grades;
            }
            catch (Exception ex)
            {
                if (null != ex.InnerException)
                {
                    MessageBox.Show(ex.Message + "\n\n" + ex.InnerException.Message);
                }
                else
                {
                    MessageBox.Show(ex.Message);
                }
            }

            try
            {
                txtProduct.Text = _productManager.RetrieveProductById((int)_productLot.ProductId).Name;
                Supplier s = _supplierManager.RetrieveSupplierBySupplierID((int)_productLot.SupplierId);
                txtSupplier.Text = _supplierManager.RetrieveSupplierName(s.UserId);
                txtFarm.Text     = s.FarmName;
            }
            catch (Exception ex)
            {
                if (null != ex.InnerException)
                {
                    MessageBox.Show(ex.Message + "\n\n" + ex.InnerException.Message);
                }
                else
                {
                    MessageBox.Show(ex.Message);
                }
            }
        }