BiomePainter.Batch.Batch C# (CSharp) Method

Batch() public method

public Batch ( String regionDir, String worldName, String dimensionName, bool replace, Object biome1, Object biome2, long worldSeed ) : System
regionDir String
worldName String
dimensionName String
replace bool
biome1 Object
biome2 Object
worldSeed long
return System
        public Batch(String regionDir, String worldName, String dimensionName, bool replace, Object biome1, Object biome2, long worldSeed)
        {
            this.regionDir = regionDir;
            this.replace = replace;
            this.biome1 = biome1;
            this.biome2 = biome2;
            this.worldSeed = worldSeed;

            InitializeComponent();

            int before = lblPrompt3.Bottom;
            lblPrompt.MaximumSize = new Size(this.Width - lblPrompt.Left * 2, 0);
            lblPrompt2.MaximumSize = lblPrompt.MaximumSize;
            lblPrompt3.MaximumSize = lblPrompt.MaximumSize;
            if (!replace)
            {
                String b = String.Format(biome1 is BiomeType ? BIOMESTRING : MCSTRING, biome1.ToString());
                lblPrompt.Text = String.Format(PROMPTFILL, worldName, dimensionName, b);
                btnGo.Text = "Fill All Regions";
            }
            else
            {
                String b1 = String.Format(BIOMESTRING, biome1.ToString());
                String b2 = String.Format(biome2 is BiomeType ? BIOMESTRING : MCSTRING, biome2.ToString());
                lblPrompt.Text = String.Format(PROMPTREPLACE, worldName, dimensionName, b1, b2);
                btnGo.Text = "Replace All Regions";
            }

            lblPrompt2.Top = lblPrompt.Bottom + 10;
            lblPrompt3.Top = lblPrompt2.Bottom + 10;

            this.Height = this.Height + (lblPrompt3.Bottom - before);

            this.CancelButton = btnCancel;
        }