private void IndexLogs() { foreach (string file in Directory.GetFiles(log_path)) { ImLog log = null; StreamReader reader = new StreamReader(file); if (client == ImClient.Pidgin) { log = new PidginLog(new FileInfo(file), reader); } else if (client == ImClient.Kopete) { log = new KopeteLog(new FileInfo(file), reader); } else if (client == ImClient.Konversation) { log = new KonversationLog(new FileInfo(file)); } reader.Close(); if (initial_select_file != null && log.File.FullName == initial_select_file.FullName) { initial_select = log; initial_select_file = null; } if (speaking_to == null) { SetWindowTitle(log.SpeakingTo); } timeline.Add(log, log.StartTime); } index_thread_notify.WakeupMain(); }
private void IndexLogs () { foreach (string file in Directory.GetFiles (log_path)) { ImLog log = null; StreamReader reader = new StreamReader (file); if (client == ImClient.Pidgin) log = new PidginLog (new FileInfo (file), reader); else if (client == ImClient.Kopete) log = new KopeteLog (new FileInfo (file), reader); else if (client == ImClient.Konversation) log = new KonversationLog (new FileInfo (file)); reader.Close (); if (initial_select_file != null && log.File.FullName == initial_select_file.FullName) { initial_select = log; initial_select_file = null; } if (speaking_to == null) SetWindowTitle (log.SpeakingTo); timeline.Add (log, log.StartTime); } index_thread_notify.WakeupMain (); }