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; }
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); }
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(); }
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(); } }