Beispiel #1
0
        public CharacterViewModel(CharacterFile cf, object metadata)
        {
            _extraData = new Dictionary <string, object>();
            _proxy     = new PluginCharacterProxy(this);
            Metadata   = metadata;
            Character  = cf;
            Character.PropertyChanged += FileOnPropertyChanged;

            Profile = new ProfileViewModel(this);

            Body = new BodyViewModel(this);

            UniformSuit  = new ClothesViewModel(this, ClothesViewModel.ClothesKind.Uniform);
            SwimsuitSuit = new ClothesViewModel(this, ClothesViewModel.ClothesKind.Swimsuit);
            SportsSuit   = new ClothesViewModel(this, ClothesViewModel.ClothesKind.Sports);
            ClubSuit     = new ClothesViewModel(this, ClothesViewModel.ClothesKind.Formal);

            Constraints = new DataBlockConstraints(this);

            SaveAsCommand = new RelayCommand(SaveAs_Execute, SaveAs_CanExecute);
        }
Beispiel #2
0
 public ClothesTextureViewModel(ClothesViewModel parent, bool underwear)
 {
     ClothesViewModel = parent;
     IsUnderwear      = underwear;
     UpdateKeys();
 }