Пример #1
0
        public NewsWindow AddNews()
        {
            NewsWindow w = (NewsWindow)AddWindow(NewsWindowFactory, newInstance: true);

            w.NewsView.Source = new Uri(ActivityWindow.URL_NEWS, UriKind.Absolute);
            return(w);
        }
Пример #2
0
 private void BindNewsWindow(NewsWindow window)
 {
     if (window.View != null && View != null)
     {
         try
         {
             //NOP
         }
         catch (Exception ex)
         {
             ErrorDialog.Show("Failed to bind News component", ex);
         }
     }
 }