Esempio n. 1
0
        private void editDeckToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (optionsEditor != null)
            {
                optionsEditor.Hide();
            }

            if (GameLobby != null)
            {
                GameLobby.Hide();
            }



            if (deckEditor == null)
            {
                CleanMain();
                soundEngine.Play2D(AppDomain.CurrentDomain.BaseDirectory + "sound/menu.wav");
                deckEditor          = new DeckEdit(this, soundEngine);
                deckEditor.TopLevel = false;
                deckEditor.Location = new Point(0, 0);
                panel2.Controls.Add(deckEditor);
                deckEditor.Show();
            }

            else
            {
                CleanMain();
                deckEditor.Show();
                deckEditor.CleanSelectedCards();
                deckEditor.ReloadCardList();
                deckEditor.ClearPictureCards();
            }
        }
Esempio n. 2
0
        private void button3_Click(object sender, EventArgs e)
        {
            if (deckEditor == null)
            {
                CleanMain();
                soundEngine.Play2D(AppDomain.CurrentDomain.BaseDirectory + "sound/menu.wav");
                deckEditor          = new DeckEdit(this, soundEngine);
                deckEditor.TopLevel = false;
                deckEditor.Location = new Point(0, 0);
                panel2.Controls.Add(deckEditor);
                deckEditor.Show();
            }

            else
            {
                CleanMain();
                deckEditor.Show();
            }
        }