//public IStyleGalleryItem GetItem(ESRI.ArcGIS.Controls.esriSymbologyStyleClass styleClass)
        //{
        //    //Set the style class
        //    axSymbologyControl1.StyleClass = styleClass;
        //    axSymbologyControl1.Update();
        //    //Show the modal form
        //    this.ShowDialog();

        //    //Return the selected label style
        //    return m_styleGalleryItem;
        //}

        private void cbxStyles_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (cbxStyles.SelectedItem == null)
            {
                return;
            }
            axSymbologyControl1.Clear();
            stylesPath = cbxStyles.SelectedItem.ToString();
            string ext = System.IO.Path.GetExtension(stylesPath).ToLower();

            if (ext == ".serverstyle")
            {
                axSymbologyControl1.LoadStyleFile(stylesPath);
            }
            if (ext == ".style")
            {
                axSymbologyControl1.LoadDesktopStyleFile(stylesPath);
            }
            axSymbologyControl1.StyleClass = styleClass;
        }