Esempio n. 1
0
            public int CompareTo(object rhs)
            {
                SceneNodeCategory.CategoryOrder categoryOrder = (SceneNodeCategory.CategoryOrder)rhs;
                int num = this.priority - categoryOrder.priority;

                if (num != 0)
                {
                    return(num);
                }
                return(this.category.get_CategoryName().CompareTo(categoryOrder.category.get_CategoryName()));
            }
Esempio n. 2
0
 public SceneNodeCategory(CategoryLocalizationHelper.CategoryName canonicalName, string localizedName, IMessageLoggingService messageLogger)
     : base(localizedName)
 {
     this.canonicalName = canonicalName;
     this.messageLogger = messageLogger;
     this.CategoryEditors.CollectionChanged += new NotifyCollectionChangedEventHandler(this.CategoryEditors_CollectionChanged);
     this.basicProperties    = new ObservableCollectionWorkaround <PropertyEntry>();
     this.advancedProperties = new ObservableCollectionWorkaround <PropertyEntry>();
     this.order = new SceneNodeCategory.CategoryOrder(this);
     this.InitializeIcons();
 }