public Computer(string name, string description, string distinguishedName) { Name = name; DistinguishedName = distinguishedName; DescPrefix = DescriptionPrefix.GetDescriptionPrefix(description); Description = DescriptionPrefix.GetTrimmedDescription(description, DescPrefix); }
public ApplicationViewModel() { DescriptionPrefix.Initialize(); LoadAppSettings(); var adService = new AdService(); PageViewModels.Add(new HomeViewModel(adService)); PageViewModels.Add(new ComputerViewModel(adService)); PageViewModels.Add(new PasswordViewModel(adService)); PageViewModels.Add(new ConfigurationViewModel(adService)); CurrentPageViewModel = PageViewModels[0]; }