public BackgroundManagerModel()
 {
   _selectedItemProperty = new WProperty(typeof (ListItem), null);
   _selectedItemProperty.Attach(SetBackgroundImage);
   _backgroundImageProperty = new WProperty(typeof (string), string.Empty);
   SetBackgroundImage();
 }
 void Init()
 {
   _uriSourceProperty = new SProperty(typeof(string), null);
   _decodePixelWidthProperty = new SProperty(typeof(int), 0);
   _decodePixelHeightProperty = new SProperty(typeof(int), 0);
   _thumbnailDimensionProperty = new SProperty(typeof(int), 0);
 }
Example #3
0
 void Init()
 {
   _propertyProperty = new SProperty(typeof(string), string.Empty);
   _bindingProperty = new SProperty(typeof(object), null);
   _valueProperty = new SProperty(typeof(object), null);
   _triggeredProperty = new SProperty(typeof(bool), false);
 }
 void Init()
 {
   _contentProperty = new SProperty(typeof(object), null);
   _contentTemplateProperty = new SProperty(typeof(DataTemplate), null);
   _horizontalContentAlignmentProperty = new SProperty(typeof(HorizontalAlignmentEnum), HorizontalAlignmentEnum.Stretch);
   _verticalContentAlignmentProperty = new SProperty(typeof(VerticalAlignmentEnum), VerticalAlignmentEnum.Stretch);
 }
 public ItemViewModel()
 {
     _nameProperty = new WProperty(typeof(string));
     _descriptionProperty = new WProperty(typeof(string));
     _frontCoverProperty = new WProperty(typeof(string));
     _fanartProperty = new WProperty(typeof(string));
 }
Example #6
0
 void Init()
 {
   _x1Property = new SProperty(typeof(double), 0.0);
   _y1Property = new SProperty(typeof(double), 0.0);
   _x2Property = new SProperty(typeof(double), 0.0);
   _y2Property = new SProperty(typeof(double), 0.0);
 }
 protected ConfigurationController()
 {
   _helpProperty = new WProperty(typeof(IResourceString), null);
   _textProperty = new WProperty(typeof(IResourceString), null);
   _visibleProperty = new WProperty(typeof(bool), true);
   _enabledProperty = new WProperty(typeof(bool), true);
 }
Example #8
0
 void Init()
 {
   _centerYProperty = new SProperty(typeof(double), 0.0);
   _centerXProperty = new SProperty(typeof(double), 0.0);
   _angleXProperty = new SProperty(typeof(double), 0.0);
   _angleYProperty = new SProperty(typeof(double), 0.0);
 }
Example #9
0
 internal GenericDialogData(string headerText, string text, ItemsList dialogButtons, Guid dialogHandle)
 {
   _headerTextProperty = new SProperty(typeof(string), headerText);
   _textProperty = new SProperty(typeof(string), text);
   _dialogButtonsList = dialogButtons;
   _dialogHandle = dialogHandle;
 }
 public BackgroundManagerSetupModel()
 {
   ISettingsManager settingsManager = ServiceRegistration.Get<ISettingsManager>();
   BackgroundManagerSettings settings = settingsManager.Load<BackgroundManagerSettings>();
   _backgroundVideoFilenameProperty = new SProperty(typeof(string), settings.VideoBackgroundFileName);
   _isEnabledProperty = new SProperty(typeof(bool), settings.EnableVideoBackground);
 }
    void Init()
    {
      _fromProperty = new SProperty(typeof(Vector2?), null);
      _toProperty = new SProperty(typeof(Vector2?), null);
      _byProperty = new SProperty(typeof(Vector2?), null);

    }
 protected AbstractEntryController()
 {
   _valueProperty = new WProperty(typeof(string), string.Empty);
   _isValueValidProperty = new WProperty(typeof(bool), true);
   _errorTextProperty = new WProperty(typeof(string), string.Empty);
   _displayLengthProperty = new WProperty(typeof(int), 0);
 }
 protected void OnMultiplierChanged(AbstractProperty property, object oldValue)
 {
   float multiplier = (float)ScrollOffsetMultiplier;
   float newX = _startOffsetX + (_diffOffsetX * multiplier);
   float newY = _startOffsetY + (_diffOffsetY * multiplier);
   base.SetScrollOffset(newX, newY);
 }
