Exemplo n.º 1
0
        private void button3_Click(object sender, EventArgs e)
        {
            _mainForm.Dispose();

            _mainForm = new MainForm((int)numericUpDownNumCards.Value);
            _mainForm.Show();

            _infoForm.Close();
            _endForm.Close();
        }
Exemplo n.º 2
0
        private void CardInformation(Card card)
        {
            // If it's the same card, but a different picture box do nothing
            if (CardInfoForm._card?.card_images[0].image_url == card.card_images[0].image_url)
            {
                return;
            }

            // If there's already a form showing a card info, close it
            _cardInfoForm?.Close();

            _cardInfoForm = new CardInfoForm(card);
            _cardInfoForm.Show();

            _cardInfoForm.StartPosition = FormStartPosition.Manual;
            _cardInfoForm.SetDesktopLocation(MainFormRef.Right - 10, MainFormRef.Location.Y);
        }