예제 #1
0
        private void onAppleSlotsFormClosed(object sender, FormClosedEventArgs e)
        {
            if (m_frmAppleSlots != null)
            {
                //TODO save off stats or credits, etc.

                m_frmAppleSlots.Dispose();
                m_frmAppleSlots = null;
            }
        }
예제 #2
0
        public void showAppleSlotsForm()
        {
            if (m_frmAppleSlots == null)
            {
                m_frmAppleSlots             = new frmAppleSlots();
                m_frmAppleSlots.FormClosed += new FormClosedEventHandler(onAppleSlotsFormClosed);
                m_frmAppleSlots.Show();
            }

            else
            {
                //Already running a copy, attempt to make window visable
                m_frmAppleSlots.BringToFront();
            }
        }