public SkinContext MakeClone() { var ctx = new SkinContext(); ctx._skin = JsonConvert.DeserializeObject <Skin>(JsonConvert.SerializeObject(_skin)); ctx._skinimages = new Dictionary <string, Image>(); foreach (var kvs in _skinimages) { var image = kvs.Value; if (image == null) { continue; } ctx._skinimages.Add(kvs.Key, new Bitmap(image)); } return(ctx); }
public ToolStripSkinColorTable(SkinContext InPreviewSkin) { _previewSkin = InPreviewSkin; }
public ToolStripSkinRenderer(SkinContext InSkinPreview) : base(new ToolStripSkinColorTable(InSkinPreview)) { }