internal VertretungsplanManager(MainWindow pWindow) { _window = pWindow; _ftpTools = new FtpTools(); _gcmTools = new GcmTools(); DeleteAllOnlineFilesAsync(); _onlineToday = ""; _onlineTomorrow = ""; _changeChecker = new Timer(10000); _changeChecker.AutoReset = true; _changeChecker.Elapsed += ChangeChecker_Elapsed; _onlineFileEditToday = DateTime.MinValue; _onlineFileEditTomorrow = DateTime.MinValue; _changeChecker.Start(); if (File.Exists(Settings.Default.FilePathToday)) TodayLastEdited = DateTime.Now; if (File.Exists(Settings.Default.FilePathTomorrow)) TomorrowLastEdited = DateTime.Now; }
public void ChangeSettings() { _ftpTools = new FtpTools(); }