Beispiel #1
0
        private void _ReturnListOfObjects(List <object> obj)
        {
            List <order> recievedOrders = obj.OfType <order>().ToList();

            if (recievedOrders != null && recievedOrders.Count > 0)
            {
                DisplayOrderList(recievedOrders);
                return;
            }

            List <tshirt> recievedTshirts = obj.OfType <tshirt>().ToList();

            if (recievedTshirts != null && recievedTshirts.Count > 0)
            {
                localTshirtList = recievedTshirts;
                VisualHelper.RefreshTshirtList(treeViewProductBrowser, localTshirtList);
                return;
            }
        }
Beispiel #2
0
 private void DisplayTshirtList(List <tshirt> theList)
 {
     VisualHelper.RefreshTshirtList(treeViewProductBrowser, theList);
 }