Ejemplo n.º 1
0
 public DataViewerViewModel(Infrastructure infrastructure, TypesListViewModel typesListViewModel,
     PaggerViewModel paggerModel)
     : base(infrastructure)
 {
     _infrastructure = infrastructure;
     TypesList = typesListViewModel;
     base.DisplayName = "Data Viewer";
     PaggerModel = paggerModel;
     paggerModel.OnPageChanged = View;
 }
Ejemplo n.º 2
0
        public MappingsInfoViewModel(TypesListViewModel typesListViewModel, Infrastructure infrastructure)
            : base(infrastructure)
        {
            _infrastructure = infrastructure;
            TypesList = typesListViewModel;
            TypesList.PropertyChanged += (sender, args) =>
            {
                if (args.PropertyName != "SelectedType") return;

                LoadMapping();
            };
        }