Esempio n. 1
0
        private void GalleryItem_GalleryItemClick(object sender, GalleryItemClickEventArgs e)
        {
            var gallery = sender as InRibbonGallery;
            var key     = "";

            if (gallery.OwnerItem.GetType() == typeof(SkinRibbonGalleryBarItem))
            {
                key = "Skin";
            }
            else if (gallery.OwnerItem.GetType() == typeof(SkinPaletteRibbonGalleryBarItem))
            {
                key = "Palette";
            }

            GeneralFunctions.AppSettingsWrite(key, e.Item.Caption);
        }