public MainViewModel() { ExitApplicationCommand = new RelayCommand(ExitApplicationCommandHandler); OpenAddAccountDialogCommand = new RelayCommand(OpenAddAccountDialogCommandHandler); DetailViewModel = new StorageViewControlViewModel(); }
public StorageViewControlViewModel() { IStorageAccountSource source = StorageAccountSourceFactory.GetCurrent(); StorageAccountList = new ObservableCollection<StorageAccountViewModel>( source.GetStorageAccounts().Select(f => new StorageAccountViewModel(f))); SelectedItemChangedCommand = new RelayCommand(HandleSelectedItemChangedCommand); }