entity.MetaEditor2.MetaEditorControlPage.cbIdent_MouseLeave C# (CSharp) Method

cbIdent_MouseLeave() private method

private cbIdent_MouseLeave ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void
        private void cbIdent_MouseLeave(object sender, EventArgs e)
        {
            // If our tag is not null, make sure it actually is an image, then release the used memory and restore the
            // original picture
            if (this.MapForm.pictureBox1.Tag != null && this.MapForm.pictureBox1.Tag is Image)
            {
                this.MapForm.pictureBox1.Image.Dispose();
                this.MapForm.pictureBox1.Image = (Image)this.MapForm.pictureBox1.Tag;
                this.MapForm.pictureBox1.Tag = null;
            }
        }