Inheritance: INotifyPropertyChanged
 public DashboardDataContext(Dashboard dashboard)
 {
     _dashboard = dashboard;
     GwupeClientAppContext.CurrentAppContext.CurrentUserManager.PropertyChanged +=
         (sender, args) => { if (args.PropertyName.Equals("ActiveShoreCode"))
                             {
                                 OnPropertyChanged("ShortCode");
                             }
     };
     DashboardStateManager = new DashboardStateManager();
     DashboardStateManager.PropertyChanged += (sender, args) =>
     {
         if (args.PropertyName.Equals("DashboardState"))
         {
             OnPropertyChanged("DashboardState");
         }
     };
 }
Exemple #2
0
 public DashboardDataContext(Dashboard dashboard)
 {
     _dashboard = dashboard;
     GwupeClientAppContext.CurrentAppContext.CurrentUserManager.PropertyChanged +=
         (sender, args) => { if (args.PropertyName.Equals("ActiveShoreCode")) OnPropertyChanged("ShortCode"); };
     DashboardStateManager = new DashboardStateManager();
     DashboardStateManager.PropertyChanged += (sender, args) =>
     {
         if (args.PropertyName.Equals("DashboardState"))
         {
             OnPropertyChanged("DashboardState");
         }
     };
 }