Exemple #1
0
        private void Activity_Detail_Click(object sender, RoutedEventArgs e)
        {
            string strDetail = @"";

            if (pWebData != null)
            {
                ListViewAutomationPeer lvap = new ListViewAutomationPeer(ActivityInfo_ListView);
                var svap      = lvap.GetPattern(PatternInterface.Scroll) as ScrollViewerAutomationPeer;
                var scroll    = svap.Owner as ScrollViewer;
                int nSelIndex = (int)scroll.ContentHorizontalOffset / 922;

                int n = 0;
                foreach (ActivityList temp in m_pActivityListInfo)
                {
                    if (nSelIndex == n)
                    {
                        strDetail = temp.ActivityMainDetail;
                        break;
                    }
                    n++;
                }

                /*ActivityInfo_ListView.SelectedItems(nSelIndex);*/

                //strDetail = pWebData.m_pActivityInfoData.body.data.info.ToString();
            }

            Introduction IntroductionWin = new Introduction(strDetail, 2);

            //IntroductionWin.Owner = ParentWindow;
            IntroductionWin.ShowDialog();
        }
Exemple #2
0
        private void ActivityInfo_Label_MouseUp(object sender, MouseButtonEventArgs e)
        {
            string strDetail = strActivityInfoDetail;

            if (strDetail != null && strDetail.Length > 0)
            {
                Introduction IntroductionWin = new Introduction(strDetail, 2);
                //IntroductionWin.Owner = ParentWindow;
                IntroductionWin.ShowDialog();
            }
        }
Exemple #3
0
        private void TemplInfo_Detail_Click(object sender, RoutedEventArgs e)
        {
            string strDetail = @"";

            if (pWebData != null &&
                pWebData.m_pTempInfoData != null &&
                pWebData.m_pTempInfoData.body != null &&
                pWebData.m_pTempInfoData.body.data != null &&
                pWebData.m_pTempInfoData.body.data.detail != null)
            {
                strDetail = pWebData.m_pTempInfoData.body.data.detail;
            }

            Introduction IntroductionWin = new Introduction(strDetail, 1);

            //IntroductionWin.Owner = ParentWindow;
            IntroductionWin.ShowDialog();
        }
Exemple #4
0
 private void MonkInfo_ListView_SelectionChanged(object sender, SelectionChangedEventArgs e)
 {
     try
     {
         monkinfoDisp emp = MonkInfo_ListView.SelectedItem as monkinfoDisp;
         if (emp != null)
         {
             if (m_MonkinfoDetail.ContainsKey(emp.MonkInfoIndex))
             {
                 string       strDetail       = m_MonkinfoDetail[emp.MonkInfoIndex];
                 Introduction IntroductionWin = new Introduction(strDetail, 3);
                 //IntroductionWin.Owner = ParentWindow;
                 IntroductionWin.ShowDialog();
             }
             MonkInfo_ListView.UnselectAll();
         }
     }
     catch (Exception ex) { }
 }