Exemple #1
0
        private void onOrangeSlotsFormClosed(object sender, FormClosedEventArgs e)
        {
            if (m_frmOrangeSlots != null)
            {
                //TODO save off stats or credits, etc.

                m_frmOrangeSlots.Dispose();
                m_frmOrangeSlots = null;
            }
        }
Exemple #2
0
        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();
            }
        }