ARCed.Database.Animations.AnimationMainForm.textBoxGraphic_OnButtonClick C# (CSharp) Method

textBoxGraphic_OnButtonClick() private method

private textBoxGraphic_OnButtonClick ( object sender, EventArgs e ) : void
sender object
e EventArgs
return void
        private void textBoxGraphic_OnButtonClick(object sender, EventArgs e)
        {
            using (var dialog =
                new ImageSelectionForm(@"Animations", this._animation.animation_name))
            {
                dialog.Hue = this._animation.animation_hue;
                dialog.OptionsEnabled = false;
                if (dialog.ShowDialog(this) == DialogResult.OK)
                {
                    this._animation.animation_name = dialog.ImageName;
                    this._animation.animation_hue = dialog.Hue;
                    this.textBoxGraphic.Text = String.IsNullOrWhiteSpace(this._animation.animation_name) ?
                        "<None>" : this._animation.animation_name;
                    this.RefreshImages();
                }
            }
        }