Exercise - Using the Generic Selection List results

Your ShowOrdersWithEmployeeSelectionView view class should look like :

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using Firefly.Box;
using Firefly.Box.UI.Advanced;
using ENV;
using ENV.Data;

namespace Northwind.Exercises.SelectionList.Views
{
    partial class ShowOrdersWithEmployeeSelectionView : Shared.Theme.Controls.Form
    {
        ShowOrdersWithEmployeeSelection _controller;
        public ShowOrdersWithEmployeeSelectionView(ShowOrdersWithEmployeeSelection controller)
        {
            _controller = controller;
            InitializeComponent();
        }

        private void txtCustomerID_Expand()
        {
-           new SelectCustomers().Run(_controller.Orders.CustomerID);
            var Customers = new Models.Customers();
            ENV.Utilities.SelectionList.Show(_controller.Orders.CustomerID, Customers, Customers.CustomerID, Customers.CompanyName);
        }
    }
} 

Help us improve, Edit this page on GitHub
or email us at info@fireflymigration.com