コード例 #1
0
ファイル: TileSettings.cs プロジェクト: mgrman/SteamPaver
 public TileSettings(TileData tileData)
 {
     Name = tileData.Name;
     Uri = tileData.Uri;
     Image = tileData.SquareFinal;
     BackgroundColor = tileData.Color;
     ShowLabel = tileData.LabelType != LabelTypes.NoLabel;
     UseDarkLabel = tileData.LabelType == LabelTypes.DarkLabel;
     LinkType = tileData.LinkType;
 }
コード例 #2
0
        public TileDataViewModel(TileData data,ITileCreator creator)
        {
            Model = data;
            TileCreator = creator;

            UpdateAvailableLinkTypes();
            var dataChanged = (data as INotifyPropertyChanged);
            if(dataChanged!= null)
            {
                dataChanged.PropertyChanged += (o, e) =>
                {
                    UpdateAvailableLinkTypes();
                };
            }
        }