public SettingsWindow(AccountsSettingsModel accountsSettings, ApplicationSettingsModel applicationSettings, OutgoingMailServiceResolver serviceResolver)
 {
     _serviceResolver = serviceResolver;
     AccountsSettings = accountsSettings;
     ApplicationSettings = applicationSettings;
     InitializeComponent();
 }
        public MailListWindow(EventBus eventBus, AsyncObservableCollection<EmailGroupModel> emailGroupList, ApplicationSettingsModel appSettings)
        {
            _eventBus = eventBus;
            _emailGroupListModel = emailGroupList;
            _appSettings = appSettings;

            var screen = Screen.FromHandle(new WindowInteropHelper(this).Handle).WorkingArea;
            _defaultWindowRect = new Rect(screen.Width - DefaultWidth, 0, DefaultWidth, screen.Height);

            InitializeComponent();
            SetWindowRect();
            Closing += OnClosing;
            _emailGroupListModel.CollectionChanged += EmailGroupListModelOnCollectionChanged;
        }
 public ApplicationWorker(AccountsSettingsModel accountsSettings, 
     EventBus eventBus, 
     OutgoingMailServiceResolver serviceResolver, 
     AsyncObservableCollection<EmailGroupModel> emailGroupList,
     ApplicationSettingsModel appSettings,
     IMailStorage mailStorage)
 {
     _accountsSettings = accountsSettings;
     _eventBus = eventBus;
     _serviceResolver = serviceResolver;
     _emailGroupList = emailGroupList;
     _appSettings = appSettings;
     _mailStorage = mailStorage;
 }