Beispiel #1
0
        private void 助学金信息表ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.Visible = false;
            Form23 f4 = new Form23();

            f4.ShowDialog();
            this.Visible = true;
        }
Beispiel #2
0
        private void bunifuTileButton1_Click(object sender, EventArgs e)
        {
            i = 0;
            Form23         lec = new Form23();
            SqlDataAdapter sda = new SqlDataAdapter("select Titlu,Text,ImagineP,i1,i2,i3,i4 from Lectii ", Form1.con);
            DataTable      dt  = new DataTable();

            sda.Fill(dt);
            lec.pictureBox1.ImageLocation = @"poze lectii\1\" + dt.Rows[i][2].ToString() + ".png";

            lec.richTextBox1.Text = "                                     " + dt.Rows[i][0].ToString() + "\n" + "     " + dt.Rows[i][1].ToString().Trim(' ');
            lec.bunifuImageButton1.ImageLocation = @"poze lectii\1\" + dt.Rows[i][2].ToString() + ".png";
            if (dt.Rows[i][4].ToString() != "")
            {
                lec.bunifuImageButton2.ImageLocation = @"poze lectii\1\" + dt.Rows[i][4].ToString() + ".png";
            }
            else
            {
                lec.bunifuImageButton2.Visible = false;
            }
            if (dt.Rows[i][5].ToString() != "")
            {
                lec.bunifuImageButton3.ImageLocation = @"poze lectii\1\" + dt.Rows[i][5].ToString() + ".png";
            }
            else
            {
                lec.bunifuImageButton3.Visible = false;
            }

            if (dt.Rows[i][6].ToString() != "")
            {
                lec.bunifuImageButton4.ImageLocation = @"poze lectii\1\" + dt.Rows[i][6].ToString() + ".png";
            }
            else
            {
                lec.bunifuImageButton4.Visible = false;
            }

            lec.ShowDialog();
        }