示例#1
0
 private void reintroduceAnimal_Click(object sender, System.EventArgs e)
 {
     this.Cursor = Cursors.WaitCursor;
     ReintroduceSpecies species = new ReintroduceSpecies(true);
     species.ShowDialog();
     this.Cursor = Cursors.Default;
 }
示例#2
0
        private void introduceAnimalTerrarium_Click(object sender, System.EventArgs e)
        {
            if (screenSaverMode == ScreenSaverMode.Run)
            {
                MessageBox.Show(
                    this,
                    "This isn't permitted while running in screensaver mode because it could allow someone to get access to your machine when it is locked.  Try closing and starting the Terrarium normally to do this.",
                    "Operation Not Permitted",
                    MessageBoxButtons.OK,
                    MessageBoxIcon.Exclamation);
                return;
            }

            this.Cursor = Cursors.WaitCursor;
            ReintroduceSpecies species = new ReintroduceSpecies(false);
            species.ShowDialog();
            this.Cursor = Cursors.Default;
        }