public ConfigurationWindowViewModel() { configurationItemVMs.SetValue(new System.Collections.ObjectModel.ObservableCollection <ConfigurationItemViewModel>()); ConfigurationItemVMs.Add(new ConfigurationItemViewModel(ApplicationVM.ProfileVM.PersonalInfoConfigurationVM)); ConfigurationItemVMs.Add(new ConfigurationItemViewModel(ApplicationVM.ProfileVM.AudioConfigurationVM)); ConfigurationItemVMs.Add(new ConfigurationItemViewModel(ApplicationVM.ProfileVM.VideoConfigurationVM)); ConfigurationItemVMs.Add(new ConfigurationItemViewModel(ApplicationVM.ProfileVM.SecurityConfigurationVM)); currentConfigurationItemVM.SetValue(ConfigurationItemVMs[0]); Initialize(); }
public ConfigurationWindowViewModel(ConfigurationItemViewModel customizedConfig) { configurationItemVMs.SetValue(new System.Collections.ObjectModel.ObservableCollection <ConfigurationItemViewModel>()); ConfigurationItemVMs.Add(customizedConfig); Initialize(); }