ARCed.Dialogs.ImageSelectionForm.RefreshPicture C# (CSharp) Метод

RefreshPicture() приватный Метод

private RefreshPicture ( ) : void
Результат void
        private void RefreshPicture()
        {
            if (!this._initialized)
                return;
            if (this.OptionsEnabled)
            {
                this.pictureBox.BlendMode = this.comboBoxBlend.SelectedIndex;
                if (this.AdvancedOptionEnabled)
                {
                    this.pictureBox.Zoom = (int)this.numericZoom.Value;
                    this.pictureBox.ScrollX = (int)this.numericSX.Value;
                    this.pictureBox.ScrollY = (int)this.numericSY.Value;
                }
            }
            switch (this._folder)
            {
                case @"Graphics\Animations":
                    this.pictureBox.Image = new Bitmap(Cache.Animation(this._filename, this.trackBarHue.Value));
                    break;
                case @"Graphics\Characters":
                    this.pictureBox.Image = new Bitmap(Cache.Character(this._filename, this.trackBarHue.Value));
                    break;
                case @"Graphics\Battlers":
                    this.pictureBox.Image = new Bitmap(Cache.Battler(this._filename, this.trackBarHue.Value));
                    break;
                case @"Graphics\Icons":
                    this.pictureBox.Image = new Bitmap(Cache.Icon(this._filename));
                    break;
                case @"Graphics\Battlebacks":
                    this.pictureBox.Image = new Bitmap(Cache.Battleback(this._filename));
                    break;
                case @"Graphics\Tilesets":
                    this.pictureBox.Image = new Bitmap(Cache.Tileset(this._filename));
                    break;
                case @"Graphics\Autotiles":
                    this.pictureBox.Image = new Bitmap(Cache.Autotile(this._filename));
                    break;
                case @"Graphics\Fogs":
                    this.pictureBox.Image =
                        new Bitmap(Cache.Fog(this._filename, this.trackBarHue.Value));
                    break;
                case @"Graphics\Panoramas":
                    this.pictureBox.Image = new Bitmap(Cache.Panorama(this._filename, this.trackBarHue.Value));
                    break;
            }
        }