Ejemplo n.º 1
0
        private void TeamMateDetail_Click(object sender, RoutedEventArgs e)
        {
            int npcIndex = TeamListView.SelectedIndex;

            if (npcIndex == -1)
            {
                return;
            }
            Console.WriteLine(ConverID(teamNpcList[npcIndex].iNpcID.ToString(), 1));
            //开启一个新的窗口用来显示用户Info
            NpcInfo npcinfo = new NpcInfo(teamNpcList[npcIndex]);

            npcinfo.Top  = this.Top;
            npcinfo.Left = this.Left * 0.8;
            npcinfo.Show();
        }
Ejemplo n.º 2
0
        private void TeamListView_MouseDoubleClick(object sender, System.Windows.Input.MouseButtonEventArgs e)
        {
            int npcIndex = TeamListView.SelectedIndex;

            if (npcIndex == -1)
            {
                return;
            }
            Console.WriteLine(ConverID(teamNpcList[npcIndex].iNpcID.ToString(), 1));
            //开启一个新的窗口用来显示用户Info
            NpcInfo npcinfo = new NpcInfo(teamNpcList[npcIndex]);

            npcinfo.Top  = this.Top;
            npcinfo.Left = this.Left * 0.8;
            npcinfo.Show();
        }