void PythonProjectNode_OnProjectPropertyChanged(object sender, ProjectPropertyChangedArgs e) { if (e.PropertyName == CommonConstants.StartupFile) { if (this.PropertyPage != null && this.PropertyPage.Control != null) { var ctrl = (PythonGeneralyPropertyPageControl)this.PropertyPage.Control; ctrl.StartupFile = e.NewValue; } } }
/// <summary> /// Whenever project property has changed - refresh project hierarachy. /// </summary> private void CommonProjectNode_OnProjectPropertyChanged(object sender, ProjectPropertyChangedArgs e) { if (e.PropertyName == CommonConstants.StartupFile) { // just update the old and new items... RefreshStartupFile(this, MakeAbsolutePath(e.OldValue), MakeAbsolutePath(e.NewValue)); } else { RefreshHierarchy(); } }
private void OnProjectPropertyChanged(object sender, ProjectPropertyChangedArgs args) { // In theory here we should decide if we have to invalidate the group according with the kind of property // that is changed. InvalidateGroup(); }