public TradFileViewModel(EdataContentFile owner, EdataFileViewModel contentFile) { SaveCommand = new ActionCommand(SaveCommandExecute); CreateHashCommand = new ActionCommand(CreateHashExecute, CreateHashCanExecute); AddEntryCommand = new ActionCommand(AddEntryExecute); RemoveEntryCommand = new ActionCommand(RemoveEntryExecute); OwnerFile = owner; OwnerVm = contentFile; Manager = new TradManager(OwnerVm.EdataManager.GetRawData(OwnerFile)); Entries = Manager.Entries; TitleText = string.Format("Dictionary editor [{0}]", OwnerFile.Path); }