예제 #1
0
        public ColorListColorizerViewModel(IColorListColorizer colorizer) : base(colorizer)
        {
            AddColorToListCommand = new AddColorToListCommand(this);

            Colors = new ObservableCollection <Color>(colorizer.Colors);
            Colors.CollectionChanged += Colors_CollectionChanged;
        }
        public ColorListColorizerViewModel(IColorListColorizer colorizer)
            : base(colorizer)
        {
            AddColorToListCommand = new AddColorToListCommand(this);

            Colors = new ObservableCollection<Color>(colorizer.Colors);
            Colors.CollectionChanged += Colors_CollectionChanged;
        }