private void onOrangeSlotsFormClosed(object sender, FormClosedEventArgs e) { if (m_frmOrangeSlots != null) { //TODO save off stats or credits, etc. m_frmOrangeSlots.Dispose(); m_frmOrangeSlots = null; } }
public void showOrangeSlotsForm() { if (m_frmOrangeSlots == null) { m_frmOrangeSlots = new frmOrangeSlots(); m_frmOrangeSlots.FormClosed += new FormClosedEventHandler(onOrangeSlotsFormClosed); m_frmOrangeSlots.Show(); } else { //Already running a copy, attempt to make window visable m_frmOrangeSlots.BringToFront(); } }