public LoggingHandler(TimeLogger logger, Clock clock, string name) { _name = name; Clock = clock; Logger = logger; LogStarts = true; LogStops = true; }
public DeleteLogsDoable(TimeLogger logger, params LogEntry[] logsDeleted) { if (logger == null) { throw new ArgumentNullException("logger"); } if (logsDeleted.Length < 0) { throw new ArgumentException("logsDeleted"); } _logger = logger; _logsDeleted = logsDeleted; }
private Program() { Gtk.Window.DefaultIconList = new Pixbuf[] { Pixbuf.LoadFromResource("chrono-marker-16.png"), Pixbuf.LoadFromResource("chrono-marker-24.png"), Pixbuf.LoadFromResource("chrono-marker-32.png"), Pixbuf.LoadFromResource("chrono-marker-48.png"), Pixbuf.LoadFromResource("chrono-marker-64.png"), }; // Load settings. This is important. Settings = Preferences.Load(settingsFilename); TextRefresher = new FrequentCaller(textRefreshFrequency); TimeLogger = new TimeLogger(Settings.TimeDisplaySettings); TimeLogger.ClockAdded += loggerClockAdded_event; TimeLogger.ClockRemoved += loggerClockRemoved_event; History = new History(historySteps); // Creates exporters LogExporters = new List <Chrono.Files.ILogExporter>(); LogExporters.Add(new Files.HTMLExporter()); LogExporters.Add(new Files.XMLExporter()); LogExporters.Add(new Files.PlainTextExporter()); clockWindows = new Dictionary <LoggingHandler, StopwatchWindow>(); LoggerWindow = new LoggerWindow(this); ClockPropertiesWindow = new ClockPropertiesWindow(this); PreferencesWindow = new PreferencesWindow(this); // Creates the first clock if configured to do so if (Settings.CreateWatchOnStartup && TimeLogger.CanCreateClock(Settings.StartupWatchName)) { LoggingHandler firstClockHandler = TimeLogger.CreateClock(Settings.StartupWatchName); StopwatchWindow clockWindow = clockWindows [firstClockHandler]; clockWindow.DisplayVisible = true; } }
public LoggingEventArgs(TimeLogger logger, params LogEntry[] manyEntries) { Logger = logger; _entries = manyEntries; }