Esempio n. 1
0
 private InvLib.CustomerInfo MakeChild(int id, string name, int lat, int lng, int orderCount)
 {
   var child = new InvLib.CustomerInfo();
   LoadProperty(child, InvLib.CustomerInfo.IdProperty, id);
   LoadProperty(child, InvLib.CustomerInfo.NameProperty, name);
   LoadProperty(child, InvLib.CustomerInfo.LocationProperty, lat + "/" + lng);
   LoadProperty(child, InvLib.CustomerInfo.OrderCountProperty, orderCount);
   return child;
 }
Esempio n. 2
0
        private InvLib.CustomerInfo MakeChild(int id, string name, int lat, int lng, int orderCount)
        {
            var child = new InvLib.CustomerInfo();

            LoadProperty(child, InvLib.CustomerInfo.IdProperty, id);
            LoadProperty(child, InvLib.CustomerInfo.NameProperty, name);
            LoadProperty(child, InvLib.CustomerInfo.LocationProperty, lat + "/" + lng);
            LoadProperty(child, InvLib.CustomerInfo.OrderCountProperty, orderCount);
            return(child);
        }
Esempio n. 3
0
    private void ListBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
    {
      // set _selectedItem
      var lb = sender as ListBox;
      if (lb != null && lb.SelectedItem != null)
        _selectedItem = lb.SelectedItem as InvLib.CustomerInfo;

      // display product view
      if (_selectedItem != null)
        DisplayCustomerView();
    }
Esempio n. 4
0
        private void ListBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            // set _selectedItem
            var lb = sender as ListBox;

            if (lb != null && lb.SelectedItem != null)
            {
                _selectedItem = lb.SelectedItem as InvLib.CustomerInfo;
            }

            // display product view
            if (_selectedItem != null)
            {
                DisplayCustomerView();
            }
        }