private void btnVerTema_Click(object sender, EventArgs e, Alumno.temaXClassroom txc) { ALUMNO_temaInfo.tema_X_classroom = txc; frmTema formTema = new frmTema(); //formTema.Visible = true; _padre.openChildForm_withoutClosing(formTema); }
private void agregarTema(Alumno.temaXClassroom tma) { // // lbl Nombre del tema // Label lblNombTema = new Label(); lblNombTema.BackColor = Color.FromArgb(0, 0, 90); lblNombTema.Font = new Font("Roboto", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); lblNombTema.ForeColor = Color.White; lblNombTema.Location = new Point(76, 66 + alturaTemas); lblNombTema.Name = "lblNombreTema"; lblNombTema.Size = new Size(300, 23); //lblNombTema.Text = "Nombre del tema"; lblNombTema.Text = tma.nombre; lblNombTema.Visible = true; tabPageTema.Controls.Add(lblNombTema); // // Picture box Check // PictureBox pbCheck = new PictureBox(); pbCheck.Location = new Point(814, 59 + alturaTemas); pbCheck.BackColor = Color.FromArgb(0, 0, 90); pbCheck.Size = new Size(36, 36); pbCheck.SizeMode = PictureBoxSizeMode.AutoSize; pbCheck.Image = global::Sinapxon.Properties.Resources.baseline_check_circle_white_18dp; pbCheck.Name = "pbChecked"; //tabPageTema.Controls.Add(pbCheck); // // Picture box Cross // PictureBox pbCross = new PictureBox(); pbCross.Location = new Point(814, 59 + alturaEvaluaciones); pbCross.BackColor = Color.FromArgb(0, 0, 90); pbCross.Size = new Size(36, 36); pbCross.SizeMode = PictureBoxSizeMode.AutoSize; pbCross.Image = global::Sinapxon.Properties.Resources.baseline_cancel_white_18dp; pbCross.Name = "pbCrossed"; pbCross.Visible = false; tabPageEvaluacion.Controls.Add(pbCross); // // btn Ver tema // Button btnEntrarTema = new Button(); btnEntrarTema.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); btnEntrarTema.BackColor = System.Drawing.Color.FromArgb(103, 70, 195); btnEntrarTema.FlatAppearance.BorderSize = 0; btnEntrarTema.FlatStyle = System.Windows.Forms.FlatStyle.Flat; btnEntrarTema.Font = new System.Drawing.Font("Roboto", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); btnEntrarTema.ForeColor = System.Drawing.Color.White; btnEntrarTema.Location = new System.Drawing.Point(645, 59 + alturaTemas); btnEntrarTema.Name = "btnVerTema"; btnEntrarTema.Size = new System.Drawing.Size(122, 36); btnEntrarTema.Text = "Ver tema"; btnEntrarTema.UseVisualStyleBackColor = false; //btnEntrarTema.Click += new System.EventHandler(this.btnVerTema_Click); btnEntrarTema.Click += new System.EventHandler((sender, e) => this.btnVerTema_Click(sender, e, tma)); tabPageTema.Controls.Add(btnEntrarTema); // // Picture box Contenedor azul // PictureBox boxBase = new PictureBox(); boxBase.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); boxBase.Image = global::Sinapxon.Properties.Resources.Barra_PD; boxBase.Location = new Point(6, 18 + alturaTemas); boxBase.Name = "pictureBoxBlue"; boxBase.Size = new Size(888, 119); boxBase.SizeMode = PictureBoxSizeMode.StretchImage; boxBase.BackColor = Color.FromArgb(130, 130, 130); tabPageTema.Controls.Add(boxBase); alturaTemas = alturaTemas + boxAltura; }