Ejemplo n.º 1
0
 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);
     }
 }
Ejemplo n.º 2
0
        public bool IsEqual(IDropdownEntry other)
        {
            var otherOther = other as OtherDropdownEntry;

            return(otherOther != null && this.DisplayName == otherOther.DisplayName);
        }
Ejemplo n.º 3
0
        public bool IsEqual(IDropdownEntry other)
        {
            var otherMulti = other as MultiProjectDropdownEntry;

            return(otherMulti != null && this.Configuration.IsEqual(otherMulti.Configuration));
        }
Ejemplo n.º 4
0
        public bool IsEqual(IDropdownEntry other)
        {
            var otherSingle = other as SingleProjectDropdownEntry;

            return(otherSingle != null && this.Project == otherSingle.Project);
        }