private void WriteInternal(object message, string cssClass, string backgroundColor, string iconPath) { if (!CanWrite) return; View.InsertMessage(message, cssClass, backgroundColor, iconPath); canInsertSection = true; }