Example #14
0
 void Init()
 {
   _isDefaultProperty = new SProperty(typeof(bool), false);
   _isPressedProperty = new SProperty(typeof(bool), false);
   _commandProperty = new SProperty(typeof(IExecutableCommand), null);
   Focusable = true;
 }
        public CategoryViewModel(Category category)
            : base(Consts.KEY_NAME, category.Name)
        {
            _category = category;

            _nameProperty = new WProperty(typeof(string), category.Name);
            _descriptionProperty = new WProperty(typeof(string), category.Description);
            _thumbProperty = new WProperty(typeof(string), null);
            _estimatedChildrenProperty = new WProperty(typeof(uint?), CalculateChildrenCount());

            if (Category is NextPageCategory)
            {
                Thumb = "NextPage.png";
            }
            else
            {
                _eventDelegator = OnlineVideosAppDomain.Domain.CreateInstanceAndUnwrap(typeof(PropertyChangedDelegator).Assembly.FullName, typeof(PropertyChangedDelegator).FullName) as PropertyChangedDelegator;
                _eventDelegator.InvokeTarget = new PropertyChangedExecutor
                {
                    InvokeHandler = (s, e) =>
                    {
                        if (e.PropertyName == "ThumbnailImage") Thumb = (s as Category).ThumbnailImage;
                    }
                };
                _category.PropertyChanged += _eventDelegator.EventDelegate;
            }
        }
 public EmulatorsMainModel()
 {
     _layoutTypeProperty = new WProperty(typeof(LayoutType), LayoutType.List);
     _focusedItemProperty = new WProperty(typeof(ListItem), null);
     _headerProperty = new WProperty(typeof(string));
     _currentFanartProperty = new WProperty(typeof(string));
 }
    public GeneralPlayerModel()
    {
      _isMutedProperty = new WProperty(typeof(bool), false);
      _volumeProperty = new WProperty(typeof(int), 0);

      SubscribeToMessages();
      Update();
    }
Example #18
0
 void Init()
 {
   _borderColorProperty = new SProperty(typeof(Color), ColorConverter.FromArgb(0, Color.Black));
   _effectProperty = new SProperty(typeof(string), null);
   _effectTimerProperty = new SProperty(typeof(double), 0.0);
   _horizontalTextureAlignmentProperty = new SProperty(typeof(HorizontalTextureAlignmentEnum), HorizontalTextureAlignmentEnum.Center);
   _verticalTextureAlignmentProperty = new SProperty(typeof(VerticalTextureAlignmentEnum), VerticalTextureAlignmentEnum.Center);
 }
    public ScreenSaverModel() : base(100)
    {
      _isScreenSaverActiveProperty = new WProperty(typeof(bool), false);
      _isMouseUsedProperty = new WProperty(typeof(bool), false);
      _screenSaverTextProperty = new WProperty(typeof(string), RES_MEDIAPORTAL_2); // Might be made configurable

      Update();
    }
 public ManagePlaylistsModel()
 {
   _isHomeServerConnectedProperty = new WProperty(typeof(bool), false);
   _isPlaylistsSelectedProperty = new WProperty(typeof(bool), false);
   _playlistNameProperty = new WProperty(typeof(string), string.Empty);
   _playlistNameProperty.Attach(OnPlaylistNameChanged);
   _isPlaylistNameValidProperty = new WProperty(typeof(bool), false);
 }
 public ProgramListItem(ProgramProperties program)
 {
     _programProperty = new WProperty(typeof (ProgramProperties), program);
       SetLabel(Consts.KEY_NAME, program.Title);
       SetLabel("Title", program.Title);
       SetLabel("StartTime", FormatHelper.FormatProgramTime(program.StartTime));
       SetLabel("EndTime", FormatHelper.FormatProgramTime(program.EndTime));
 }
 void Init()
 {
   _isExpandedProperty = new SProperty(typeof(bool), false);
   _isExpandableProperty = new SProperty(typeof(bool), false);
   _forceExpanderProperty = new SProperty(typeof(bool), false);
   _subItemsProviderProperty = new SProperty(typeof(SubItemsProvider), null);
   _selectedProperty = new SProperty(typeof(bool), false);
 }
