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 / (int)scroll.ViewportWidth; int n = 0; foreach (ActivityList temp in m_pActivityListInfo) { if (nSelIndex == n) { strDetail = temp.ActivityMainDetail; break; } n++; } } Introduction IntroductionWin = new Introduction(strDetail, 2); IntroductionWin.ShowDialog(); }
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.ShowDialog(); } }
private void Ggjs_Page_Flow_MouseLeftButtonUp(object sender, MouseButtonEventArgs e) { try { if (strMode == "1") { Introduction IntroductionWin = new Introduction(m_strMonkinfoDetail, 3); IntroductionWin.ShowDialog(); } else if (strMode == "2") { Introduction IntroductionWin = new Introduction(m_strActivityinfoDetail, 2); IntroductionWin.ShowDialog(); } } catch (Exception ex) { } }
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.ShowDialog(); }