Ejemplo n.º 1
0
        public Subjects(string idm, string nomm)
        {
            InitializeComponent();
            semestre = new string[10] {
                "1", "1", "1", "1", "1", "2", "2", "2", "2", "2"
            };
            semestre2 = new string[10] {
                "cc11", "cc21", "cc31", "cc41", "cc51", "cc12", "cc22", "cc32", "cc42", "cc52"
            };
            cl_buttons.Add(Button1); cl_buttons.Add(Button2); cl_buttons.Add(Button3); cl_buttons.Add(Button4); cl_buttons.Add(Button5); cl_buttons.Add(Button6); cl_buttons.Add(Button7); cl_buttons.Add(Button8); cl_buttons.Add(Button9); cl_buttons.Add(Button10);
            int x = 0;

            foreach (Bunifu.Framework.UI.BunifuTileButton b in cl_buttons)
            {
                b.Click += new EventHandler(this.clickcc);
                dict[semestre2[x++]] = b;
            }
            string id    = HomePreview.id;
            string nomgr = HomePreview.nomgr;

            this.idm  = idm;
            this.nomm = nomm;
            chart ch = new chart(chart1, HomePreview.id);

            ch.addChartBy(nom: nomgr, id_matiere: idm);

            Login.read = DBConnect.Gets("select max(calcule.n), min(calcule.n) , avg(calcule.n) from (select avg(note) as n from examiner where id_matiere=" + this.idm + " group by id_etudiant) as calcule");
            if (Login.read.Read())
            {
                max.Text = Login.read[0].ToString();
                min.Text = Login.read[1].ToString();
                moy      = Login.read[2].ToString();
            }
            bunifuCircleProgressbar1.Value = (int)Math.Ceiling(float.Parse(moy));

            Login.read = DBConnect.Gets("select nom , prenom from groupe_matiere_enseignant , enseignant where id_enseignant=id and id_groupe=" + id + " and id_matiere=" + this.idm);
            while (Login.read.Read())
            {
                bunifuTileButton1.LabelText = Login.read["nom"].ToString() + " " + Login.read["prenom"].ToString();
            }
            Login.read.Close();

            moyenne.Text = Math.Round(double.Parse(moy), 2).ToString();
            if (double.Parse(moyenne.Text) < 5)
            {
                bunifuCircleProgressbar1.ProgressColor = Color.Red;
            }
            else
            {
                bunifuCircleProgressbar1.ProgressColor = Color.Green;
            }
            Login.read = DBConnect.Gets("select distinct titre ,semestre from examiner where id_groupe = " + id + " and id_matiere=" + this.idm + " order by semestre,titre");

            while (Login.read.Read())
            {
                Bunifu.Framework.UI.BunifuTileButton b = dict[Login.read[0].ToString() + Login.read[1].ToString()];
                b.Visible = true;
            }
            Login.read.Close();
            Infobox.Text = this.nomm;
        }
