public GmailDataHelper(string login, NetworkCredential credential) { Settings = _loader.LoadData(login + "_Settings"); Datas = new GmailData(); _notif = new WindowNotificationFactory(Settings, Datas); _credential = credential; Datas.Login = login; }
public WindowNotificationFactory(Settings settings, GmailData datas) { _settings = settings; _settings.PropertyChanged += _settings_PropertyChanged; _datas = datas; _timer = new System.Timers.Timer(); _timer.Interval = _settings.WaitSeconds * 1000; _timer.Elapsed += new System.Timers.ElapsedEventHandler(timer_Elapsed); }