void ReloadOnOutputChange(object sender, ProjectPropertyChangedArgs e) { if (String.Equals(e.PropertyName, "OutputType", StringComparison.OrdinalIgnoreCase) && !String.Equals(e.OldValue, e.NewValue, StringComparison.OrdinalIgnoreCase)) { TrackedFileNode crateNode = this.GetCrateFileNode(e.OldValue); if (crateNode != null) crateNode.IsEntryPoint = false; int temp; this.ReloadCore(out temp); this.GetCrateFileNode(e.NewValue).IsEntryPoint = true; } }
/// <summary> /// Whenever project property has changed - refresh project hierarachy. /// </summary> private void CommonProjectNode_OnProjectPropertyChanged(object sender, ProjectPropertyChangedArgs e) { switch (e.PropertyName) { case CommonConstants.StartupFile: RefreshStartupFile(this, CommonUtils.GetAbsoluteFilePath(ProjectHome, e.OldValue), CommonUtils.GetAbsoluteFilePath(ProjectHome, e.NewValue)); break; } }
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(); }