コード例 #1
0
 private void showtipsbutton_Click(object sender, RoutedEventArgs e)
 {
     if (businessGrid.SelectedIndex > -1)
     {
         BusinessDetails businessWindow = new BusinessDetails(((Business)businessGrid.SelectedItem).bid, usersearchlist.SelectedItem.ToString());
         businessWindow.Show();
     }
 }
コード例 #2
0
 private void businessGrid_SelectionChanged(object sender, SelectionChangedEventArgs e)
 {
     if (businessGrid.SelectedIndex > -1)
     {
         Business B = businessGrid.Items[businessGrid.SelectedIndex] as Business;
         if ((B.bid != null) && (B.bid.ToString().CompareTo("") != 0))
         {
             BusinessDetails businessWindow = new BusinessDetails(B.bid.ToString());
             businessWindow.Show();
         }
     }
 }