/// <summary> /// Initializes a new instance of the <see cref="MainWindowViewModel"/> class. /// </summary> public MainWindowViewModel() { /* attach profiles-changed event */ HostfileManager.Current.ProfilesChanged += this.ProfilesChanged; /* load host file view-model */ this.innerViewModel = new HostsFileViewModel(); /* attach event listeners */ this.InnerViewModel.HostsFileObjectChanged += this.InnerViewModelHostsFileObjectChanged; }