using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace DM
{
public partial class DungeonCreation : Form
{
public DungeonCreation()
{
InitializeComponent();
}
RandomCreation openedForm2 = null;
private void GenerateDungeonButton_Click(object sender, EventArgs e)
{
GenerateDungeonButton.Text = "hi";
if (openedForm2 == null)
{
//There is no Form, so create and open it
openedForm2 = new RandomCreation();
openedForm2.Show();
}
else
{
//there is a form. So close and get rid of the reference
openedForm2.Close();
openedForm2 = null;
}
}
private void GenerateNPCButton_Click(object sender, EventArgs e)
{
}
private void GenerateWeaponButton_Click(object sender, EventArgs e)
{
}
private void GenerateArmourButton_Click(object sender, EventArgs e)
{
}
private void GenerateMagicButton_Click(object sender, EventArgs e)
{
}
}
}