public void SetImageSet(ImageSet imageSet) { try { this.imageSet = imageSet; this.Width = this.imageSet.Normal.Width; this.Height = this.imageSet.Normal.Height; } catch { throw new ThemingError(this, "Imageset cannot be assigned"); } }
public NimbusTheme() { CloseButton = new ImageSet(); MinimizeButton = new ImageSet(); MaximizeButton = new ImageSet(); LibraryButton = new ImageSet(); GamesButton = new ImageSet(); ConfigButton = new ImageSet(); FriendsButton = new ImageSet(); BackButton = new ImageSet(); ForwardButton = new ImageSet(); fontCollection = new PrivateFontCollection(); }