private void _ChangeStartupProject(IDropdownEntry newStartupProject) { dropdownService.CurrentDropdownValue = newStartupProject; if (newStartupProject == null) { // No startup project _ActivateSingleProjectConfiguration(null); return; } if (newStartupProject is SingleProjectDropdownEntry) { // Single startup project var project = (newStartupProject as SingleProjectDropdownEntry).Project; _ActivateSingleProjectConfiguration(project); return; } if (newStartupProject is MultiProjectDropdownEntry) { // Multiple startup projects var config = (newStartupProject as MultiProjectDropdownEntry).Configuration; _ActivateMultiProjectConfiguration(config); } }
public bool IsEqual(IDropdownEntry other) { var otherOther = other as OtherDropdownEntry; return(otherOther != null && this.DisplayName == otherOther.DisplayName); }
public bool IsEqual(IDropdownEntry other) { var otherMulti = other as MultiProjectDropdownEntry; return(otherMulti != null && this.Configuration.IsEqual(otherMulti.Configuration)); }
public bool IsEqual(IDropdownEntry other) { var otherSingle = other as SingleProjectDropdownEntry; return(otherSingle != null && this.Project == otherSingle.Project); }