BiomePainter.Form1.TrySwitchRegion C# (CSharp) Method

TrySwitchRegion() private method

private TrySwitchRegion ( int x, int z ) : void
x int
z int
return void
        private void TrySwitchRegion(int x, int z)
        {
            int i = lstRegions.FindString(String.Format("Region {0}, {1} ::", x, z));
            if (i == ListBox.NoMatches)
            {
                MessageBox.Show(this, "Sorry, that region does not exist yet.", "Load", MessageBoxButtons.OK);
            }
            else
            {
                lstRegions.SelectedIndex = i;
            }
        }
Form1