private void cpCombo_EntityChanged(object sender, bool userInteraction, object oldValue, object newValue) { if (userInteraction) { Lite<DashboardEntity> cp = newValue as Lite<DashboardEntity>; Current = cp == null ? null : Server.Return((IDashboardServer cps) => cps.RetrieveDashboard(cp)); } }
private void reload_Click(object sender, RoutedEventArgs e) { cpCombo.LoadNow(); if (Current != null) { var lite = Current.ToLite(); Current = null; Current = Server.Return((IDashboardServer cps) => cps.RetrieveDashboard(lite)); } cpCombo.Entity = Current.ToLite(); }
private void reload_Click(object sender, RoutedEventArgs e) { var fresh = Current.ToLite().Retrieve(); Current = null; Current = fresh; }
void DashboardView_Loaded(object sender, RoutedEventArgs e) { Current = Server.Return((IDashboardServer cps) => cps.GetHomePageDashboard()); cpCombo.Entity = Current.ToLite(); }