public EditDeck(int _idTheme, Color _colorButtons, Color _colorPanels, Color _colorBackground, string user, int _idDeck) { InitializeComponent(); idTheme = _idTheme; idDeck = _idDeck; colorButtons = _colorButtons; colorPanels = _colorPanels; colorBackground = _colorBackground; labelUser.Text = user; cardSelected = new SelectedCard(); //inicializar valores de la carta a seleccionar bd = new TarjetitasDB(); }
public StudyDeck(int _idTheme, Color _colorButtons, Color _colorPanels, Color _colorBackground, int _idDeck) { idDeck = _idDeck; idTheme = _idTheme; colorButtons = _colorButtons; colorPanels = _colorPanels; colorBackground = _colorBackground; InitializeComponent(); cardNum = 0; corrects = 0; wrongs = 0; cardSelected = new SelectedCard(); }
public Card(int idOcurrence, bool _edit, ref SelectedCard _cardSelected, string _front = "", string _reverse = "") { InitializeComponent(); this.IdOcurrence = idOcurrence; //obtener el id de ocurrencia de la tarjeta labelIdOcurrence.Text = this.IdOcurrence.ToString(); //mostrar el id de ocurrencia cardSelected = _cardSelected; //referencia de editCards para seleccionar tarjeta edit = _edit; //asignar el modo de presentación (edit = true / visual = false) front = new Content(); //inicializar frente reverse = new Content(); //inicializar reverso front.content = ReplaceDoubleSlashToRoute(_front); reverse.content = ReplaceDoubleSlashToRoute(_reverse); OpenSubForm(new CardText(edit, ref front)); //asignar al panelContainer el frente de la tarjeta (solo texto) }
public RecycleCards(int _idTheme, Color _colorButtons, Color _colorPanels, Color _colorBackground, string user, int _idDeck = 0) { InitializeComponent(); idTheme = _idTheme; colorButtons = _colorButtons; colorPanels = _colorPanels; colorBackground = _colorBackground; labelUser.Text = user; idDeck = _idDeck; cardSelected = new SelectedCard(); idAviableDecks = new List <int>(); db = new TarjetitasDB(); labelRecycleCards.Text = idDeck == 0 ? "Tarjetas Eliminadas Sueltas" : "Tarjetas Eliminadas Asociadas a una Baraja"; }
public Memorama(int _idTheme, Color _colorButtons, Color _colorPanels, Color _colorBackground, int _id_baraja) { InitializeComponent(); this.BackColor = _colorBackground; limit = 20; totalCards = 0; id_FrontCards = new List <int>(); id_BackCards = new List <int>(); juego = new Thread(Inicio); cardSelected = new SelectedCard(); panel = _colorPanels; fondo = _colorBackground; boton = _colorButtons; id_baraja = _id_baraja; CheckForIllegalCrossThreadCalls = false; tiempo.Text = time.ToString(); btnBack.Visible = false; btnFront.Visible = false; error.Visible = false; acierto.Visible = false; btnContinue.Visible = false; currentBack = null; currentFront = null; totalAciertos = 0; totalErrores = 0; IsPlaying = false; restart = false; btnClues.Enabled = false; GetAllCards(); chooseAtMost20Cards(); LoadCards(panelFront, id_FrontCards, 'F', ref FrontCards); LoadCards(panelBack, id_BackCards, 'B', ref BackCards); panelFront.Enabled = false; panelBack.Enabled = false; if (totalCards == 0) { btnStart.Enabled = false; } ; }