コード例 #1
0
 public BackgroundManagerModel()
 {
   _selectedItemProperty = new WProperty(typeof (ListItem), null);
   _selectedItemProperty.Attach(SetBackgroundImage);
   _backgroundImageProperty = new WProperty(typeof (string), string.Empty);
   SetBackgroundImage();
 }
コード例 #2
0
 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);
 }
コード例 #3
0
ファイル: Condition.cs プロジェクト: aspik/MediaPortal-2
 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);
 }
コード例 #4
0
 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);
 }
コード例 #5
0
 public ItemViewModel()
 {
     _nameProperty = new WProperty(typeof(string));
     _descriptionProperty = new WProperty(typeof(string));
     _frontCoverProperty = new WProperty(typeof(string));
     _fanartProperty = new WProperty(typeof(string));
 }
コード例 #6
0
ファイル: Line.cs プロジェクト: davinx/MediaPortal-2
 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);
 }
コード例 #7
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);
 }
コード例 #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);
 }
コード例 #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;
 }
コード例 #10
0
 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);
 }
コード例 #11
0
    void Init()
    {
      _fromProperty = new SProperty(typeof(Vector2?), null);
      _toProperty = new SProperty(typeof(Vector2?), null);
      _byProperty = new SProperty(typeof(Vector2?), null);

    }
コード例 #12
0
 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);
 }
コード例 #13
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);
 }
コード例 #14
0
ファイル: Button.cs プロジェクト: HAF-Blade/MediaPortal-2
 void Init()
 {
   _isDefaultProperty = new SProperty(typeof(bool), false);
   _isPressedProperty = new SProperty(typeof(bool), false);
   _commandProperty = new SProperty(typeof(IExecutableCommand), null);
   Focusable = true;
 }
コード例 #15
0
        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;
            }
        }
コード例 #16
0
 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));
 }
コード例 #17
0
    public GeneralPlayerModel()
    {
      _isMutedProperty = new WProperty(typeof(bool), false);
      _volumeProperty = new WProperty(typeof(int), 0);

      SubscribeToMessages();
      Update();
    }
コード例 #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);
 }
コード例 #19
0
    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();
    }
コード例 #20
0
 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);
 }
コード例 #21
0
 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));
 }
コード例 #22
0
 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);
 }
コード例 #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);
 }
コード例 #24
0
ファイル: Shape.cs プロジェクト: joconno4/MediaPortal-2
 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);
 }
コード例 #25
0
ファイル: Brush.cs プロジェクト: BigGranu/MediaPortal-2
 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);
 }
コード例 #26
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();
 }
コード例 #27
0
ファイル: PowerMenuModel.cs プロジェクト: aspik/MediaPortal-2
 public PowerMenuModel()
 {
   _isMenuOpenProperty = new WProperty(typeof(bool), true);
   _menuItems = new ItemsList();
   _settings = new SettingsChangeWatcher<SystemStateDialogSettings>();
   _settings.SettingsChanged = OnSettingsChanged;
   _needsUpdate = true;
 }
コード例 #28
0
        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;
        }
コード例 #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();
 }
コード例 #30
0
ファイル: TextBox.cs プロジェクト: chekiI/MediaPortal-2
    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);
    }