Exemplo n.º 1
0
 private void OnDashboardsView(object sender, EventArgs e)
 {
     if (DashboardsView == null)
     {
         DashboardsView = new DashboardsView();
     }
     WorkArea.Content = DashboardsView;
 }
Exemplo n.º 2
0
        protected override void OnViewLoaded(object view)
        {
            base.OnViewLoaded(view);
            this.view = (DashboardsView)view;

            AppState.Dashboards.CollectionChanged += DashboardViews_CollectionChanged;
            AppState.Dashboards.ActiveDashboardChanged += DashboardViews_ActiveDashboardChanged;

            foreach (var d in AppState.Dashboards)
            {
                AddDashboard(d);
            }

            
        }