private void btnPurple_Click( object sender, EventArgs e ) {
            this.chatPreview1.RenderText( "&5Color Preview" );

            ColorRelatedButton b = sender as ColorRelatedButton;
            Relation = b.Relation;

        }
        public ColorSelectionDialog(ColorRelation preDraw) {
            if(preDraw == null)
                throw new ArgumentNullException("preDraw", "Cannot be null");

            this.preDraw = preDraw;
            InitializeComponent();

            this.chatPreview1.RenderText(preDraw.MinecraftColorCode + "Color Preview");
        }
        void colorDialog_FormClosing( object sender, FormClosingEventArgs e ) {
            ColorSelectionDialog dialog = sender as ColorSelectionDialog;
            if ( dialog == null )
                return;

            if ( dialog.DialogResult == System.Windows.Forms.DialogResult.Cancel )
                return;

            Relation = dialog.Relation;
        }
        private void ColorSelectionDialog_Load( object sender, EventArgs e ) {

            this.btnBlack.Relation = ColorRelation.Black;
            this.btnBlue.Relation = ColorRelation.Blue;
            this.btnDarkBlue.Relation = ColorRelation.Navy;
            this.btnDarkGreen.Relation = ColorRelation.Green;
            this.btnDarkGrey.Relation = ColorRelation.Gray;
            this.btnDarkRed.Relation = ColorRelation.Maroon;
            this.btnDarkTeal.Relation = ColorRelation.Teal;
            this.btnGold.Relation = ColorRelation.Gold;
            this.btnGray.Relation = ColorRelation.Silver;
            this.btnLightGreen.Relation = ColorRelation.Lime;
            this.btnPink.Relation = ColorRelation.Pink;
            this.btnPurple.Relation = ColorRelation.Purple;
            this.btnRed.Relation = ColorRelation.Red;
            this.btnTeal.Relation = ColorRelation.Aqua;
            this.btnWhite.Relation = ColorRelation.White;
            this.btnYellow.Relation = ColorRelation.Yellow;
        }