BiomePainter.Form1.TrySwitchRegion C# (CSharp) Méthode

TrySwitchRegion() private méthode

private TrySwitchRegion ( int x, int z ) : void
x int
z int
Résultat 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