public override void RaiseCanExecuteChanges() { base.RaiseCanExecuteChanges(); if (CheckFreestyleDatabaseCommand == null) { return; } CheckFreestyleDatabaseCommand.RaiseCanExecuteChanged(); LaunchCommand.RaiseCanExecuteChanged(); ShowFtpLogCommand.RaiseCanExecuteChanged(); ShutdownCommand.RaiseCanExecuteChanged(); }
/// <summary> /// Called when a property on the model is changed. /// Used to pass through property changed events and /// update the parent view model instance. /// </summary> protected override void OnBasePropertyChanged(string propertyName) { if (propertyName == Property <Launcher> .Name(p => p.Parent)) { Parent = new LaunchGroupViewModel(Model.Parent); } else if (propertyName == Property <Launcher> .Name(p => p.IsValid)) { LaunchCommand.RaiseCanExecuteChanged(); } base.OnBasePropertyChanged(propertyName); }