Esempio n. 1
0
 private void OnSettingChanged(SettingChangedMessage msg)
 {
     if (msg.Name == SettingsStore.PropertyIdleNotification)
     {
         SyncNotification();
     }
 }
 private void OnSettingChanged(SettingChangedMessage msg)
 {
     // Implement a GetPropertyName
     if (msg.Name == "GroupedTimeEntries")
     {
         SyncCollectionView();
     }
 }
Esempio n. 3
0
            private void DispatchSettingChanged(SettingChangedMessage msg)
            {
                // Protect against Java side being GCed
                if (Handle == IntPtr.Zero)
                {
                    return;
                }

                OnSettingChanged(msg);
            }
Esempio n. 4
0
            protected override void OnSettingChanged(SettingChangedMessage msg)
            {
                if (DataSource == null)
                {
                    return;
                }

                if (msg.Name == DataSource.SettingName)
                {
                    Rebind();
                }
            }
            private void OnSettingChanged(SettingChangedMessage msg)
            {
                // Protect against Java side being GCed
                if (Handle == IntPtr.Zero)
                {
                    return;
                }

                if (msg.Name == SettingsStore.PropertyGotWelcomeMessage)
                {
                    NotifyDataSetChanged();
                }
            }
Esempio n. 6
0
        private void OnSettingChanged(SettingChangedMessage msg)
        {
            // Protect against Java side being GCed
            if (Handle == IntPtr.Zero)
            {
                return;
            }

            if (msg.Name == SettingsStore.PropertyGroupedTimeEntries)
            {
                EnsureAdapter();
            }
        }
Esempio n. 7
0
        void OnSettingChanged(SettingChangedMessage message)
        {
            switch (message.Name)
            {
            case "IconRows":
                int  iconRows = (int)message.Value;
                bool slideIn  = iconRows < IconRows;

                ClearAnimations();

                IconRows = iconRows;

                /*
                 * Position position = CalculateSlideOutPosition();
                 * //Position position = slideIn ? CalculateSlideInPosition() : CalculateSlideOutPosition();
                 * //Position position = new Position();
                 *
                 * if (_appbar.ReserveScreen)
                 * {
                 *  Width = 0;
                 *  Height = 0;
                 *
                 *  _appbar.Resize(ref position);
                 * }
                 *
                 * if (slideIn)
                 *  _actionQueue.QueueAction(SlideOut);
                 * else
                 *  _actionQueue.QueueAction(SlideOut);
                 */

                if (_appbar.ReserveScreen)
                {
                    Position position = CalculateSlideOutPosition();

                    Width  = 0;
                    Height = 0;

                    _appbar.Resize(ref position);
                }

                _actionQueue.QueueAction(SlideOut);
                break;

            case "ActiveScreen":
                ActiveScreen         = Helper.GetScreenFromName((string)message.Value);
                _appbar.ActiveScreen = ActiveScreen;

                _actionQueue.QueueAction(SlideInMinimize);
                _actionQueue.QueueAction(MinimizeWindow);
                _actionQueue.QueueAction(SlideOut);
                break;

            case "DockPosition":
                DockPosition oldValue = DockPosition;
                DockPosition newValue = (DockPosition)message.Value;

                DispatcherHelper.CheckBeginInvokeOnUI(() =>
                {
                    Log.DebugFormat("ChangeDockPosition, {0} to {1}", oldValue, newValue);

                    DockPosition = newValue;
                    _appbar.Dock(DockPosition);

                    _actionQueue.QueueAction(SlideInMinimize, oldValue);
                    _actionQueue.QueueAction(MinimizeWindow);
                    _actionQueue.QueueAction(SlideOut);
                });
                break;

            case "AutoHide":
                AutoHide = (bool)message.Value;
                break;

            case "AutoHideDelay":
                // TODO: I'm not even saving it in the dependancy property, maybe I
                // should remove the  dependancy property?
                _appbar.AutoHideDelay = (int)message.Value;
                break;

            case "PopupDelay":
                // TODO: I'm not even saving it in the dependancy property, maybe I
                // should remove the  dependancy property?
                _appbar.PopupDelay = (int)message.Value;
                break;

            case "ReserveScreen":
                _appbar.ReserveScreen = (bool)message.Value;
                if (_appbar.ReserveScreen)
                {
                    _actionQueue.QueueAction(MinimizeWindow);
                    _actionQueue.QueueAction((parameter) =>
                    {
                        _appbar.Reserve();
                        //HandleFullScreenRdpApps();
                    });
                    _actionQueue.QueueAction(SlideOut);
                }
                else
                {
                    _actionQueue.QueueAction(SlideInMinimize);
                    _actionQueue.QueueAction((parameter) => _appbar.Unreserve());
                    _actionQueue.QueueAction(SlideOut);
                }
                break;
            }
        }
Esempio n. 8
0
 private void OnSettingChanged(SettingChangedMessage msg)
 {
     Rebind();
 }
 private void OnSettingChanged (SettingChangedMessage msg)
 {
     // Implement a GetPropertyName
     if (msg.Name == "GroupedTimeEntries") {
         SyncCollectionView ();
     }
 }
Esempio n. 10
0
 protected abstract void OnSettingChanged(SettingChangedMessage msg);