public ContentsOptionViewModel(ContentSetting contentOption)
 {
     this.contentOption    = contentOption;
     limitations           = new[] { 1000, 2000, 3000, 4000, 5000, 6000, 7000, 8000, 12000, 20000 };
     tileSizes             = new[] { 128, 256, 512, 1024 };
     defaultBaseMapOptions = new[] { DefaultBaseMap.None, DefaultBaseMap.WorldMapKit, DefaultBaseMap.OpenStreetMaps, DefaultBaseMap.BingMaps };
     altitudeModes         = new[] { AltitudeMode.Absolute, AltitudeMode.ClampToGround, AltitudeMode.RelativeToGround };
 }
        protected override void LoadCore()
        {
            base.LoadCore();
            option = Singleton <ContentSetting> .Instance;

            if (!RibbonEntries.Contains(contentEntry))
            {
                RibbonEntries.Add(contentEntry);
            }
            if (!StatusBarItems.Contains(StatusBar.GetInstance()))
            {
                StatusBarItems.Add(StatusBar.GetInstance());
            }
            GisEditor.DockWindowManager.DocumentWindows.CollectionChanged -= DocumentWindows_CollectionChanged;
            GisEditor.DockWindowManager.DocumentWindows.CollectionChanged += DocumentWindows_CollectionChanged;
        }