private void OnNewLogEntry(LogLevel level, string message, Exception ex) { Contract.Requires(message != null); if (level < Level) { return; } ShowForm(); form.Add(level, message, ex); }