private void addMessageToolStripMenuItem_Click(object sender, EventArgs e) { if (_scriptEditor == null) { return; } _scriptEditor.AddMessage(MessageType.Error, "This is sample ERROR message from addin."); _scriptEditor.AddMessage(MessageType.Info, "This is sample INFO message from addin."); _scriptEditor.AddMessage(MessageType.None, "This is sample NONE message from addin."); _scriptEditor.AddMessage(MessageType.Warning, "This is sample WARNING message from addin."); }