예제 #1
0
        private void заказыНаЗаданнуюДатуToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Form f10 = new Form31();

            f10.MdiParent = this;
            f10.Show();
        }
예제 #2
0
        private void button3_Click(object sender, EventArgs e)
        {
            Form31 f31 = new Form31();

            f31.Show();
            this.Hide();
        }
예제 #3
0
        private void bunifuImageButton5_Click(object sender, EventArgs e)
        {
            Form31 f31 = new Form31();


            this.Hide();
        }
예제 #4
0
        private void label1_Click(object sender, EventArgs e)
        {
            Form31 fm31 = new Form31();

            fm31.ShowDialog();
            this.Close();
        }
예제 #5
0
        private void  课管理ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.Visible = false;
            Form31 f4 = new Form31();

            f4.ShowDialog();
            this.Visible = true;
        }
예제 #6
0
        private void buttonAddMed_Click(object sender, EventArgs e)
        {
            Form31 form31 = new Form31();

            this.Hide();
            form31.ShowDialog();
            this.Show();
        }
예제 #7
0
        private void bunifuTileButton1_Click(object sender, EventArgs e)
        {
            Form31         f31 = new Form31();
            Form1          f1  = new Form1();
            SqlDataAdapter sda = new SqlDataAdapter("select count(*) from elevi where Nume='" + Form1.a + "'", con);
            DataTable      dt  = new DataTable();

            sda.Fill(dt);
            if (dt.Rows[0][0].ToString() == "1")
            {
                f31.testeToolStripMenuItem.Visible  = true;
                f31.lectiiToolStripMenuItem.Visible = true;
                f31.logareToolStripMenuItem.Visible = false;
            }
            f31.Show();
            this.Hide();
        }
예제 #8
0
        private void bunifuThinButton22_Click(object sender, EventArgs e)
        {
            bunifuTileButton2.Visible  = true;
            bunifuTileButton1.Visible  = true;
            label1.Visible             = false;
            label2.Visible             = false;
            label3.Visible             = false;
            label4.Visible             = false;
            pictureBox2.Visible        = false;
            bunifuThinButton21.Visible = false;
            bunifuThinButton22.Visible = false;
            Form31         f31 = new Form31();
            SqlDataAdapter sda = new SqlDataAdapter("select img from elevi where Nume='" + Form4.a + "'", Form1.con);
            DataTable      dt  = new DataTable();

            sda.Fill(dt);
            f31.pictureBox1.ImageLocation = dt.Rows[0][0].ToString();
            f31.pictureBox1.Refresh();
        }
예제 #9
0
        private void bunifuThinButton21_Click(object sender, EventArgs e)
        {
            Form31 log = new Form31();

            a = bunifuTextbox1.text;
            b = bunifuTextbox2.text;
            SqlDataAdapter sda = new SqlDataAdapter("select count(*)  from elevi where Nume='" + bunifuTextbox1.text + "'and parola='" + bunifuTextbox2.text + "'", Form1.con);
            DataTable      dt  = new DataTable();

            sda.Fill(dt);
            if (dt.Rows[0][0].ToString() == "1")
            {
                log.bunifuTileButton1.Enabled       = true;
                log.bunifuTileButton2.Enabled       = true;
                log.bunifuTileButton3.Enabled       = true;
                log.bunifuTileButton4.Enabled       = true;
                log.bunifuTileButton6.Enabled       = true;
                log.pictureBox1.Enabled             = true;
                log.logoutToolStripMenuItem.Visible = true;
                log.loginToolStripMenuItem.Visible  = false;
                log.label1.Visible = true;
                log.label2.Visible = true;
                SqlDataAdapter sdq = new SqlDataAdapter("select img, Admin from elevi where Nume='" + Form4.a + "'", Form1.con);
                DataTable      dt2 = new DataTable();
                sdq.Fill(dt2);
                log.pictureBox1.ImageLocation = dt2.Rows[0][0].ToString();
                log.label1.Text = "Bine ai venit, " + Form4.a;
                if (dt2.Rows[0][1].ToString() == "1")
                {
                    log.label2.Text = "Rang: " + "★ Admin";
                }
                else
                {
                    log.bunifuTileButton5.Enabled = false;
                    string         select = "select img,elevPROF from elevi where Nume='" + Form4.a + "'";
                    SqlDataAdapter sda3   = new SqlDataAdapter(select, Form1.con);
                    DataTable      dt3    = new DataTable();
                    sda3.Fill(dt3);
                    if (dt3.Rows[0][1].ToString() == "1")
                    {
                        log.label2.Text = "Rang: " + "웃 Profesor";
                        log.bunifuTileButton7.Visible  = true;
                        log.bunifuTileButton9.Visible  = true;
                        log.bunifuTileButton3.Visible  = false;
                        log.bunifuTileButton1.Visible  = false;
                        log.bunifuTileButton7.Location = new Point(14, 293);
                        log.bunifuTileButton9.Location = new Point(304, 293);
                        Form29 f29 = new Form29();
                        f29.bunifuTileButton11.Visible = true;
                        f29.bunifuTileButton15.Visible = true;
                    }
                    else
                    {
                        log.label2.Text = "Rang: " + "웃 Elev";
                    }
                }
                log.Size = new Size(876, 454);
                log.Text = "                                                                                                                                     Pla" +
                           "tformă Educatională";
                log.Show();
                this.Hide();
            }
            else
            {
                MessageBox.Show("Datele introduse nu corespund!");
                bunifuTextbox1.text = "";
                bunifuTextbox2.text = "";
            }
        }