private void button21_Click(object sender, RoutedEventArgs e)
 {
     if (businessGrid.SelectedIndex > -1)
     {
         Business B = businessGrid.Items[businessGrid.SelectedIndex] as Business;
         if ((B.bid != null) && (B.bid.ToString().CompareTo("") != 0))
         {
             BusinessDetails businesssWindow = new BusinessDetails(B.bid.ToString(), "---1lKK3aKOuomHnwAkAow");
             businesssWindow.Show();
         }
     }
 }
 private void businessGrid_SelectionChanged_1(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 businesssWindow = new BusinessDetails(B.bid.ToString());
             businesssWindow.Show();
         }
     }
 }
Esempio n. 3
0
        private void businessGrid_SelectionChanged_1(object sender, SelectionChangedEventArgs e)
        {
            if (businessGrid.SelectedIndex > -1)
            {
                string currentUser = "";   //"---1lKK3aKOuomHnwAkAow";
                if (listUserIds.SelectedIndex > -1)
                {
                    currentUser = listUserIds.SelectedItem.ToString();
                }

                Business B = businessGrid.Items[businessGrid.SelectedIndex] as Business;
                if ((B.bid != null) && (B.bid.ToString().CompareTo("") != 0))
                {
                    BusinessDetails businesssWindow = new BusinessDetails(B.bid.ToString(), currentUser);
                    businesssWindow.Show();
                }
            }
        }