protected MailDistributorBaseViewModel(params string[] contentProperties) { _contentProperties = contentProperties; GroupKey = "Distributors"; PropertyChanged += SmtpMailDistributorViewModel_PropertyChanged; TestConnectionCommand = new DelegateCommand(TestConnectionExecute, CanTestConnectionExecute); ValidationState = new StepValidationViewModel(); Commands.Add(new MenuBarCommand(TestConnectionCommand) { Content = ValidationState }); }
protected MailDataStrategyBaseViewModel(string id, params string[] contentProperties) { Id = id; GroupKey = "ImportData"; ValidateCommand = new DelegateCommand(ValidateExecute, CanValidateExecute); PropertyChanged += SmtpMailDistributorViewModel_PropertyChanged; _contentProperties = contentProperties; ValidationState = new StepValidationViewModel(); Commands.Add(new MenuBarCommand(ValidateCommand) { Content = ValidationState }); MailComposer = IoC.Resolve <MailComposer>(); StructureCacheService = IoC.Resolve <StructureCacheService>(); }