// OrderedINamableWrapper.cs
// Copyright (c) 2015 Bentley Systems, Incorporated. All Rights Reserved.

using Haestad.Support.Support;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Haestad.Framework.UI.Integration
{
    internal class OrderedINamableWrapper : INamable
    {
        #region Constructor
        public OrderedINamableWrapper(int index, INamable namableObject)
        {
            Index = index;
            NamableObject = namableObject;
        }
        #endregion

        #region INamable Members
        public string Name
        {
            get { return NamableObject.Name; }
        }
        #endregion

        #region Public Properties
        public int Index
        {
            get;
            private set;
        }

        public INamable NamableObject
        {
            get;
            private set;
        }
        #endregion
    }
}
