public void Initialize(LabTech.Interfaces.IControlCenter host)
 {
     try
     {
         controlCenterHost = host;
     }
     catch (Exception ex)
     {
         controlCenterHost.LogMessage(string.Format("Plugin {0} was unable to initialize {1}.", Name, ex.Message));
     }
 }
 public System.Windows.Forms.ToolStripItem[] CreateMainToolStrip()
 {
     // Adding to buttons to our collection, these will be populated when the control center loads
     try
     {
         return(new[]
         {
             new ToolStripButton("LabTech Script Analyzer", Properties.Resources.ScriptAnalyzerIcon, ShowForm)
             {
                 ImageScaling = ToolStripItemImageScaling.None
             }
             // new ToolStripButton("Example - Toolbar Buttons - Close Control Center", Properties.Resources.LabTechART, ShutDown) {ImageScaling = ToolStripItemImageScaling.None}
         });
     }
     catch (Exception ex)
     {
         controlCenterHost.LogMessage(string.Format("Plugin {0} was unable to CreateMainToolStrip {1}.", Name, ex.Message));
         return(null);
     }
 }