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();
}
}
}