コード例 #1
0
        public MainViewModel()
        {
            var config = new MapperConfiguration(cfg => cfg.AddProfile <ViewModelProfile>());

            mapper = config.CreateMapper();

            _propertiesCommand = new AdhrCommand(
                (param) => { Properties(); }
                );
            _connectCommand = new AdhrCommand(
                async(param) => { await refreshData(); }
                );

            PropertyChanged += MainViewModel_PropertyChanged;

            SettingsViewModel = new SettingsViewModel();
        }
コード例 #2
0
 public AdhrUserViewModel()
 {
     _updateCommand = new AdhrCommand(
         async(param) => { await Update(); }, (user) => { return(IsDirty); }
         );
 }