Пример #1
0
        private void cmdNewWorld_Click(object sender, EventArgs e)
        {
            frmWorldDesigner NewForm = new frmWorldDesigner(false, string.Empty);

            NewForm.Show();
            this.Hide();
        }
 private void LoadWorld(int SelectedIndex)
 {
     if (lstWorlds.SelectedIndex > -1)
     {
         frmWorldDesigner NewForm = new frmWorldDesigner(true, SavesList[SelectedIndex]);
         NewForm.Show();
         this.Hide();
     }
     else
     {
         MessageBox.Show("Select a world from the list first");
     }
 }