Ejemplo n.º 2
0
        private void licao_DoWork(object sender, DoWorkEventArgs e)
        {
            licao.WorkerSupportsCancellation = true; Invoke(new Action(() =>
            {
                flowLayoutPanel1.Controls.Clear();
            }));
            Bunifu.Framework.UI.BunifuSeparator sep1 = new Bunifu.Framework.UI.BunifuSeparator();
            sep1.Width = flowLayoutPanel1.Width - 30;
            if (!Properties.Settings.Default.phpLocal)
            {
                MySqlConnection CONEXAO      = new MySqlConnection(Vars.Cfg);
                MySqlCommand    checarLicoes = new MySqlCommand("SELECT * FROM licoes INNER JOIN profdisc ON licoes.disc = cod_disc INNER JOIN disc ON discid_disc = cod_discs WHERE mesentrega = @Mes AND diaentrega = @Dia AND sala = @Sala AND avaliado > 0;", CONEXAO);
                try
                {
                    CONEXAO.Open();
                    checarLicoes.Parameters.AddWithValue("@Mes", Vars.mesSelec);
                    checarLicoes.Parameters.AddWithValue("@Dia", Vars.diaSelec);
                    checarLicoes.Parameters.AddWithValue("@Sala", Properties.Settings.Default.codSala);



                    int cod = Convert.ToInt32(checarLicoes.ExecuteScalar());

                    if (cod > 0)
                    {
                        Invoke(new Action(() =>
                        {
                            flowLayoutPanel1.Controls.Add(sep1);
                        }));
                    }

                    MySqlDataReader lerLicoes = checarLicoes.ExecuteReader();


                    while (lerLicoes.Read())
                    {
                        string textolicao = lerLicoes["licao"].ToString();
                        if (textolicao.Substring(textolicao.Length - 1, 1) != "." && textolicao.Substring(textolicao.Length - 1, 1) != "!" && textolicao.Substring(textolicao.Length - 1, 1) != "?" && textolicao.Substring(textolicao.Length - 1, 1) != "\r\n")
                        {
                            textolicao += ".";
                        }

                        TableLayoutPanel painel = new TableLayoutPanel();
                        painel.AutoSize = true;



                        licaoTit licaoTit = new licaoTit(lerLicoes["nome_disc"].ToString(), flowLayoutPanel1.Width - 31);
                        licaoTit.Height = 35;
                        FontStyle estilo = FontStyle.Regular;
                        if (licaoTit.Font.Bold)
                        {
                            estilo = FontStyle.Bold;
                        }
                        if (Vars.af.Width == Screen.PrimaryScreen.WorkingArea.Width)
                        {
                            licaoTit.Font = new System.Drawing.Font(licaoTit.Font.FontFamily, Convert.ToInt32(Convert.ToInt32(licaoTit.Font.Size) * 1.5), estilo);
                        }
                        painel.Controls.Add(licaoTit);



                        licaoTxt licaoTxt = new licaoTxt(textolicao, flowLayoutPanel1.Width - 31);
                        estilo = FontStyle.Regular;
                        if (licaoTxt.Font.Bold)
                        {
                            estilo = FontStyle.Bold;
                        }
                        if (Vars.af.Width == Screen.PrimaryScreen.WorkingArea.Width)
                        {
                            licaoTxt.Font = new System.Drawing.Font(licaoTxt.Font.FontFamily, Convert.ToInt32(Convert.ToInt32(licaoTxt.Font.Size) * 1.5), estilo);
                        }
                        painel.Controls.Add(licaoTxt);

                        if (lerLicoes["link_anexo"].ToString() != "")
                        {
                            string link = lerLicoes["link_anexo"].ToString();
                            pic    picc = new DiarioDeClasse.pic(link, flowLayoutPanel1.Width - 31); //PictureBox pb = new PictureBox();
                            picc.ImageLocation = link;
                            Image img = picc.Image;
                            picc.Image = img;
                            painel.Controls.Add(picc);
                        }


                        AddPor licaoAddPor = new AddPor(lerLicoes["adicionadopor"].ToString(), lerLicoes["cod"].ToString());
                        if (licaoAddPor.Font.Bold)
                        {
                            estilo = FontStyle.Bold;
                        }
                        if (Vars.af.Width == Screen.PrimaryScreen.WorkingArea.Width)
                        {
                            licaoAddPor.Font = new System.Drawing.Font(licaoAddPor.Font.FontFamily, Convert.ToInt32(Convert.ToInt32(licaoAddPor.Font.Size) * 1.5), estilo);
                        }
                        painel.Controls.Add(licaoAddPor);


                        AddEm licaoAddEm = new AddEm(lerLicoes["adicionadoem"].ToString());
                        if (licaoAddEm.Font.Bold)
                        {
                            estilo = FontStyle.Bold;
                        }
                        if (Vars.af.Width == Screen.PrimaryScreen.WorkingArea.Width)
                        {
                            licaoAddEm.Font = new System.Drawing.Font(licaoAddEm.Font.FontFamily, Convert.ToInt32(Convert.ToInt32(licaoAddEm.Font.Size) * 1.5), estilo);
                        }
                        painel.Controls.Add(licaoAddEm);

                        if (Properties.Settings.Default.permInt == 1 || Properties.Settings.Default.permInt == 2 || Properties.Settings.Default.permInt == 3 || Properties.Settings.Default.permInt == 9)
                        {
                            Bunifu.Framework.UI.BunifuTileButton btnExcluir = new Bunifu.Framework.UI.BunifuTileButton();
                            btnExcluir.BackColor     = Color.Transparent;
                            btnExcluir.color         = Color.Transparent;
                            btnExcluir.colorActive   = System.Drawing.Color.DodgerBlue;
                            btnExcluir.Cursor        = System.Windows.Forms.Cursors.Hand;
                            btnExcluir.Image         = Properties.Resources.icons8_Trash_Can_64px;
                            btnExcluir.ImagePosition = 0;
                            btnExcluir.ImageZoom     = 100;
                            btnExcluir.LabelPosition = 0;
                            btnExcluir.LabelText     = "";
                            btnExcluir.Location      = new System.Drawing.Point(349, 254);
                            btnExcluir.Margin        = new System.Windows.Forms.Padding(6);
                            btnExcluir.Size          = new System.Drawing.Size(40, 40);
                            btnExcluir.TabIndex      = 0;
                            btnExcluir.Tag           = lerLicoes["cod"].ToString();
                            btnExcluir.Click        += new System.EventHandler(this.btnExcluir_Click);
                            btnExcluir.Anchor        = AnchorStyles.Right;
                            painel.Controls.Add(btnExcluir);
                        }

                        Bunifu.Framework.UI.BunifuSeparator sep = new Bunifu.Framework.UI.BunifuSeparator();
                        sep.Width = flowLayoutPanel1.Width - 30;

                        Invoke(new Action(() =>
                        {
                            flowLayoutPanel1.Controls.Add(painel);
                            flowLayoutPanel1.Controls.Add(sep);
                        }));
                    }
                    lerLicoes.Close();
                }
                catch (Exception erro)
                {
                    if (Properties.Settings.Default.permInt == 3 || Properties.Settings.Default.permInt == 9)
                    {
                        if (erro.ToString().ToLower().Contains("system.invalidoperationexception"))
                        {
                        }
                        else
                        {
                            MessageBox.Show("Houve um erro no MySql:\r\n" + erro.ToString());
                        }
                    }
                }
                finally
                {
                    CONEXAO.Close();
                }
            }
            else
            {
                WebClient kj = new WebClient();
                kj.Encoding = System.Text.Encoding.UTF8;
                string   resultado = kj.DownloadString("http://" + Vars.cfgPhp + "/dia/licao.php?sala=" + Properties.Settings.Default.codSala + "&dia=" + Vars.diaSelec + "&mes=" + Vars.mesSelec).Trim();
                string[] reps      = resultado.Split(new string[] { "&&&" }, StringSplitOptions.RemoveEmptyEntries);
                if (resultado != "0")
                {
                    Invoke(new Action(() =>
                    {
                        flowLayoutPanel1.Controls.Add(sep1);
                    }));
                }
                foreach (string teste in reps)
                {
                    string[] codes = teste.Split(new string[] { "@#@" }, StringSplitOptions.RemoveEmptyEntries);
                    if (codes.Length > 3)
                    {
                        string discLicao   = codes[0];
                        string codLicao    = codes[1];
                        string txtLicao    = codes[2];
                        string anexoLicao  = "";
                        string addPorLicao = "";
                        string addEmLicao  = "";
                        if (codes[3].Contains("imgur"))
                        {
                            anexoLicao  = codes[3];
                            addPorLicao = codes[4];
                            addEmLicao  = codes[5];
                        }
                        else
                        {
                            addPorLicao = codes[3];
                            addEmLicao  = codes[4];
                        }

                        string textolicao = txtLicao;
                        if (textolicao.Substring(textolicao.Length - 1, 1) != "." && textolicao.Substring(textolicao.Length - 1, 1) != "!" && textolicao.Substring(textolicao.Length - 1, 1) != "?" && textolicao.Substring(textolicao.Length - 1, 1) != "\r\n")
                        {
                            textolicao += ".";
                        }

                        TableLayoutPanel painel = new TableLayoutPanel();
                        painel.AutoSize = true;

                        licaoTit licaoTit = new licaoTit(discLicao, flowLayoutPanel1.Width - 31);
                        licaoTit.Height = 35;
                        FontStyle estilo = FontStyle.Regular;
                        if (licaoTit.Font.Bold)
                        {
                            estilo = FontStyle.Bold;
                        }
                        if (Vars.af.Width == Screen.PrimaryScreen.WorkingArea.Width)
                        {
                            licaoTit.Font = new System.Drawing.Font(licaoTit.Font.FontFamily, Convert.ToInt32(Convert.ToInt32(licaoTit.Font.Size) * 1.5), estilo);
                        }
                        painel.Controls.Add(licaoTit);

                        DateTime dateValue = new DateTime(2017, Convert.ToInt32(Vars.mesSelec), Int32.Parse(Vars.diaSelec));

                        licaoTxt licaoTxt = new licaoTxt(textolicao, flowLayoutPanel1.Width - 31);
                        estilo = FontStyle.Regular;
                        if (licaoTxt.Font.Bold)
                        {
                            estilo = FontStyle.Bold;
                        }
                        if (Vars.af.Width == Screen.PrimaryScreen.WorkingArea.Width)
                        {
                            licaoTxt.Font = new System.Drawing.Font(licaoTxt.Font.FontFamily, Convert.ToInt32(Convert.ToInt32(licaoTxt.Font.Size) * 1.5), estilo);
                        }
                        painel.Controls.Add(licaoTxt);

                        if (anexoLicao != "")
                        {
                            Invoke(new Action(() =>
                            {
                                string link        = anexoLicao;
                                pic picc           = new DiarioDeClasse.pic(link, flowLayoutPanel1.Width - 31); //PictureBox pb = new PictureBox();
                                picc.ImageLocation = link;
                                Image img          = picc.Image;
                                picc.Image         = img;
                                painel.Controls.Add(picc);
                            }));
                        }

                        AddPor licaoAddPor = new AddPor(addPorLicao, codLicao);
                        if (licaoAddPor.Font.Bold)
                        {
                            estilo = FontStyle.Bold;
                        }
                        if (Vars.af.Width == Screen.PrimaryScreen.WorkingArea.Width)
                        {
                            licaoAddPor.Font = new System.Drawing.Font(licaoAddPor.Font.FontFamily, Convert.ToInt32(Convert.ToInt32(licaoAddPor.Font.Size) * 1.5), estilo);
                        }
                        painel.Controls.Add(licaoAddPor);


                        AddEm licaoAddEm = new AddEm(addEmLicao);
                        if (licaoAddEm.Font.Bold)
                        {
                            estilo = FontStyle.Bold;
                        }
                        if (Vars.af.Width == Screen.PrimaryScreen.WorkingArea.Width)
                        {
                            licaoAddEm.Font = new System.Drawing.Font(licaoAddEm.Font.FontFamily, Convert.ToInt32(Convert.ToInt32(licaoAddEm.Font.Size) * 1.5), estilo);
                        }
                        painel.Controls.Add(licaoAddEm);

                        if (Properties.Settings.Default.permInt == 1 || Properties.Settings.Default.permInt == 2 || Properties.Settings.Default.permInt == 3 || Properties.Settings.Default.permInt == 9)
                        {
                            Bunifu.Framework.UI.BunifuTileButton btnExcluir = new Bunifu.Framework.UI.BunifuTileButton();
                            btnExcluir.BackColor     = Color.Transparent;
                            btnExcluir.color         = Color.Transparent;
                            btnExcluir.colorActive   = System.Drawing.Color.DodgerBlue;
                            btnExcluir.Cursor        = System.Windows.Forms.Cursors.Hand;
                            btnExcluir.Image         = Properties.Resources.icons8_Trash_Can_64px;
                            btnExcluir.ImagePosition = 0;
                            btnExcluir.ImageZoom     = 100;
                            btnExcluir.LabelPosition = 0;
                            btnExcluir.LabelText     = "";
                            btnExcluir.Location      = new System.Drawing.Point(349, 254);
                            btnExcluir.Margin        = new System.Windows.Forms.Padding(6);
                            btnExcluir.Size          = new System.Drawing.Size(40, 40);
                            btnExcluir.TabIndex      = 0;
                            btnExcluir.Tag           = codes[1];
                            btnExcluir.Click        += new System.EventHandler(this.btnExcluir_Click);
                            btnExcluir.Anchor        = AnchorStyles.Right;
                            painel.Controls.Add(btnExcluir);
                        }

                        Bunifu.Framework.UI.BunifuSeparator sep = new Bunifu.Framework.UI.BunifuSeparator();
                        sep.Width = flowLayoutPanel1.Width - 30;

                        Invoke(new Action(() =>
                        {
                            flowLayoutPanel1.Controls.Add(painel);
                            flowLayoutPanel1.Controls.Add(sep);
                        }));
                    }
                }
            }
        }
