public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/EmonMonitor;component/MainPage.xaml", System.UriKind.Relative));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.FeedsDashboardViewOnPage = ((EmonMonitor.View.FeedsDashboardView)(this.FindName("FeedsDashboardViewOnPage")));
     this.StatusBarViewOnPage = ((EmonMonitor.View.StatusBarView)(this.FindName("StatusBarViewOnPage")));
 }
예제 #2
0
 public void InitializeComponent()
 {
     if (_contentLoaded)
     {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/EmonMonitor;component/MainPage.xaml", System.UriKind.Relative));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.FeedsDashboardViewOnPage = ((EmonMonitor.View.FeedsDashboardView)(this.FindName("FeedsDashboardViewOnPage")));
     this.StatusBarViewOnPage      = ((EmonMonitor.View.StatusBarView)(this.FindName("StatusBarViewOnPage")));
 }