コード例 #1
0
        public MainViewModel()
        {
            ExitApplicationCommand = new RelayCommand(ExitApplicationCommandHandler);
            OpenAddAccountDialogCommand = new RelayCommand(OpenAddAccountDialogCommandHandler);

            DetailViewModel = new StorageViewControlViewModel();
        }
コード例 #2
0
        public StorageViewControlViewModel()
        {
            IStorageAccountSource source = StorageAccountSourceFactory.GetCurrent();
            StorageAccountList = new ObservableCollection<StorageAccountViewModel>(
                source.GetStorageAccounts().Select(f => new StorageAccountViewModel(f)));

            SelectedItemChangedCommand = new RelayCommand(HandleSelectedItemChangedCommand);
        }