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

RefreshCurrentObject() public method

Refreshes the form to display data for the currently selected RPG.Tileset.
public RefreshCurrentObject ( ) : void
return void
        public override void RefreshCurrentObject()
        {
            SuppressEvents = true;
            this.tilesetXnaPanel.Tileset = this._tileset;
            this.textBoxName.Text = this._tileset.name;
            this.textBoxTileset.Text = String.IsNullOrWhiteSpace(this._tileset.tileset_name) ?
                "<None>" : this._tileset.tileset_name;
            this.textBoxFog.Text = String.IsNullOrWhiteSpace(this._tileset.fog_name) ?
                "<None>" : this._tileset.fog_name;
            this.textBoxPanorama.Text = String.IsNullOrWhiteSpace(this._tileset.panorama_name) ?
                "<None>" : this._tileset.panorama_name;
            this.textBoxBattleback.Text = String.IsNullOrWhiteSpace(this._tileset.battleback_name) ?
                "<None>" : this._tileset.battleback_name;
            //noteTextBox.NoteText = _tileset.note;
            string autotile;
            for (int i = 0; i < this._tileset.autotile_names.Count; i++)
            {
                autotile = this._tileset.autotile_names[i];
                var textBoxButton = this.panelAutotiles.Controls[i] as TextBoxButton;
                if (textBoxButton != null)
                    textBoxButton.Text = String.IsNullOrWhiteSpace(autotile) ? "<None>" : autotile;
            }
            SuppressEvents = false;
        }