예제 #1
0
        private void lstMarketlerArama_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            int            marketid;
            View_Marketler MarketBilgi = lstMarketlerArama.SelectedItem as View_Marketler;

            if (MarketBilgi != null)
            {
                lstMarketlerArama.SelectedIndex = -1;
                marketid = MarketBilgi.MarketId;
                NavigationService.Navigate(new Uri("/MarketSayfasi.xaml?marketid=" + marketid, UriKind.RelativeOrAbsolute));
            }
        }
        private void lstMarketlerim_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            int            marketid;
            string         marketad;
            View_Marketler MarketBilgi = lstMarketlerim.SelectedItem as View_Marketler;

            if (MarketBilgi != null)
            {
                marketid = MarketBilgi.MarketId;
                marketad = MarketBilgi.MarketAdi;
                NavigationService.Navigate(new Uri("/MarketSayfasi.xaml?marketid=" + marketid + "&marketad=" + marketad, UriKind.RelativeOrAbsolute));
            }
        }
        private void lstMarketlerimProfil_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            txtYeniFiyat.Visibility     = Visibility.Collapsed;
            btnGuncelleFiyat.Visibility = Visibility.Collapsed;

            int    MarketId;
            string marketad;

            View_Marketler Market = (View_Marketler)lstMarketlerimProfil.SelectedItem;

            if (Market != null)
            {
                MarketId = Market.MarketId;
                marketad = Market.MarketAdi;
                NavigationService.Navigate(new Uri("/MarketSayfasi.xaml?marketid=" + MarketId + "&marketad=" + marketad, UriKind.RelativeOrAbsolute));
            }
        }