Esempio n. 1
0
        protected override async void OnClick()
        {
            DockpaneViewModel dvm = DockpaneUtils.FindDockPane() as DockpaneViewModel;

            if (dvm == null)
            {
                this.Enabled = false;
                return;
            }
            if (!dvm.HasBookmarksLoaded)
            {
                await dvm.LoadBookmarks();
            }
            if (dvm.Cities == null || dvm.Cities.Count() == 0)
            {
                return;
            }

            if (_index >= dvm.Cities.Count())
            {
                _index = 0;
            }

            dvm.Cities[_index++].ZoomTo();
        }
        protected override void OnClick()
        {
            // TODO : Add implementation here
            DockpaneViewModel dvm = DockpaneUtils.FindDockPane() as DockpaneViewModel;

            dvm.IsPaletteSupport = false;
            dvm.IsBasicSupport   = true;
        }
Esempio n. 3
0
        protected override void OnUpdate()
        {
            if (this.Enabled)
            {
                return;
            }
            DockpaneViewModel dvm = DockpaneUtils.FindDockPane() as DockpaneViewModel;

            this.Enabled = (dvm != null);
        }