private void button4_Click(object sender, EventArgs e) { if (Dios != null) { Dios.Dispose(); Dios = null; } }
private void Form1_FormClosed(object sender, FormClosedEventArgs e) { if (Dios != null) { Dios.Dispose(); Dios = null; } }
private void button1_Click(object sender, EventArgs e) { Dios = new MasterLifeForm(Convert.ToInt32(textBox1.Text), Convert.ToInt32(textBox2.Text)); }