コード例 #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);
     }
 }
コード例 #2
0
        public bool IsEqual(IDropdownEntry other)
        {
            var otherOther = other as OtherDropdownEntry;

            return(otherOther != null && this.DisplayName == otherOther.DisplayName);
        }
コード例 #3
0
        public bool IsEqual(IDropdownEntry other)
        {
            var otherMulti = other as MultiProjectDropdownEntry;

            return(otherMulti != null && this.Configuration.IsEqual(otherMulti.Configuration));
        }
コード例 #4
0
        public bool IsEqual(IDropdownEntry other)
        {
            var otherSingle = other as SingleProjectDropdownEntry;

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