예제 #1
0
 private void btnMore_Click(object sender, RoutedEventArgs e)
 {
     NewsMore newsview = new NewsMore();
     string   titel    = "新闻动态";
     var      host     = ProgramManager.ShowProgram(titel, string.Empty,
                                                    "DD71AE94-F53B-4B5A-AD09-8F3402C9A280", newsview, true, true, null);
 }
예제 #2
0
        public void ShowNewsInfo(string strNewsID)
        {
            NewsMore manager = new NewsMore(strNewsID);

            if (ViewModel.Context.MainPanel != null)
            {
                if (ViewModel.Context.MainPanel.DefaultContent != null)
                {
                    IWebpart webpart = ViewModel.Context.MainPanel.DefaultContent as IWebpart;
                    if (webpart != null)
                    {
                        webpart.Stop();
                    }
                }
                Stop();
                ViewModel.Context.MainPanel.Navigation(manager, "新    闻");


                //Cleanup();
            }
        }
예제 #3
0
파일: News.xaml.cs 프로젝트: JuRogn/OA
 private void btnMore_Click(object sender, RoutedEventArgs e)
 {
     NewsMore newsview = new NewsMore();
     string titel = "新闻动态";
     var host = ProgramManager.ShowProgram(titel, string.Empty,
         "DD71AE94-F53B-4B5A-AD09-8F3402C9A280", newsview, true, true, null);
 }
예제 #4
0
파일: News.xaml.cs 프로젝트: JuRogn/OA
        public void ShowNewsInfo(string strNewsID)
        {
            NewsMore manager = new NewsMore(strNewsID);
            if (ViewModel.Context.MainPanel != null)
            {
                if (ViewModel.Context.MainPanel.DefaultContent != null)
                {
                    IWebpart webpart = ViewModel.Context.MainPanel.DefaultContent as IWebpart;
                    if (webpart != null)
                        webpart.Stop();

                }
                Stop();
                ViewModel.Context.MainPanel.Navigation(manager, "新    闻");


                //Cleanup();
            }
        }