Exemplo n.º 1
0
        public Page2(NavigationWindowService <InitializeData> service)
        {
            InitializeComponent();

            var model = new Page2Model(service.Share);

            model.CanChenged += Model_CanChenged;
            DataContext       = new ViewModels.Page2ViewModel(service, model);
        }
Exemplo n.º 2
0
        public Page2ViewModel(NavigationWindowService <InitializeData> bindableValue, Page2Model model) : base(bindableValue?.NavigationValue)
        {
            this.model = model;

            GetPathBtClick    = new DelegateCommand(GetPathBt_Click);
            AutoSearchBtClick = new DelegateCommand(AutoSearchBt_Click);

            ServerFilePathText = model.ToReactivePropertyAsSynchronized(m => m.ServerFilePathText);
        }