private void m_RandomTiler_Closed(object sender, EventArgs e) { m_RandomTiler.Dispose(); m_RandomTiler = null; }
private void bRndTile_Click(object sender, System.EventArgs e) { if ( m_RandomTiler == null ) { m_RandomTiler = new RandomTiler(); m_RandomTiler.Closed += new EventHandler(m_RandomTiler_Closed); m_RandomTiler.Show(); } else { m_RandomTiler.BringToFront(); } }