Example #1
0
        private void bbtnCardManager_Click(object sender, EventArgs e)
        {
            bool showCards = true;
            foreach (Form mdi in MdiParent.MdiChildren)
            {
                if (mdi is frmCards)
                {
                    showCards = false;
                    mdi.Activate();
                }
            }

            if (showCards)
            {
                frmCards frm = new frmCards();
                frm.MdiParent = MdiParent;
                frm.ParentFrm = _parent;
                frm.Show();
            }
        }
        private void bbtnManageCards_ItemClick(object sender, ItemClickEventArgs e)
        {
            bool showCards = true;
            foreach (Form mdi in MdiChildren)
            {
                if (mdi is frmCards)
                {
                    showCards = false;
                    mdi.Activate();
                }
            }

            if (showCards)
            {
                frmCards frm = new frmCards();
                frm.MdiParent = this;
                frm.ParentFrm = this;
                frm.Show();
            }
        }