コード例 #1
0
 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();
 }
コード例 #2
0
        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;
        }
コード例 #3
0
 public ActionInputDatalistMapper(IActiveDataList activeDataList)
 {
     _activeDataList = activeDataList;
 }