Пример #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;
 }
Пример #2
0
        public MappingsInfoViewModel(TypesListViewModel typesListViewModel, Infrastructure infrastructure)
            : base(infrastructure)
        {
            _infrastructure = infrastructure;
            TypesList = typesListViewModel;
            TypesList.PropertyChanged += (sender, args) =>
            {
                if (args.PropertyName != "SelectedType") return;

                LoadMapping();
            };
        }