Example #23
0
 void Init()
 {
   _uriSourceProperty = new SProperty(typeof(string), null);
   _rotationProperty = new SProperty(typeof(RightAngledRotation), RightAngledRotation.Zero);
   _decodePixelWidthProperty = new SProperty(typeof(int), 0);
   _decodePixelHeightProperty = new SProperty(typeof(int), 0);
   _thumbnailDimensionProperty = new SProperty(typeof(int), 0);
 }
Example #24
0
 void Init()
 {
   _fillProperty = new SProperty(typeof(Brush), null);
   _strokeProperty = new SProperty(typeof(Brush), null);
   _strokeThicknessProperty = new SProperty(typeof(double), 1.0);
   _strokeLineJoinProperty = new SProperty(typeof(PenLineJoin), PenLineJoin.Miter);
   _stretchProperty = new SProperty(typeof(Stretch), Stretch.None);
 }
Example #25
0
 void Init()
 {
   _opacityProperty = new SProperty(typeof(double), 1.0);
   _relativeTransformProperty = new SProperty(typeof(Transform), null);
   _transformProperty = new SProperty(typeof(Transform), null);
   _freezableProperty = new SProperty(typeof(bool), false);
   _vertsBounds = new RectangleF(0, 0, 0, 0);
 }
 public FanArtBackgroundModel()
 {
     _selectedItemProperty = new SProperty(typeof (ListItem), null);
       _selectedItemProperty.Attach(SetFanArtType);
       _fanArtMediaTypeProperty = new SProperty(typeof(FanArtConstants.FanArtMediaType), FanArtConstants.FanArtMediaType.Undefined);
       _fanArtNameProperty = new SProperty(typeof(string), string.Empty);
       SetFanArtType();
 }
Example #27
0
 public PowerMenuModel()
 {
   _isMenuOpenProperty = new WProperty(typeof(bool), true);
   _menuItems = new ItemsList();
   _settings = new SettingsChangeWatcher<SystemStateDialogSettings>();
   _settings.SettingsChanged = OnSettingsChanged;
   _needsUpdate = true;
 }
        public ImporterModel()
        {
            _statusProperty = new WProperty(typeof(string), null);
            _progressProperty = new WProperty(typeof(int), 0);

            messageQueue = new AsynchronousMessageQueue(this, new[] { ImporterMessaging.Channel });
            messageQueue.MessageReceived += messageQueue_MessageReceived;
        }
Example #29
0
 public ImageSourceWrapper()
 {
   _source = false;
   _sourceProperty = new SProperty(typeof(object), null);
   _fallbackSourceProperty = new SProperty(typeof(object), null);
   _delayProperty = new SProperty(typeof(double), 0d);
   _delayInOutProperty = new SProperty(typeof(bool), false);
   Attach();
 }
Example #30
0
    void Init()
    {
      _caretIndexProperty = new SProperty(typeof(int), 0);
      _textProperty = new SProperty(typeof(string), string.Empty);
      _colorProperty = new SProperty(typeof(Color), Color.Black);

      _preferredTextLengthProperty = new SProperty(typeof(int?), null);
      _textAlignProperty = new SProperty(typeof(HorizontalAlignmentEnum), HorizontalAlignmentEnum.Left);
    }