private void Window_Loaded(object sender, RoutedEventArgs e) { List <string> vs = _infoClient.AllSellInfo().Select(p => p.FormatName).Distinct().ToList(); cbFormat.ItemsSource = _infoClient.AllSellInfo().Select(p => p.FormatName).Distinct(); cbFormat.SelectedIndex = 0; }
private void Window_Loaded(object sender, RoutedEventArgs e) { try { List <SellInfo> vs = _infoClient.AllSellInfo(); cbCashier.ItemsSource = _infoClient.AllSellInfo().Select(p => p.SellerName).Distinct(); cbCashier.SelectedIndex = 0; txtDiscname.Text = _discName; } catch (Exception ex) { MessageBox.Show(ex.Message); } }
private void Window_Loaded(object sender, RoutedEventArgs e) { try { List <DiscClient.ServiceReference1.SellInfo> sellInfos = _infoClient.AllSellInfo(); List <Disc> discs = _infoClient.ShowAllDiscs(); AllDisc.ItemsSource = _infoClient.ShowAllDiscs(); //infoGrid.ItemsSource = _infoClient.AllSellInfo(); //cbGroup.ItemsSource = _infoClient.AllSellInfo().Select(p=>p.BandName).Distinct(); //cbGroup.SelectedIndex = 0; //List<GroupInfo> group = _infoClient.TotalAmountSellGroup("Наутилус"); } catch (FaultException ex) { MessageBox.Show(ex.Message); } catch (Exception ex) { MessageBox.Show(ex.Message); } }
private void Window_Loaded(object sender, RoutedEventArgs e) { infoGrid.ItemsSource = _infoClient.AllSellInfo(); txtPopular.Text = _infoClient.MostPopularGroup(); }