Ejemplo n.º 3
0
 private void btnRefresh_MouseLeave(object sender, EventArgs e)
 {
     Bunifu.Framework.UI.BunifuTileButton bt = (Bunifu.Framework.UI.BunifuTileButton)sender;
     bt.BackColor = Color.Transparent;
     bt.ForeColor = Color.Black;
 }
Ejemplo n.º 4
0
        private void CreateMainIcon()
        {
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Home));
            this.btBaoCao       = new Bunifu.Framework.UI.BunifuTileButton();
            this.btNhapBangDiem = new Bunifu.Framework.UI.BunifuTileButton();
            this.btTraCuu       = new Bunifu.Framework.UI.BunifuTileButton();
            this.btLapDS        = new Bunifu.Framework.UI.BunifuTileButton();
            this.btThemHocSinh  = new Bunifu.Framework.UI.BunifuTileButton();
            this.btQuyDinh      = new Bunifu.Framework.UI.BunifuTileButton();
            this.SuspendLayout();

            // btBaoCao
            //
            this.btBaoCao.Anchor        = System.Windows.Forms.AnchorStyles.Top;
            this.btBaoCao.BackColor     = System.Drawing.Color.FromArgb(((int)(((byte)(181)))), ((int)(((byte)(27)))), ((int)(((byte)(141)))));
            this.btBaoCao.BorderStyle   = System.Windows.Forms.BorderStyle.FixedSingle;
            this.btBaoCao.color         = System.Drawing.Color.FromArgb(((int)(((byte)(181)))), ((int)(((byte)(27)))), ((int)(((byte)(141)))));
            this.btBaoCao.colorActive   = System.Drawing.Color.MediumSeaGreen;
            this.btBaoCao.Cursor        = System.Windows.Forms.Cursors.Hand;
            this.btBaoCao.Font          = new System.Drawing.Font("Times New Roman", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.btBaoCao.ForeColor     = System.Drawing.Color.White;
            this.btBaoCao.Image         = ((System.Drawing.Image)(resources.GetObject("btBaoCao.Image")));
            this.btBaoCao.ImagePosition = 10;
            this.btBaoCao.ImageZoom     = 30;
            this.btBaoCao.ImeMode       = System.Windows.Forms.ImeMode.AlphaFull;
            this.btBaoCao.LabelPosition = 39;
            this.btBaoCao.LabelText     = "Lập báo cáo tổng kết";
            this.btBaoCao.Location      = new System.Drawing.Point(719, 287);
            this.btBaoCao.Margin        = new System.Windows.Forms.Padding(7, 6, 7, 6);
            this.btBaoCao.Name          = "btBaoCao";
            this.btBaoCao.Size          = new System.Drawing.Size(210, 117);
            this.btBaoCao.TabIndex      = 22;
            this.btBaoCao.Click        += new System.EventHandler(this.btBaoCao_Click);


            // btNhapBangDiem
            //
            this.btNhapBangDiem.Anchor        = System.Windows.Forms.AnchorStyles.Top;
            this.btNhapBangDiem.BackColor     = System.Drawing.Color.FromArgb(((int)(((byte)(181)))), ((int)(((byte)(27)))), ((int)(((byte)(141)))));
            this.btNhapBangDiem.BorderStyle   = System.Windows.Forms.BorderStyle.FixedSingle;
            this.btNhapBangDiem.color         = System.Drawing.Color.FromArgb(((int)(((byte)(181)))), ((int)(((byte)(27)))), ((int)(((byte)(141)))));
            this.btNhapBangDiem.colorActive   = System.Drawing.Color.MediumSeaGreen;
            this.btNhapBangDiem.Cursor        = System.Windows.Forms.Cursors.Hand;
            this.btNhapBangDiem.Font          = new System.Drawing.Font("Times New Roman", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.btNhapBangDiem.ForeColor     = System.Drawing.Color.White;
            this.btNhapBangDiem.Image         = ((System.Drawing.Image)(resources.GetObject("btNhapBangDiem.Image")));
            this.btNhapBangDiem.ImagePosition = 10;
            this.btNhapBangDiem.ImageZoom     = 30;
            this.btNhapBangDiem.ImeMode       = System.Windows.Forms.ImeMode.AlphaFull;
            this.btNhapBangDiem.LabelPosition = 39;
            this.btNhapBangDiem.LabelText     = "Nhận bảng điểm môn";
            this.btNhapBangDiem.Location      = new System.Drawing.Point(472, 287);
            this.btNhapBangDiem.Margin        = new System.Windows.Forms.Padding(7, 6, 7, 6);
            this.btNhapBangDiem.Name          = "btNhapBangDiem";
            this.btNhapBangDiem.Size          = new System.Drawing.Size(211, 117);
            this.btNhapBangDiem.TabIndex      = 21;
            this.btNhapBangDiem.Click        += new System.EventHandler(this.btNhapBangDiem_Click);

            // btTraCuu
            //
            this.btTraCuu.Anchor        = System.Windows.Forms.AnchorStyles.Top;
            this.btTraCuu.BackColor     = System.Drawing.Color.FromArgb(((int)(((byte)(181)))), ((int)(((byte)(27)))), ((int)(((byte)(141)))));
            this.btTraCuu.BorderStyle   = System.Windows.Forms.BorderStyle.FixedSingle;
            this.btTraCuu.color         = System.Drawing.Color.FromArgb(((int)(((byte)(181)))), ((int)(((byte)(27)))), ((int)(((byte)(141)))));
            this.btTraCuu.colorActive   = System.Drawing.Color.MediumSeaGreen;
            this.btTraCuu.Cursor        = System.Windows.Forms.Cursors.Hand;
            this.btTraCuu.Font          = new System.Drawing.Font("Times New Roman", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.btTraCuu.ForeColor     = System.Drawing.Color.White;
            this.btTraCuu.Image         = ((System.Drawing.Image)(resources.GetObject("btTraCuu.Image")));
            this.btTraCuu.ImagePosition = 10;
            this.btTraCuu.ImageZoom     = 30;
            this.btTraCuu.ImeMode       = System.Windows.Forms.ImeMode.AlphaFull;
            this.btTraCuu.LabelPosition = 39;
            this.btTraCuu.LabelText     = "Tra cứu học sinh";
            this.btTraCuu.Location      = new System.Drawing.Point(719, 122);
            this.btTraCuu.Margin        = new System.Windows.Forms.Padding(7, 6, 7, 6);
            this.btTraCuu.Name          = "btTraCuu";
            this.btTraCuu.Size          = new System.Drawing.Size(210, 119);
            this.btTraCuu.TabIndex      = 20;
            this.btTraCuu.Click        += new System.EventHandler(this.btTraCuu_Click);

            // btLapDS
            //
            this.btLapDS.Anchor        = System.Windows.Forms.AnchorStyles.Top;
            this.btLapDS.BackColor     = System.Drawing.Color.FromArgb(((int)(((byte)(181)))), ((int)(((byte)(27)))), ((int)(((byte)(141)))));
            this.btLapDS.BorderStyle   = System.Windows.Forms.BorderStyle.FixedSingle;
            this.btLapDS.color         = System.Drawing.Color.FromArgb(((int)(((byte)(181)))), ((int)(((byte)(27)))), ((int)(((byte)(141)))));
            this.btLapDS.colorActive   = System.Drawing.Color.MediumSeaGreen;
            this.btLapDS.Cursor        = System.Windows.Forms.Cursors.Hand;
            this.btLapDS.Font          = new System.Drawing.Font("Times New Roman", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.btLapDS.ForeColor     = System.Drawing.Color.White;
            this.btLapDS.Image         = ((System.Drawing.Image)(resources.GetObject("btLapDS.Image")));
            this.btLapDS.ImagePosition = 10;
            this.btLapDS.ImageZoom     = 27;
            this.btLapDS.ImeMode       = System.Windows.Forms.ImeMode.AlphaFull;
            this.btLapDS.LabelPosition = 39;
            this.btLapDS.LabelText     = "Lập Danh Sách Lớp";
            this.btLapDS.Location      = new System.Drawing.Point(215, 287);
            this.btLapDS.Margin        = new System.Windows.Forms.Padding(7, 6, 7, 6);
            this.btLapDS.Name          = "btLapDS";
            this.btLapDS.Size          = new System.Drawing.Size(220, 117);
            this.btLapDS.TabIndex      = 19;
            this.btLapDS.Click        += new System.EventHandler(this.btLapDS_Click);

            // btThemHocSinh
            //
            this.btThemHocSinh.Anchor        = System.Windows.Forms.AnchorStyles.Top;
            this.btThemHocSinh.BackColor     = System.Drawing.Color.FromArgb(((int)(((byte)(181)))), ((int)(((byte)(27)))), ((int)(((byte)(141)))));
            this.btThemHocSinh.BorderStyle   = System.Windows.Forms.BorderStyle.FixedSingle;
            this.btThemHocSinh.color         = System.Drawing.Color.FromArgb(((int)(((byte)(181)))), ((int)(((byte)(27)))), ((int)(((byte)(141)))));
            this.btThemHocSinh.colorActive   = System.Drawing.Color.MediumSeaGreen;
            this.btThemHocSinh.Cursor        = System.Windows.Forms.Cursors.Hand;
            this.btThemHocSinh.Font          = new System.Drawing.Font("Times New Roman", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.btThemHocSinh.ForeColor     = System.Drawing.Color.White;
            this.btThemHocSinh.Image         = ((System.Drawing.Image)(resources.GetObject("btThemHocSinh.Image")));
            this.btThemHocSinh.ImagePosition = 10;
            this.btThemHocSinh.ImageZoom     = 30;
            this.btThemHocSinh.ImeMode       = System.Windows.Forms.ImeMode.AlphaFull;
            this.btThemHocSinh.LabelPosition = 39;
            this.btThemHocSinh.LabelText     = "Tiếp Nhận Học Sinh";
            this.btThemHocSinh.Location      = new System.Drawing.Point(472, 122);
            this.btThemHocSinh.Margin        = new System.Windows.Forms.Padding(7, 6, 7, 6);
            this.btThemHocSinh.Name          = "btThemHocSinh";
            this.btThemHocSinh.Size          = new System.Drawing.Size(211, 119);
            this.btThemHocSinh.TabIndex      = 18;
            this.btThemHocSinh.Click        += new System.EventHandler(this.btThemHocSinh_Click);


            // btQuyDinh
            //
            this.btQuyDinh.Anchor        = System.Windows.Forms.AnchorStyles.Top;
            this.btQuyDinh.BackColor     = System.Drawing.Color.FromArgb(((int)(((byte)(181)))), ((int)(((byte)(27)))), ((int)(((byte)(141)))));
            this.btQuyDinh.BorderStyle   = System.Windows.Forms.BorderStyle.FixedSingle;
            this.btQuyDinh.color         = System.Drawing.Color.FromArgb(((int)(((byte)(181)))), ((int)(((byte)(27)))), ((int)(((byte)(141)))));
            this.btQuyDinh.colorActive   = System.Drawing.Color.MediumSeaGreen;
            this.btQuyDinh.Cursor        = System.Windows.Forms.Cursors.Hand;
            this.btQuyDinh.Font          = new System.Drawing.Font("Times New Roman", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.btQuyDinh.ForeColor     = System.Drawing.Color.White;
            this.btQuyDinh.Image         = ((System.Drawing.Image)(resources.GetObject("btQuyDinh.Image")));
            this.btQuyDinh.ImagePosition = 10;
            this.btQuyDinh.ImageZoom     = 30;
            this.btQuyDinh.ImeMode       = System.Windows.Forms.ImeMode.AlphaFull;
            this.btQuyDinh.LabelPosition = 39;
            this.btQuyDinh.LabelText     = "Quy Định Năm Học";
            this.btQuyDinh.Location      = new System.Drawing.Point(215, 122);
            this.btQuyDinh.Margin        = new System.Windows.Forms.Padding(7, 6, 7, 6);
            this.btQuyDinh.Name          = "btQuyDinh";
            this.btQuyDinh.Size          = new System.Drawing.Size(220, 119);
            this.btQuyDinh.TabIndex      = 16;
            this.btQuyDinh.Click        += new System.EventHandler(this.btQuyDinh_Click);


            pnBoard.Controls.Add(this.btBaoCao);
            pnBoard.Controls.Add(this.btNhapBangDiem);
            pnBoard.Controls.Add(this.btTraCuu);
            pnBoard.Controls.Add(this.btLapDS);
            pnBoard.Controls.Add(this.btThemHocSinh);
            pnBoard.Controls.Add(this.btQuyDinh);
        }
Ejemplo n.º 5
0
 private void btnRefresh_MouseEnter(object sender, EventArgs e)
 {
     Bunifu.Framework.UI.BunifuTileButton bt = (Bunifu.Framework.UI.BunifuTileButton)sender;
     bt.BackColor = Color.FromArgb(238, 238, 238);
     //bt.ForeColor = Color.White;
 }