private void LBP_PreviewMouseUp(object sender, MouseButtonEventArgs e)
        {
            if (LBF.SelectedIndex >= 0)
            {
                string       GetId = (KeepID[LBF.SelectedIndex].Content).ToString();
                StrangerPage SP    = new StrangerPage(ID, Convert.ToInt32(GetId));//LBS.SelectedIndex

                SP.Show();
            }
        }
示例#2
0
 private void listBox_PreviewMouseUp(object sender, MouseButtonEventArgs e)
 {
     //Messages msg = new Messages(ID, LBS.SelectedIndex + 1);
     //MessageBox.Show("ID" + Convert.ToString(ID), Convert.ToString(LBP.SelectedIndex));
     //msg.Show();
     if (LBS.SelectedIndex >= 0)
     {
         string GetId = (KeepID[LBS.SelectedIndex].Content).ToString();
         //string GetId = ((LBS.SelectedItem) as Pers).id.ToString();
         //MessageBox.Show(GetId, GetId);
         StrangerPage SP = new StrangerPage(ID, Convert.ToInt32(GetId));//LBS.SelectedIndex
         SP.Show();
     }
 }