public ExchangeNewEmailDesignerViewModel(ModelItem modelItem, IAsyncWorker asyncWorker, IExchangeServiceModel model, IEventAggregator eventPublisher, IShellViewModel shellViewModel, IActiveDataList activeDataList) : base(modelItem) { _shellViewModel = shellViewModel; _activeDataList = activeDataList; TestEmailAccountCommand = new RelayCommand(o => TestEmailAccount(), o => CanTestEmailAccount); ChooseAttachmentsCommand = new DelegateCommand(o => ChooseAttachments()); _eventPublisher = eventPublisher; _asyncWorker = asyncWorker; Model = model; SetupCommonProperties(); }
public ExchangeNewEmailDesignerViewModel(ModelItem modelItem, IAsyncWorker asyncWorker, IServer server, IEventAggregator eventPublisher, IShellViewModel shellViewModel, IActiveDataList activeDataList) : base(modelItem) { VerifyArgument.IsNotNull("asyncWorker", asyncWorker); VerifyArgument.IsNotNull("eventPublisher", eventPublisher); _asyncWorker = asyncWorker; _server = server; _eventPublisher = eventPublisher; _eventPublisher.Subscribe(this); AddTitleBarLargeToggle(); TestEmailAccountCommand = new RelayCommand(o => TestEmailAccount(), o => CanTestEmailAccount); ChooseAttachmentsCommand = new DelegateCommand(o => ChooseAttachments()); _shellViewModel = shellViewModel; _activeDataList = activeDataList; var model = new ExchangeServiceModel(_server, _shellViewModel); Model = model; SetupCommonProperties(); HelpText = Warewolf.Studio.Resources.Languages.HelpText.Tool_Email_Exchange_Send; }
public ActionInputDatalistMapper(IActiveDataList activeDataList) { _activeDataList = activeDataList; }