ARCed.Database.Tilesets.TilesetsMainForm.TextBoxFogOnTextBoxFogOnButtonClick C# (CSharp) Method

TextBoxFogOnTextBoxFogOnButtonClick() private method

private TextBoxFogOnTextBoxFogOnButtonClick ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void
        private void TextBoxFogOnTextBoxFogOnButtonClick(object sender, EventArgs e)
        {
            using (var dialog = new ImageSelectionForm(@"Fogs", this._tileset.fog_name))
            {
                dialog.Hue = this._tileset.fog_hue;
                dialog.ScrollX = this._tileset.fog_sx;
                dialog.ScrollY = this._tileset.fog_sy;
                dialog.Zoom = this._tileset.fog_zoom;
                dialog.ImageOpacity = this._tileset.fog_opacity;
                dialog.BlendMode = this._tileset.fog_blend_type;
                if (dialog.ShowDialog(this) != DialogResult.OK) return;
                this._tileset.fog_name = dialog.ImageName;
                this._tileset.fog_hue = dialog.Hue;
                this._tileset.fog_opacity = dialog.ImageOpacity;
                this._tileset.fog_sx = dialog.ScrollX;
                this._tileset.fog_sy = dialog.ScrollY;
                this._tileset.fog_zoom = dialog.Zoom;
                this.textBoxFog.Text = this._tileset.fog_name;
            }
        }