private void PublishSmartObjects(SmartObjectDefinitionsPublish publishSmo)
        {
            try
            {
                toolStripStatusLabel1.Text = "Publishing SmartObjects...";
                statusStrip1.Update();
                ManagementServerConnect();
                _smoManagementServer.PublishSmartObjects(publishSmo.ToPublishXml());
            }

            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }

            finally
            {
                ManagementServerCloseConnection();
            }
        }
 internal virtual void PublishSmartObjects(string smartObjectDefinitionsPublish)
 {
     _smartObjectManagementServer.PublishSmartObjects(smartObjectDefinitionsPublish);
 }