//Handle Click on Buttons which are like function
 private void btnFunction_Clicked(object sender, EventArgs e)
 {
     //Type Casting
     Guna.UI2.WinForms.Guna2Button b = (Guna.UI2.WinForms.Guna2Button)sender;
     //To Parse details from button
     ParseFunctionText(b.Text, b.Name);
 }
 //Handling Click Events on Multiple Buttons
 private void HandleClick(object sender, EventArgs e)
 {
     //Type Casting
     Guna.UI2.WinForms.Guna2Button b = (Guna.UI2.WinForms.Guna2Button)sender;
     //Updating Expression When numeric button clicks
     UpdateExpression(b.Text);
 }
Esempio n. 3
0
        private void button_MouseCliked(object sender, EventArgs e)
        {
            Guna.UI2.WinForms.Guna2Button bt = (Guna.UI2.WinForms.Guna2Button)sender;
            var _filter = bt.Tag.ToString();

            var dh = new dataset.yakkumdbTableAdapters.fa_rx_templateTableAdapter();

            dh.FillByNamaJEnis(yakkumdb.fa_rx_template, _filter, "Diagnosa");
            DataTable dt = dh.GetDataByNamaJenis(_filter, "Diagnosa");

            foreach (DataRow r in dt.Rows)
            {
                DataGridViewRow row = (DataGridViewRow)dgvDiagnosa.Rows[0].Clone();
                row.Cells[1].Value = r["icd_code"].ToString();
                row.Cells[2].Value = r["icd_desc"].ToString();
                dgvDiagnosa.Rows.Add(row);
            }

            dh.FillByNamaJEnis(yakkumdb.fa_rx_template, _filter, "Prosedur");
            DataTable dt2 = dh.GetDataByNamaJenis(_filter, "Prosedur");

            foreach (DataRow r in dt2.Rows)
            {
                DataGridViewRow row2 = (DataGridViewRow)dgvProcedure.Rows[0].Clone();
                row2.Cells[1].Value = r["icd_code"].ToString();
                row2.Cells[2].Value = r["icd_desc"].ToString();
                dgvProcedure.Rows.Add(row2);
            }
        }
        //When button of fifth row and 3rd column is clicked
        private void btn42_Click(object sender, EventArgs e)
        {
            Regex regex = new Regex(@"[+\-% */]$");

            if (!isSecondPage)
            {
                if (txtBoxExpression.Text.Length == 0 || regex.IsMatch(txtBoxExpression.Text))
                {
                    UpdateExpression(Calc.E().ToString());
                }
                //On second page
                else
                {
                    UpdateExpression("*" + Calc.E().ToString());
                }
            }
            //On second page
            else
            {
                //Type Casting
                Guna.UI2.WinForms.Guna2Button b = (Guna.UI2.WinForms.Guna2Button)sender;
                //To Parse details from button
                ParseFunctionText(b.Text, b.Name);
            }
        }
Esempio n. 5
0
        private void LoadTemplateRacikan()
        {
            // MessageBox.Show(_kodefornas.ToString());
            var _kodetmpracikan = 0;

            if (_kdpng == "323")
            {
                _kodetmpracikan = 3;
            }
            else
            {
                _kodetmpracikan = 1;
            }
            var dh = new dataset.yakkumdbTableAdapters.fa_rx_template_racikanTableAdapter();

            dh.FillByDist(yakkumdb.fa_rx_template_racikan, _kdokter, _kodetmpracikan);
            DataTable dt = dh.GetDataByDist(_kdokter, _kodetmpracikan);

            foreach (DataRow r in dt.Rows)
            {
                //MessageBox.Show(r["nama_template"].ToString());
                Guna.UI2.WinForms.Guna2Button button = new Guna.UI2.WinForms.Guna2Button();
                button.Tag  = r["nid_dokter"].ToString() + r["nama_template"].ToString();
                button.Text = r["nama_template"].ToString();
                button.AutoRoundedCorners = true;
                //button.AutoSize = true;
                flptemRacikan.Controls.Add(button);
                button.Click += button_MouseCliked;
            }
        }
        //Handling Click events on buttons which display power of something

        private void PowerFunction_Clicked(object sender, EventArgs e)
        {
            if (!isSecondPage)
            {
                Guna.UI2.WinForms.Guna2Button b = (Guna.UI2.WinForms.Guna2Button)sender;

                ParsePowerFunctionText(b.Text, b.Name);
            }
            //On Second Page
            else
            {
                //Type Casting
                Guna.UI2.WinForms.Guna2Button b = (Guna.UI2.WinForms.Guna2Button)sender;
                //To Parse details from button
                ParseFunctionText(b.Text, b.Name);
            }
        }
Esempio n. 7
0
        private void button_MouseCliked(object sender, EventArgs e)
        {
            Guna.UI2.WinForms.Guna2Button us = (Guna.UI2.WinForms.Guna2Button)sender;
            var _filter = us.Tag.ToString();


            var dh = new dataset.yakkumdbTableAdapters.fa_rx_resep_dTableAdapter();

            dh.Fill(yakkumdb.fa_rx_resep_d);
            var sc           = dh.ScalarQueryNoRacikan(lblKodeRtx.Text).ToString();
            var cs           = Int32.Parse(sc) + 1;
            var _koderacikan = "RC" + _noreg + _kdokter + cs.ToString("00000");
            var _namaracikan = _filter.ToString().Substring(4) + " " + cs.ToString("00");

            var nu   = dh.ScalarQueryMaxNoUrutResep(lblKodeRtx.Text).ToString();
            var nurs = int.Parse(nu) + 1;

            int temp = 1;
            var kdtemplateracikan = 0;

            if (_kdpng == "323")
            {
                kdtemplateracikan = 3;
            }
            else
            {
                kdtemplateracikan = 1;
            }

            //Racikan rc = new Racikan(_kodefornas, _namaracikan, _koderacikan, lblKodeRtx.Text, cs.ToString(), _kdokter, nurs,temp);
            Racikan rc = new Racikan(kdtemplateracikan, _kodefornas, _namaracikan, _koderacikan, lblKodeRtx.Text, cs.ToString(), _kdokter, nurs, temp);

            var result = rc.ShowDialog();

            if (result == DialogResult.OK)
            {
                this.view_resepTableAdapter.Fill(this.yakkumdb.view_resep, lblKodeRtx.Text);
                bs_view_resep.Filter = "vc_kode_rx = '" + lblKodeRtx.Text + "'";
                dgvResep.Update();
                dgvResep.Refresh();
            }
        }
Esempio n. 8
0
        private void LoadTemplate()
        {
            //Guna.UI2.WinForms.Guna2Button button = new Guna.UI2.WinForms.Guna2Button();
            var dh = new dataset.yakkumdbTableAdapters.fa_rx_templateTableAdapter();

            dh.FillByDistinct(yakkumdb.fa_rx_template);
            DataTable dt = dh.GetDataByDistinct();

            foreach (DataRow r in dt.Rows)
            {
                //MessageBox.Show(r["nama_template"].ToString());
                Guna.UI2.WinForms.Guna2Button button = new Guna.UI2.WinForms.Guna2Button();
                button.Tag  = r["nama_template"].ToString();
                button.Text = r["nama_template"].ToString();
                button.AutoRoundedCorners = true;
                button.AutoSize           = true;
                flowLayoutPanel1.Controls.Add(button);
                button.Click += button_MouseCliked;
            }
        }
Esempio n. 9
0
        private void doButtonWork(Guna.UI2.WinForms.Guna2Button button, Guna.UI2.WinForms.Guna2CirclePictureBox statusMarker, Artifact a)
        {
            updateStatus(button, statusMarker, 2);

            if (button.Checked)
            {
                Task.Factory.StartNew(() =>
                {
                    a.create();
                    updateStatus(button, statusMarker, 1);
                });
            }
            else
            {
                Task.Factory.StartNew(() =>
                {
                    a.remove();
                    updateStatus(button, statusMarker, 3);
                });
            }
        }
Esempio n. 10
0
        public Guna.UI2.WinForms.Guna2Button createButton(string name, Bitmap b, string isSourse)
        {
            Guna.UI2.WinForms.Guna2Button temp = new Guna.UI2.WinForms.Guna2Button();
            // temp.BackColor = Color.Transparent;
            temp.BackgroundImage       = b;
            temp.BackgroundImageLayout = ImageLayout.Stretch;

            temp.BorderRadius        = 7;
            temp.CheckedState.Parent = temp;
            //temp.CustomImages.Parent = temp;
            temp.FillColor = Color.Transparent;
            //temp.Font = new Font("Segoe UI", 9F);
            temp.ForeColor         = Color.Transparent;
            temp.HoverState.Parent = temp;
            //temp.Location = new Point(224, 505);
            temp.Name = name;
            temp.ShadowDecoration.Parent = temp;
            temp.Size     = new Size(53, 53);
            temp.TabIndex = 0;
            temp.Text     = isSourse;
            return(temp);
        }
Esempio n. 11
0
        //When button of fifth row and 2nd column is clicked
        private void btn41_Click(object sender, EventArgs e)
        {
            Regex regex = new Regex(@"[+\-% */]$");

            if (!isSecondPage)
            {
                if (txtBoxExpression.Text.Length == 0 || regex.IsMatch(txtBoxExpression.Text))
                {
                    UpdateExpression(Calc.PI().ToString());
                }
                else
                {
                    UpdateExpression("*" + Calc.PI().ToString());
                }
            }
            //On second page
            else
            {
                Guna.UI2.WinForms.Guna2Button b = (Guna.UI2.WinForms.Guna2Button)sender;
                ParsePowerFunctionText(b.Text, b.Name);
            }
        }
Esempio n. 12
0
        private void updateStatus(Guna.UI2.WinForms.Guna2Button button, Guna.UI2.WinForms.Guna2CirclePictureBox statusMarker, int status)
        {
            switch (status)
            {
            case 1:
                statusMarker.BeginInvoke(new Action(() => statusMarker.FillColor = Color.Green));
                button.BeginInvoke(new Action(() => { button.Text = "Disable"; button.Enabled = true; }));
                break;

            case 2:
                statusMarker.BeginInvoke(new Action(() => statusMarker.FillColor = Color.Yellow));
                button.BeginInvoke(new Action(() => { button.Text = "Loading"; button.Enabled = false; }));
                break;

            case 3:
                statusMarker.BeginInvoke(new Action(() => statusMarker.FillColor = Color.Red));
                button.BeginInvoke(new Action(() => { button.Text = "Enable"; button.Enabled = true; }));
                break;

            default:
                break;
            }
        }
Esempio n. 13
0
 private void guna2Button2_Click(object sender, EventArgs e)
 {
     if (ParserHtml.ValidateUri(Url.Text))
     {
         log.Text = "";
         Parser ViewPages = new Parser(Url.Text);
         ListSR = ViewPages.StartGetPages();
         MakesChoicePages(ListSR);
         Guna.UI2.WinForms.Guna2Button parserB = new Guna.UI2.WinForms.Guna2Button();
         parserB.BorderRadius = 15;
         parserB.FillColor    = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(192)))), ((int)(((byte)(192)))));
         parserB.Size         = new System.Drawing.Size(141, 27);
         parserB.Text         = "Спарсить";
         parserB.Location     = new Point(239, 321);
         parserB.Click       += new System.EventHandler(this.Start);
         parserB.ForeColor    = Color.FromKnownColor(KnownColor.Black);
         this.Controls.Add(parserB);
     }
     else
     {
         log.Text = "Не валидный Url";
     }
 }
Esempio n. 14
0
        private void uc_cpyDiagClik(object sender, EventArgs e)
        {
            Guna.UI2.WinForms.Guna2Button usx = (Guna.UI2.WinForms.Guna2Button)sender;

            //MessageBox.Show ("TAG = " + usx.Tag.ToString());
            var _cpyNoReg = usx.Tag.ToString();

            var       dh  = new dataset.yakkumdbTableAdapters.fa_rx_diagnosaTableAdapter();
            var       dh2 = new fa_rx_prosedurTableAdapter();
            DataTable dt  = dh.GetDataByNoReg(_cpyNoReg);

            foreach (DataRow r in dt.Rows)
            {
                dh.InsertQuery(_noreg, r["icd_code"].ToString(), r["icd_desc"].ToString(), null, false, DateTime.Now);
                this.view_diagnosaTableAdapter.FillbyNoReg(yakkumdb.view_diagnosa, _noreg);
                this.dgvDiagnosa.Update();
                this.dgvDiagnosa.Refresh();

                //DataGridViewRow row = (DataGridViewRow)dgvDiagnosa.Rows[0].Clone();
                //row.Cells[1].Value = r["icd_code"].ToString();
                //row.Cells[2].Value = r["icd_desc"].ToString();
                //dgvDiagnosa.Rows.Add(row);
            }

            DataTable dt2 = dh2.GetDataByNoReg(_cpyNoReg);

            foreach (DataRow r in dt2.Rows)
            {
                dh2.InsertQuery(_noreg, r["icd_code"].ToString(), r["icd_desc"].ToString(), null, DateTime.Now);
                this.view_ProcedureTableAdapter.FillNoReg(yakkumdb.view_Procedure, _noreg);
                this.dgvProcedure.Update();
                //DataGridViewRow row2 = (DataGridViewRow)dgvProcedure.Rows[0].Clone();
                //row2.Cells[1].Value = r["icd_code"].ToString();
                //row2.Cells[2].Value = r["icd_desc"].ToString();
                //dgvProcedure.Rows.Add(row2);
            }
        }
Esempio n. 15
0
        //When button of third row and third column is clicked
        private void btn22_Click(object sender, EventArgs e)
        {
            Regex regex = new Regex(@"[+\-% */]$");

            if (!isSecondPage)//I.e When (1/x)button is clicked
            {
                if (txtBoxExpression.Text.Length == 0 || regex.IsMatch(txtBoxExpression.Text))
                {
                    UpdateExpression("1/");
                }
                else
                {
                    UpdateExpression("*1/");
                }
            }
            //On Second Page
            else
            {
                //Type Casting
                Guna.UI2.WinForms.Guna2Button b = (Guna.UI2.WinForms.Guna2Button)sender;
                //To Parse details from button
                ParseFunctionText(b.Text, b.Name);
            }
        }
Esempio n. 16
0
        private int pnl_number;     // luc khoi tao thi dung de tao panel con luc chay thi dung de xac dinh dang o panel nao
        //public ResultForm()
        //{
        //    InitializeComponent();
        //}
        public ResultForm(GameForm parent, startGameForm grand_parent, mainForm grand_parent_parent)
        {
            InitializeComponent();
            listbtn                  = new Guna.UI2.WinForms.Guna2Button[parent.gameManager.quesData.number_question];
            this.grand_parent        = grand_parent;
            this.grand_parent_parent = grand_parent_parent;
            this.parent              = parent;
            string a = "Câu ";

            // Tao so luong panel;
            if (parent.gameManager.quesData.number_question % 8 == 0)
            {
                listpnl = new Guna.UI2.WinForms.Guna2Panel[parent.gameManager.quesData.number_question / 8];
            }
            else
            {
                listpnl = new Guna.UI2.WinForms.Guna2Panel[parent.gameManager.quesData.number_question / 8 + 1];
            }
            for (int j = 0; j < listpnl.Length; j++)
            {
                listpnl[j] = new Guna.UI2.WinForms.Guna2Panel()
                {
                    Location = new System.Drawing.Point(27, 120), Size = new System.Drawing.Size(284, 428)
                };
                this.listpnl[j].BackColor = System.Drawing.Color.Transparent;
                this.Controls.Add(listpnl[j]);
            }
            pnl_number = 0;
            // Tao btn
            //for (int i = 0; i < parent.gameManager.quesData.number_question; i++)
            //{
            //    a = "Câu ";
            //    a = a + (i + 1).ToString();
            //    listbtn[i] = new Guna.UI2.WinForms.Guna2Button() { Text = a, Size = new System.Drawing.Size(30, 50) };
            //    listbtn[i].BorderRadius = 20;
            //    listbtn[i].Font = new System.Drawing.Font("Segoe UI", 13F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));


            //    if (this.parent.gameManager.quesData.Result[i] == 1)
            //    {
            //        //listbtn[i].FillColor = System.Drawing.SystemColors.ActiveCaption;
            //        listbtn[i].FillColor = System.Drawing.Color.MediumSeaGreen;
            //    }
            //    else
            //    {
            //        listbtn[i].FillColor = System.Drawing.Color.IndianRed;

            //    }
            //    listbtn[i].ForeColor = System.Drawing.Color.White;
            //    listpnl[pnl_number].Controls.Add(listbtn[i]);

            //    if (pnl_member == 8)
            //    {
            //        pnl_member = 1;
            //        pnl_number++;
            //    }
            //    else
            //    {
            //        pnl_member++;
            //    }
            //    listbtn[i].Dock = DockStyle.Top;
            //    listbtn[i].Click += (s, e) =>
            //    {
            //        //listpnl[current_question/8].BringToFront();
            //        foreach (Guna.UI2.WinForms.Guna2Button x in listbtn)
            //        {
            //            if (s == x)
            //            {
            //                string temp = x.Text.Substring(4);
            //                current_question = Convert.ToInt32(temp);
            //                OpenQuestion(Convert.ToInt32(temp) - 1);
            //            }
            //        }

            //    };
            //    //if (i > this.parent.gameManager.current_ques_index)
            //    //{
            //    //    listbtn[i].Enabled = false;
            //    //}

            //    //listbtn[i].CheckedChanged += (s, e) =>
            //    //{
            //    //    string temp = listbtn[i].Text.Substring(listbtn[i].Text.Length - 1, 1);
            //    //    OpenQuestion(Convert.ToInt32(temp));

            //    //};
            //}
            //pnl_number = 0; // khoi tao khi mo form thi se mo panel 0
            //listpnl[0].BringToFront();
            for (int i = 0; listbtn[parent.gameManager.quesData.number_question - 1] == null;)
            {
                if (pnl_member + 8 * pnl_number > parent.gameManager.quesData.number_question)
                {
                    pnl_member--;
                    continue;
                }
                a          = "Câu ";
                a          = a + (pnl_member + 8 * pnl_number).ToString();
                listbtn[i] = new Guna.UI2.WinForms.Guna2Button()
                {
                    Text = a, Size = new System.Drawing.Size(30, 50)
                };
                listbtn[i].BorderRadius = 20;
                listbtn[i].Font         = new System.Drawing.Font("Segoe UI", 13F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));


                if (this.parent.gameManager.quesData.Result[Convert.ToInt32(listbtn[i].Text.Substring(4)) - 1] == 1)
                {
                    //listbtn[i].FillColor = System.Drawing.SystemColors.ActiveCaption;
                    listbtn[i].FillColor = System.Drawing.Color.MediumSeaGreen;
                }
                else
                {
                    listbtn[i].FillColor = System.Drawing.Color.IndianRed;
                }
                listbtn[i].ForeColor = System.Drawing.Color.White;
                listpnl[pnl_number].Controls.Add(listbtn[i]);

                if (pnl_member <= 1)
                {
                    pnl_member = 8;
                    pnl_number++;
                }
                else
                {
                    pnl_member--;
                }
                listbtn[i].Dock   = DockStyle.Top;
                listbtn[i].Click += (s, e) =>
                {
                    panel_Question.BringToFront();
                    foreach (Guna.UI2.WinForms.Guna2Button x in listbtn)
                    {
                        if (s == x)
                        {
                            string temp = x.Text.Substring(4);
                            current_question = Convert.ToInt32(temp);
                            OpenQuestion(Convert.ToInt32(temp) - 1);
                        }
                    }
                };
                string k = listbtn[i].Text.Substring(4);
                if (Convert.ToInt32(k) - 1 > this.parent.gameManager.current_ques_index)
                {
                    //listbtn[i].Enabled = false;
                    listbtn[i].FillColor = System.Drawing.Color.LightSlateGray;
                }
                i++;
                //listbtn[i].CheckedChanged += (s, e) =>
                //{
                //    string temp = listbtn[i].Text.Substring(listbtn[i].Text.Length - 1, 1);
                //    OpenQuestion(Convert.ToInt32(temp));

                //};
            }
            pnl_number = 0;  // khoi tao khi mo form thi se mo panel 0
            listpnl[0].BringToFront();
            OpenQuestion(0); // vua mo len la load cau so 1 len lien :3
        }
Esempio n. 17
0
 /// <summary>
 /// Требуемый метод для поддержки конструктора — не изменяйте
 /// содержимое этого метода с помощью редактора кода.
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     Guna.UI2.WinForms.Guna2Button home;
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1));
     this.panel1          = new System.Windows.Forms.Panel();
     this.exit            = new Guna.UI2.WinForms.Guna2Button();
     this.admin           = new Guna.UI2.WinForms.Guna2Button();
     this.delete          = new Guna.UI2.WinForms.Guna2Button();
     this.edit            = new Guna.UI2.WinForms.Guna2Button();
     this.add             = new Guna.UI2.WinForms.Guna2Button();
     this.list            = new Guna.UI2.WinForms.Guna2Button();
     this.imgSlide        = new System.Windows.Forms.PictureBox();
     this.label1          = new System.Windows.Forms.Label();
     this.pictureBox1     = new System.Windows.Forms.PictureBox();
     this.pnlMain2        = new System.Windows.Forms.Panel();
     this.pnlMain         = new System.Windows.Forms.Panel();
     this.guna2Elipse1    = new Guna.UI2.WinForms.Guna2Elipse(this.components);
     this.guna2Elipse2    = new Guna.UI2.WinForms.Guna2Elipse(this.components);
     this.panel2          = new System.Windows.Forms.Panel();
     this.pictureBox6     = new System.Windows.Forms.PictureBox();
     this.pictureBox7     = new System.Windows.Forms.PictureBox();
     this.guna2Elipse3    = new Guna.UI2.WinForms.Guna2Elipse(this.components);
     this.guna2HtmlLabel1 = new Guna.UI2.WinForms.Guna2HtmlLabel();
     this.guna2Separator1 = new Guna.UI2.WinForms.Guna2Separator();
     home = new Guna.UI2.WinForms.Guna2Button();
     this.panel1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.imgSlide)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
     this.pnlMain2.SuspendLayout();
     this.pnlMain.SuspendLayout();
     this.panel2.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.pictureBox6)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.pictureBox7)).BeginInit();
     this.SuspendLayout();
     //
     // home
     //
     home.BackColor              = System.Drawing.Color.Transparent;
     home.BorderRadius           = 22;
     home.ButtonMode             = Guna.UI2.WinForms.Enums.ButtonMode.RadioButton;
     home.Checked                = true;
     home.CheckedState.FillColor = System.Drawing.Color.White;
     home.CheckedState.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(31)))), ((int)(((byte)(0)))), ((int)(((byte)(60)))));
     home.CheckedState.Image     = ((System.Drawing.Image)(resources.GetObject("home.CheckedState.Image")));
     home.CheckedState.Parent    = home;
     home.CustomImages.Parent    = home;
     home.FillColor              = System.Drawing.Color.FromArgb(((int)(((byte)(31)))), ((int)(((byte)(0)))), ((int)(((byte)(60)))));
     home.Font                     = new System.Drawing.Font("Century Gothic", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
     home.ForeColor                = System.Drawing.Color.White;
     home.HoverState.Parent        = home;
     home.Image                    = ((System.Drawing.Image)(resources.GetObject("home.Image")));
     home.ImageAlign               = System.Windows.Forms.HorizontalAlignment.Left;
     home.ImageOffset              = new System.Drawing.Point(10, 0);
     home.Location                 = new System.Drawing.Point(22, 116);
     home.Name                     = "home";
     home.ShadowDecoration.Parent  = home;
     home.Size                     = new System.Drawing.Size(143, 43);
     home.TabIndex                 = 3;
     home.Text                     = "    Главное";
     home.UseTransparentBackground = true;
     home.CheckedChanged          += new System.EventHandler(this.home_CheckedChanged);
     home.Click                   += new System.EventHandler(this.home_Click);
     //
     // panel1
     //
     this.panel1.Controls.Add(this.exit);
     this.panel1.Controls.Add(this.admin);
     this.panel1.Controls.Add(this.delete);
     this.panel1.Controls.Add(this.edit);
     this.panel1.Controls.Add(this.add);
     this.panel1.Controls.Add(this.list);
     this.panel1.Controls.Add(home);
     this.panel1.Controls.Add(this.imgSlide);
     this.panel1.Controls.Add(this.label1);
     this.panel1.Controls.Add(this.pictureBox1);
     this.panel1.Dock     = System.Windows.Forms.DockStyle.Left;
     this.panel1.Location = new System.Drawing.Point(0, 0);
     this.panel1.Name     = "panel1";
     this.panel1.Size     = new System.Drawing.Size(180, 608);
     this.panel1.TabIndex = 0;
     this.panel1.Paint   += new System.Windows.Forms.PaintEventHandler(this.panel1_Paint);
     //
     // exit
     //
     this.exit.BackColor              = System.Drawing.Color.Transparent;
     this.exit.BorderRadius           = 22;
     this.exit.ButtonMode             = Guna.UI2.WinForms.Enums.ButtonMode.RadioButton;
     this.exit.CheckedState.FillColor = System.Drawing.Color.White;
     this.exit.CheckedState.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(31)))), ((int)(((byte)(0)))), ((int)(((byte)(60)))));
     this.exit.CheckedState.Image     = ((System.Drawing.Image)(resources.GetObject("exit.CheckedState.Image")));
     this.exit.CheckedState.Parent    = this.exit;
     this.exit.CustomImages.Parent    = this.exit;
     this.exit.FillColor              = System.Drawing.Color.FromArgb(((int)(((byte)(31)))), ((int)(((byte)(0)))), ((int)(((byte)(60)))));
     this.exit.Font                     = new System.Drawing.Font("Century Gothic", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
     this.exit.ForeColor                = System.Drawing.Color.White;
     this.exit.HoverState.Parent        = this.exit;
     this.exit.Image                    = ((System.Drawing.Image)(resources.GetObject("exit.Image")));
     this.exit.ImageAlign               = System.Windows.Forms.HorizontalAlignment.Left;
     this.exit.ImageOffset              = new System.Drawing.Point(10, 0);
     this.exit.Location                 = new System.Drawing.Point(22, 488);
     this.exit.Name                     = "exit";
     this.exit.ShadowDecoration.Parent  = this.exit;
     this.exit.Size                     = new System.Drawing.Size(143, 43);
     this.exit.TabIndex                 = 3;
     this.exit.Text                     = "Выйти";
     this.exit.UseTransparentBackground = true;
     this.exit.CheckedChanged          += new System.EventHandler(this.exit_CheckedChanged);
     this.exit.Click                   += new System.EventHandler(this.exit_Click);
     //
     // admin
     //
     this.admin.BackColor              = System.Drawing.Color.Transparent;
     this.admin.BorderRadius           = 22;
     this.admin.ButtonMode             = Guna.UI2.WinForms.Enums.ButtonMode.RadioButton;
     this.admin.CheckedState.FillColor = System.Drawing.Color.White;
     this.admin.CheckedState.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(31)))), ((int)(((byte)(0)))), ((int)(((byte)(60)))));
     this.admin.CheckedState.Image     = ((System.Drawing.Image)(resources.GetObject("admin.CheckedState.Image")));
     this.admin.CheckedState.Parent    = this.admin;
     this.admin.CustomImages.Parent    = this.admin;
     this.admin.FillColor              = System.Drawing.Color.FromArgb(((int)(((byte)(31)))), ((int)(((byte)(0)))), ((int)(((byte)(60)))));
     this.admin.Font                     = new System.Drawing.Font("Century Gothic", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
     this.admin.ForeColor                = System.Drawing.Color.White;
     this.admin.HoverState.Parent        = this.admin;
     this.admin.Image                    = ((System.Drawing.Image)(resources.GetObject("admin.Image")));
     this.admin.ImageAlign               = System.Windows.Forms.HorizontalAlignment.Left;
     this.admin.ImageOffset              = new System.Drawing.Point(10, 0);
     this.admin.Location                 = new System.Drawing.Point(22, 426);
     this.admin.Name                     = "admin";
     this.admin.ShadowDecoration.Parent  = this.admin;
     this.admin.Size                     = new System.Drawing.Size(143, 43);
     this.admin.TabIndex                 = 3;
     this.admin.Text                     = "  Админ";
     this.admin.UseTransparentBackground = true;
     this.admin.CheckedChanged          += new System.EventHandler(this.admin_CheckedChanged);
     this.admin.Click                   += new System.EventHandler(this.admin_Click);
     //
     // delete
     //
     this.delete.BackColor              = System.Drawing.Color.Transparent;
     this.delete.BorderRadius           = 22;
     this.delete.ButtonMode             = Guna.UI2.WinForms.Enums.ButtonMode.RadioButton;
     this.delete.CheckedState.FillColor = System.Drawing.Color.White;
     this.delete.CheckedState.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(31)))), ((int)(((byte)(0)))), ((int)(((byte)(60)))));
     this.delete.CheckedState.Image     = ((System.Drawing.Image)(resources.GetObject("delete.CheckedState.Image")));
     this.delete.CheckedState.Parent    = this.delete;
     this.delete.CustomImages.Parent    = this.delete;
     this.delete.FillColor              = System.Drawing.Color.FromArgb(((int)(((byte)(31)))), ((int)(((byte)(0)))), ((int)(((byte)(60)))));
     this.delete.Font                     = new System.Drawing.Font("Century Gothic", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
     this.delete.ForeColor                = System.Drawing.Color.White;
     this.delete.HoverState.Parent        = this.delete;
     this.delete.Image                    = ((System.Drawing.Image)(resources.GetObject("delete.Image")));
     this.delete.ImageAlign               = System.Windows.Forms.HorizontalAlignment.Left;
     this.delete.ImageOffset              = new System.Drawing.Point(10, 0);
     this.delete.Location                 = new System.Drawing.Point(22, 364);
     this.delete.Name                     = "delete";
     this.delete.ShadowDecoration.Parent  = this.delete;
     this.delete.Size                     = new System.Drawing.Size(143, 43);
     this.delete.TabIndex                 = 3;
     this.delete.Text                     = "    Удалить";
     this.delete.UseTransparentBackground = true;
     this.delete.CheckedChanged          += new System.EventHandler(this.delete_CheckedChanged);
     this.delete.Click                   += new System.EventHandler(this.delete_Click);
     //
     // edit
     //
     this.edit.BackColor              = System.Drawing.Color.Transparent;
     this.edit.BorderRadius           = 22;
     this.edit.ButtonMode             = Guna.UI2.WinForms.Enums.ButtonMode.RadioButton;
     this.edit.CheckedState.FillColor = System.Drawing.Color.White;
     this.edit.CheckedState.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(31)))), ((int)(((byte)(0)))), ((int)(((byte)(60)))));
     this.edit.CheckedState.Image     = ((System.Drawing.Image)(resources.GetObject("edit.CheckedState.Image")));
     this.edit.CheckedState.Parent    = this.edit;
     this.edit.CustomImages.Parent    = this.edit;
     this.edit.FillColor              = System.Drawing.Color.FromArgb(((int)(((byte)(31)))), ((int)(((byte)(0)))), ((int)(((byte)(60)))));
     this.edit.Font                     = new System.Drawing.Font("Century Gothic", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
     this.edit.ForeColor                = System.Drawing.Color.White;
     this.edit.HoverState.Parent        = this.edit;
     this.edit.Image                    = ((System.Drawing.Image)(resources.GetObject("edit.Image")));
     this.edit.ImageAlign               = System.Windows.Forms.HorizontalAlignment.Left;
     this.edit.ImageOffset              = new System.Drawing.Point(10, 0);
     this.edit.Location                 = new System.Drawing.Point(22, 302);
     this.edit.Name                     = "edit";
     this.edit.ShadowDecoration.Parent  = this.edit;
     this.edit.Size                     = new System.Drawing.Size(143, 43);
     this.edit.TabIndex                 = 3;
     this.edit.Text                     = "       Изменить";
     this.edit.UseTransparentBackground = true;
     this.edit.CheckedChanged          += new System.EventHandler(this.edit_CheckedChanged);
     this.edit.Click                   += new System.EventHandler(this.edit_Click);
     //
     // add
     //
     this.add.BackColor              = System.Drawing.Color.Transparent;
     this.add.BorderRadius           = 22;
     this.add.ButtonMode             = Guna.UI2.WinForms.Enums.ButtonMode.RadioButton;
     this.add.CheckedState.FillColor = System.Drawing.Color.White;
     this.add.CheckedState.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(31)))), ((int)(((byte)(0)))), ((int)(((byte)(60)))));
     this.add.CheckedState.Image     = ((System.Drawing.Image)(resources.GetObject("add.CheckedState.Image")));
     this.add.CheckedState.Parent    = this.add;
     this.add.CustomImages.Parent    = this.add;
     this.add.FillColor              = System.Drawing.Color.FromArgb(((int)(((byte)(31)))), ((int)(((byte)(0)))), ((int)(((byte)(60)))));
     this.add.Font                     = new System.Drawing.Font("Century Gothic", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
     this.add.ForeColor                = System.Drawing.Color.White;
     this.add.HoverState.Parent        = this.add;
     this.add.Image                    = ((System.Drawing.Image)(resources.GetObject("add.Image")));
     this.add.ImageAlign               = System.Windows.Forms.HorizontalAlignment.Left;
     this.add.ImageOffset              = new System.Drawing.Point(10, 0);
     this.add.Location                 = new System.Drawing.Point(22, 240);
     this.add.Name                     = "add";
     this.add.ShadowDecoration.Parent  = this.add;
     this.add.Size                     = new System.Drawing.Size(143, 43);
     this.add.TabIndex                 = 3;
     this.add.Text                     = "        Добавить";
     this.add.UseTransparentBackground = true;
     this.add.CheckedChanged          += new System.EventHandler(this.add_CheckedChanged);
     this.add.Click                   += new System.EventHandler(this.add_Click);
     //
     // list
     //
     this.list.BackColor              = System.Drawing.Color.Transparent;
     this.list.BorderRadius           = 22;
     this.list.ButtonMode             = Guna.UI2.WinForms.Enums.ButtonMode.RadioButton;
     this.list.CheckedState.FillColor = System.Drawing.Color.White;
     this.list.CheckedState.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(31)))), ((int)(((byte)(0)))), ((int)(((byte)(60)))));
     this.list.CheckedState.Image     = ((System.Drawing.Image)(resources.GetObject("list.CheckedState.Image")));
     this.list.CheckedState.Parent    = this.list;
     this.list.CustomImages.Parent    = this.list;
     this.list.FillColor              = System.Drawing.Color.FromArgb(((int)(((byte)(31)))), ((int)(((byte)(0)))), ((int)(((byte)(60)))));
     this.list.Font                     = new System.Drawing.Font("Century Gothic", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
     this.list.ForeColor                = System.Drawing.Color.White;
     this.list.HoverState.Parent        = this.list;
     this.list.Image                    = ((System.Drawing.Image)(resources.GetObject("list.Image")));
     this.list.ImageAlign               = System.Windows.Forms.HorizontalAlignment.Left;
     this.list.ImageOffset              = new System.Drawing.Point(10, 0);
     this.list.Location                 = new System.Drawing.Point(22, 178);
     this.list.Name                     = "list";
     this.list.ShadowDecoration.Parent  = this.list;
     this.list.Size                     = new System.Drawing.Size(143, 43);
     this.list.TabIndex                 = 3;
     this.list.Text                     = "    Список";
     this.list.UseTransparentBackground = true;
     this.list.CheckedChanged          += new System.EventHandler(this.list_CheckedChanged);
     this.list.Click                   += new System.EventHandler(this.list_Click);
     //
     // imgSlide
     //
     this.imgSlide.Image    = ((System.Drawing.Image)(resources.GetObject("imgSlide.Image")));
     this.imgSlide.Location = new System.Drawing.Point(143, 86);
     this.imgSlide.Name     = "imgSlide";
     this.imgSlide.Size     = new System.Drawing.Size(39, 100);
     this.imgSlide.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
     this.imgSlide.TabIndex = 1;
     this.imgSlide.TabStop  = false;
     this.imgSlide.Click   += new System.EventHandler(this.pictureBox2_Click);
     //
     // label1
     //
     this.label1.AutoSize  = true;
     this.label1.Font      = new System.Drawing.Font("Century Gothic", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
     this.label1.ForeColor = System.Drawing.Color.White;
     this.label1.Location  = new System.Drawing.Point(68, 23);
     this.label1.Name      = "label1";
     this.label1.Size      = new System.Drawing.Size(69, 19);
     this.label1.TabIndex  = 1;
     this.label1.Text      = "Анкета";
     this.label1.Click    += new System.EventHandler(this.label1_Click);
     //
     // pictureBox1
     //
     this.pictureBox1.Image    = ((System.Drawing.Image)(resources.GetObject("pictureBox1.Image")));
     this.pictureBox1.Location = new System.Drawing.Point(18, 12);
     this.pictureBox1.Name     = "pictureBox1";
     this.pictureBox1.Size     = new System.Drawing.Size(40, 40);
     this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage;
     this.pictureBox1.TabIndex = 1;
     this.pictureBox1.TabStop  = false;
     this.pictureBox1.Click   += new System.EventHandler(this.pictureBox1_Click);
     //
     // pnlMain2
     //
     this.pnlMain2.Controls.Add(this.pnlMain);
     this.pnlMain2.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.pnlMain2.Location = new System.Drawing.Point(180, 0);
     this.pnlMain2.Name     = "pnlMain2";
     this.pnlMain2.Padding  = new System.Windows.Forms.Padding(0, 6, 6, 6);
     this.pnlMain2.Size     = new System.Drawing.Size(892, 608);
     this.pnlMain2.TabIndex = 1;
     this.pnlMain2.Paint   += new System.Windows.Forms.PaintEventHandler(this.pnlMain_Paint);
     //
     // pnlMain
     //
     this.pnlMain.BackColor = System.Drawing.Color.White;
     this.pnlMain.Controls.Add(this.panel2);
     this.pnlMain.Location = new System.Drawing.Point(-1, 12);
     this.pnlMain.Name     = "pnlMain";
     this.pnlMain.Size     = new System.Drawing.Size(879, 582);
     this.pnlMain.TabIndex = 4;
     this.pnlMain.Paint   += new System.Windows.Forms.PaintEventHandler(this.pnlMain_Paint_1);
     //
     // guna2Elipse1
     //
     this.guna2Elipse1.BorderRadius  = 30;
     this.guna2Elipse1.TargetControl = this;
     //
     // guna2Elipse2
     //
     this.guna2Elipse2.BorderRadius  = 26;
     this.guna2Elipse2.TargetControl = this.pnlMain;
     //
     // panel2
     //
     this.panel2.BackColor = System.Drawing.Color.White;
     this.panel2.Controls.Add(this.pictureBox6);
     this.panel2.Controls.Add(this.pictureBox7);
     this.panel2.Controls.Add(this.guna2HtmlLabel1);
     this.panel2.Controls.Add(this.guna2Separator1);
     this.panel2.Location = new System.Drawing.Point(-1, 12);
     this.panel2.Name     = "panel2";
     this.panel2.Size     = new System.Drawing.Size(879, 582);
     this.panel2.TabIndex = 7;
     this.panel2.Paint   += new System.Windows.Forms.PaintEventHandler(this.panel2_Paint);
     //
     // pictureBox6
     //
     this.pictureBox6.BackColor = System.Drawing.Color.White;
     this.pictureBox6.Image     = ((System.Drawing.Image)(resources.GetObject("pictureBox6.Image")));
     this.pictureBox6.Location  = new System.Drawing.Point(341, 236);
     this.pictureBox6.Name      = "pictureBox6";
     this.pictureBox6.Size      = new System.Drawing.Size(384, 265);
     this.pictureBox6.SizeMode  = System.Windows.Forms.PictureBoxSizeMode.Zoom;
     this.pictureBox6.TabIndex  = 63;
     this.pictureBox6.TabStop   = false;
     //
     // pictureBox7
     //
     this.pictureBox7.BackColor = System.Drawing.Color.White;
     this.pictureBox7.Image     = ((System.Drawing.Image)(resources.GetObject("pictureBox7.Image")));
     this.pictureBox7.Location  = new System.Drawing.Point(67, 146);
     this.pictureBox7.Name      = "pictureBox7";
     this.pictureBox7.Size      = new System.Drawing.Size(384, 265);
     this.pictureBox7.SizeMode  = System.Windows.Forms.PictureBoxSizeMode.Zoom;
     this.pictureBox7.TabIndex  = 64;
     this.pictureBox7.TabStop   = false;
     //
     // guna2Elipse3
     //
     this.guna2Elipse3.BorderRadius  = 26;
     this.guna2Elipse3.TargetControl = home;
     //
     // guna2HtmlLabel1
     //
     this.guna2HtmlLabel1.BackColor     = System.Drawing.Color.Transparent;
     this.guna2HtmlLabel1.Font          = new System.Drawing.Font("Century Gothic", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
     this.guna2HtmlLabel1.ForeColor     = System.Drawing.Color.FromArgb(((int)(((byte)(125)))), ((int)(((byte)(2)))), ((int)(((byte)(149)))));
     this.guna2HtmlLabel1.Location      = new System.Drawing.Point(274, 47);
     this.guna2HtmlLabel1.Name          = "guna2HtmlLabel1";
     this.guna2HtmlLabel1.Size          = new System.Drawing.Size(308, 21);
     this.guna2HtmlLabel1.TabIndex      = 66;
     this.guna2HtmlLabel1.Text          = "Социологические опросы населения";
     this.guna2HtmlLabel1.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // guna2Separator1
     //
     this.guna2Separator1.FillColor     = System.Drawing.Color.FromArgb(((int)(((byte)(125)))), ((int)(((byte)(2)))), ((int)(((byte)(149)))));
     this.guna2Separator1.FillThickness = 3;
     this.guna2Separator1.Location      = new System.Drawing.Point(29, 63);
     this.guna2Separator1.Name          = "guna2Separator1";
     this.guna2Separator1.Size          = new System.Drawing.Size(790, 28);
     this.guna2Separator1.TabIndex      = 65;
     //
     // Form1
     //
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
     this.BackColor     = System.Drawing.Color.FromArgb(((int)(((byte)(31)))), ((int)(((byte)(0)))), ((int)(((byte)(60)))));
     this.ClientSize    = new System.Drawing.Size(1072, 608);
     this.Controls.Add(this.pnlMain2);
     this.Controls.Add(this.panel1);
     this.Font            = new System.Drawing.Font("Century Gothic", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
     this.Name            = "Form1";
     this.StartPosition   = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text            = "Form1";
     this.panel1.ResumeLayout(false);
     this.panel1.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.imgSlide)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
     this.pnlMain2.ResumeLayout(false);
     this.pnlMain.ResumeLayout(false);
     this.panel2.ResumeLayout(false);
     this.panel2.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.pictureBox6)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.pictureBox7)).EndInit();
     this.ResumeLayout(false);
 }
Esempio n. 18
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     Guna.UI2.WinForms.Guna2Button btNext;
     this.guna2TextBox1   = new Guna.UI2.WinForms.Guna2TextBox();
     this.guna2TextBox2   = new Guna.UI2.WinForms.Guna2TextBox();
     this.btLearnNewWord  = new Guna.UI2.WinForms.Guna2Button();
     this.btYourFlashCard = new Guna.UI2.WinForms.Guna2Button();
     this.btCheck         = new Guna.UI2.WinForms.Guna2Button();
     this.pnYourFlashCard = new System.Windows.Forms.Panel();
     this.btFlip          = new Guna.UI2.WinForms.Guna2Button();
     this.btFlashCard     = new Guna.UI2.WinForms.Guna2Button();
     this.btBack          = new Guna.UI2.WinForms.Guna2Button();
     this.pnStatistic     = new System.Windows.Forms.Panel();
     this.lbLearned       = new System.Windows.Forms.Label();
     this.lbEmail         = new System.Windows.Forms.Label();
     this.lbId            = new System.Windows.Forms.Label();
     this.btBack3         = new Guna.UI2.WinForms.Guna2Button();
     this.lbUsername      = new System.Windows.Forms.Label();
     this.pictureBox1     = new System.Windows.Forms.PictureBox();
     this.pnCheck         = new System.Windows.Forms.Panel();
     this.pbImage         = new Guna.UI2.WinForms.Guna2PictureBox();
     this.btnBack         = new Guna.UI2.WinForms.Guna2Button();
     this.btFlip2         = new Guna.UI2.WinForms.Guna2Button();
     this.btNope          = new Guna.UI2.WinForms.Guna2Button();
     this.btKnow          = new Guna.UI2.WinForms.Guna2Button();
     this.btFlashCard2    = new Guna.UI2.WinForms.Guna2Button();
     this.btStatistic     = new Guna.UI2.WinForms.Guna2Button();
     this.pnlLoad         = new System.Windows.Forms.Panel();
     this.rtbLearned      = new System.Windows.Forms.RichTextBox();
     btNext = new Guna.UI2.WinForms.Guna2Button();
     this.pnYourFlashCard.SuspendLayout();
     this.pnStatistic.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
     this.pnCheck.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.pbImage)).BeginInit();
     this.SuspendLayout();
     //
     // btNext
     //
     btNext.AutoRoundedCorners  = true;
     btNext.BackColor           = System.Drawing.Color.Transparent;
     btNext.BorderRadius        = 35;
     btNext.CheckedState.Parent = btNext;
     btNext.CustomImages.Parent = btNext;
     btNext.FillColor           = System.Drawing.Color.Transparent;
     btNext.Font                    = new System.Drawing.Font("Segoe UI", 9F);
     btNext.ForeColor               = System.Drawing.Color.White;
     btNext.HoverState.Parent       = btNext;
     btNext.Location                = new System.Drawing.Point(899, 334);
     btNext.Name                    = "btNext";
     btNext.ShadowDecoration.Parent = btNext;
     btNext.Size                    = new System.Drawing.Size(72, 72);
     btNext.TabIndex                = 4;
     btNext.Click                  += new System.EventHandler(this.btNext_Click);
     //
     // guna2TextBox1
     //
     this.guna2TextBox1.BackColor                          = System.Drawing.Color.Transparent;
     this.guna2TextBox1.BorderColor                        = System.Drawing.Color.Transparent;
     this.guna2TextBox1.BorderThickness                    = 0;
     this.guna2TextBox1.Cursor                             = System.Windows.Forms.Cursors.IBeam;
     this.guna2TextBox1.DefaultText                        = "Sâsas";
     this.guna2TextBox1.DisabledState.BorderColor          = System.Drawing.Color.FromArgb(((int)(((byte)(208)))), ((int)(((byte)(208)))), ((int)(((byte)(208)))));
     this.guna2TextBox1.DisabledState.FillColor            = System.Drawing.Color.FromArgb(((int)(((byte)(226)))), ((int)(((byte)(226)))), ((int)(((byte)(226)))));
     this.guna2TextBox1.DisabledState.ForeColor            = System.Drawing.Color.FromArgb(((int)(((byte)(138)))), ((int)(((byte)(138)))), ((int)(((byte)(138)))));
     this.guna2TextBox1.DisabledState.Parent               = this.guna2TextBox1;
     this.guna2TextBox1.DisabledState.PlaceholderForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(138)))), ((int)(((byte)(138)))), ((int)(((byte)(138)))));
     this.guna2TextBox1.FillColor                          = System.Drawing.Color.Transparent;
     this.guna2TextBox1.FocusedState.BorderColor           = System.Drawing.Color.FromArgb(((int)(((byte)(94)))), ((int)(((byte)(148)))), ((int)(((byte)(255)))));
     this.guna2TextBox1.FocusedState.Parent                = this.guna2TextBox1;
     this.guna2TextBox1.Font      = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(0)));
     this.guna2TextBox1.ForeColor = System.Drawing.Color.Transparent;
     this.guna2TextBox1.HoverState.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(94)))), ((int)(((byte)(148)))), ((int)(((byte)(255)))));
     this.guna2TextBox1.HoverState.Parent      = this.guna2TextBox1;
     this.guna2TextBox1.Location                = new System.Drawing.Point(384, 1450);
     this.guna2TextBox1.Margin                  = new System.Windows.Forms.Padding(20, 21, 20, 21);
     this.guna2TextBox1.Multiline               = true;
     this.guna2TextBox1.Name                    = "guna2TextBox1";
     this.guna2TextBox1.PasswordChar            = '\0';
     this.guna2TextBox1.PlaceholderForeColor    = System.Drawing.Color.Transparent;
     this.guna2TextBox1.PlaceholderText         = "Random 10 flashcard";
     this.guna2TextBox1.SelectedText            = "";
     this.guna2TextBox1.SelectionStart          = 5;
     this.guna2TextBox1.ShadowDecoration.Parent = this.guna2TextBox1;
     this.guna2TextBox1.Size                    = new System.Drawing.Size(1333, 254);
     this.guna2TextBox1.TabIndex                = 3;
     //
     // guna2TextBox2
     //
     this.guna2TextBox2.Animated                           = true;
     this.guna2TextBox2.BackColor                          = System.Drawing.Color.Transparent;
     this.guna2TextBox2.BorderColor                        = System.Drawing.Color.Transparent;
     this.guna2TextBox2.BorderThickness                    = 0;
     this.guna2TextBox2.Cursor                             = System.Windows.Forms.Cursors.IBeam;
     this.guna2TextBox2.DefaultText                        = "Sâsas";
     this.guna2TextBox2.DisabledState.BorderColor          = System.Drawing.Color.FromArgb(((int)(((byte)(208)))), ((int)(((byte)(208)))), ((int)(((byte)(208)))));
     this.guna2TextBox2.DisabledState.FillColor            = System.Drawing.Color.FromArgb(((int)(((byte)(226)))), ((int)(((byte)(226)))), ((int)(((byte)(226)))));
     this.guna2TextBox2.DisabledState.ForeColor            = System.Drawing.Color.FromArgb(((int)(((byte)(138)))), ((int)(((byte)(138)))), ((int)(((byte)(138)))));
     this.guna2TextBox2.DisabledState.Parent               = this.guna2TextBox2;
     this.guna2TextBox2.DisabledState.PlaceholderForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(138)))), ((int)(((byte)(138)))), ((int)(((byte)(138)))));
     this.guna2TextBox2.FillColor                          = System.Drawing.Color.Transparent;
     this.guna2TextBox2.FocusedState.BorderColor           = System.Drawing.Color.FromArgb(((int)(((byte)(94)))), ((int)(((byte)(148)))), ((int)(((byte)(255)))));
     this.guna2TextBox2.FocusedState.Parent                = this.guna2TextBox2;
     this.guna2TextBox2.Font      = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(0)));
     this.guna2TextBox2.ForeColor = System.Drawing.Color.Transparent;
     this.guna2TextBox2.HoverState.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(94)))), ((int)(((byte)(148)))), ((int)(((byte)(255)))));
     this.guna2TextBox2.HoverState.Parent      = this.guna2TextBox2;
     this.guna2TextBox2.Location                = new System.Drawing.Point(1140, 1450);
     this.guna2TextBox2.Margin                  = new System.Windows.Forms.Padding(20, 21, 20, 21);
     this.guna2TextBox2.Multiline               = true;
     this.guna2TextBox2.Name                    = "guna2TextBox2";
     this.guna2TextBox2.PasswordChar            = '\0';
     this.guna2TextBox2.PlaceholderForeColor    = System.Drawing.Color.Transparent;
     this.guna2TextBox2.PlaceholderText         = "Random 10 flashcard";
     this.guna2TextBox2.SelectedText            = "";
     this.guna2TextBox2.SelectionStart          = 5;
     this.guna2TextBox2.ShadowDecoration.Parent = this.guna2TextBox2;
     this.guna2TextBox2.Size                    = new System.Drawing.Size(1333, 254);
     this.guna2TextBox2.TabIndex                = 3;
     //
     // btLearnNewWord
     //
     this.btLearnNewWord.BackColor             = System.Drawing.Color.Transparent;
     this.btLearnNewWord.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
     this.btLearnNewWord.BorderRadius          = 18;
     this.btLearnNewWord.CheckedState.Parent   = this.btLearnNewWord;
     this.btLearnNewWord.CustomImages.Parent   = this.btLearnNewWord;
     this.btLearnNewWord.FillColor             = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(49)))), ((int)(((byte)(74)))));
     this.btLearnNewWord.Font                    = new System.Drawing.Font("Berlin Sans FB", 16.2F, System.Drawing.FontStyle.Bold);
     this.btLearnNewWord.ForeColor               = System.Drawing.Color.White;
     this.btLearnNewWord.HoverState.Parent       = this.btLearnNewWord;
     this.btLearnNewWord.Location                = new System.Drawing.Point(73, 315);
     this.btLearnNewWord.Margin                  = new System.Windows.Forms.Padding(4);
     this.btLearnNewWord.Name                    = "btLearnNewWord";
     this.btLearnNewWord.ShadowDecoration.Parent = this.btLearnNewWord;
     this.btLearnNewWord.Size                    = new System.Drawing.Size(330, 188);
     this.btLearnNewWord.TabIndex                = 4;
     this.btLearnNewWord.Text                    = "LEARN NEW WORD";
     this.btLearnNewWord.Click                  += new System.EventHandler(this.btLearnNewWord_Click);
     //
     // btYourFlashCard
     //
     this.btYourFlashCard.BackColor             = System.Drawing.Color.Transparent;
     this.btYourFlashCard.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
     this.btYourFlashCard.BorderRadius          = 18;
     this.btYourFlashCard.CheckedState.Parent   = this.btYourFlashCard;
     this.btYourFlashCard.CustomImages.Parent   = this.btYourFlashCard;
     this.btYourFlashCard.FillColor             = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(49)))), ((int)(((byte)(74)))));
     this.btYourFlashCard.Font                    = new System.Drawing.Font("Berlin Sans FB", 16.2F, System.Drawing.FontStyle.Bold);
     this.btYourFlashCard.ForeColor               = System.Drawing.Color.White;
     this.btYourFlashCard.HoverState.Parent       = this.btYourFlashCard;
     this.btYourFlashCard.Location                = new System.Drawing.Point(432, 315);
     this.btYourFlashCard.Margin                  = new System.Windows.Forms.Padding(4);
     this.btYourFlashCard.Name                    = "btYourFlashCard";
     this.btYourFlashCard.ShadowDecoration.Parent = this.btYourFlashCard;
     this.btYourFlashCard.Size                    = new System.Drawing.Size(330, 188);
     this.btYourFlashCard.TabIndex                = 4;
     this.btYourFlashCard.Text                    = "YOUR FLASH CARD";
     this.btYourFlashCard.Click                  += new System.EventHandler(this.btYourFlashCard_Click);
     //
     // btCheck
     //
     this.btCheck.BackColor             = System.Drawing.Color.Transparent;
     this.btCheck.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
     this.btCheck.BorderColor           = System.Drawing.Color.White;
     this.btCheck.BorderRadius          = 18;
     this.btCheck.CheckedState.Parent   = this.btCheck;
     this.btCheck.CustomImages.Parent   = this.btCheck;
     this.btCheck.FillColor             = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(49)))), ((int)(((byte)(74)))));
     this.btCheck.Font                    = new System.Drawing.Font("Berlin Sans FB", 16.2F, System.Drawing.FontStyle.Bold);
     this.btCheck.ForeColor               = System.Drawing.Color.White;
     this.btCheck.HoverState.Parent       = this.btCheck;
     this.btCheck.Location                = new System.Drawing.Point(792, 315);
     this.btCheck.Margin                  = new System.Windows.Forms.Padding(4);
     this.btCheck.Name                    = "btCheck";
     this.btCheck.ShadowDecoration.Parent = this.btCheck;
     this.btCheck.Size                    = new System.Drawing.Size(330, 188);
     this.btCheck.TabIndex                = 4;
     this.btCheck.Text                    = "CHECK YOUR KNOWLEDGE";
     this.btCheck.Click                  += new System.EventHandler(this.btCheck_Click);
     //
     // pnYourFlashCard
     //
     this.pnYourFlashCard.BackgroundImage       = global::StartMenu.Properties.Resources.YourFlashcard1;
     this.pnYourFlashCard.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
     this.pnYourFlashCard.Controls.Add(btNext);
     this.pnYourFlashCard.Controls.Add(this.btFlip);
     this.pnYourFlashCard.Controls.Add(this.btFlashCard);
     this.pnYourFlashCard.Controls.Add(this.btBack);
     this.pnYourFlashCard.Location = new System.Drawing.Point(291, 137);
     this.pnYourFlashCard.Name     = "pnYourFlashCard";
     this.pnYourFlashCard.Size     = new System.Drawing.Size(218, 137);
     this.pnYourFlashCard.TabIndex = 5;
     this.pnYourFlashCard.Paint   += new System.Windows.Forms.PaintEventHandler(this.pnYourFlashCard_Paint);
     //
     // btFlip
     //
     this.btFlip.BackColor           = System.Drawing.Color.Transparent;
     this.btFlip.BorderColor         = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(49)))), ((int)(((byte)(74)))));
     this.btFlip.BorderRadius        = 17;
     this.btFlip.BorderThickness     = 3;
     this.btFlip.CheckedState.Parent = this.btFlip;
     this.btFlip.CustomImages.Parent = this.btFlip;
     this.btFlip.FillColor           = System.Drawing.Color.Transparent;
     this.btFlip.Font                    = new System.Drawing.Font("Berlin Sans FB", 16.2F, System.Drawing.FontStyle.Bold);
     this.btFlip.ForeColor               = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(49)))), ((int)(((byte)(74)))));
     this.btFlip.HoverState.Parent       = this.btFlip;
     this.btFlip.Location                = new System.Drawing.Point(220, 555);
     this.btFlip.Name                    = "btFlip";
     this.btFlip.ShadowDecoration.Parent = this.btFlip;
     this.btFlip.Size                    = new System.Drawing.Size(631, 43);
     this.btFlip.TabIndex                = 4;
     this.btFlip.Text                    = "Flip";
     //
     // btFlashCard
     //
     this.btFlashCard.BackColor             = System.Drawing.Color.Transparent;
     this.btFlashCard.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
     this.btFlashCard.BorderColor           = System.Drawing.Color.DarkRed;
     this.btFlashCard.BorderRadius          = 30;
     this.btFlashCard.BorderThickness       = 1;
     this.btFlashCard.CheckedState.Parent   = this.btFlashCard;
     this.btFlashCard.CustomImages.Parent   = this.btFlashCard;
     this.btFlashCard.FillColor             = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(49)))), ((int)(((byte)(74)))));
     this.btFlashCard.Font                    = new System.Drawing.Font("Microsoft Sans Serif", 36F, System.Drawing.FontStyle.Bold);
     this.btFlashCard.ForeColor               = System.Drawing.Color.White;
     this.btFlashCard.HoverState.Parent       = this.btFlashCard;
     this.btFlashCard.Location                = new System.Drawing.Point(220, 246);
     this.btFlashCard.Name                    = "btFlashCard";
     this.btFlashCard.ShadowDecoration.Parent = this.btFlashCard;
     this.btFlashCard.Size                    = new System.Drawing.Size(631, 288);
     this.btFlashCard.TabIndex                = 3;
     this.btFlashCard.Text                    = "WORD";
     //
     // btBack
     //
     this.btBack.AutoRoundedCorners    = true;
     this.btBack.BackColor             = System.Drawing.Color.Transparent;
     this.btBack.BackgroundImage       = global::StartMenu.Properties.Resources.brand_royaltyfree_yes_and_no_check_mark_flat_design;
     this.btBack.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
     this.btBack.BorderRadius          = 35;
     this.btBack.CheckedState.Parent   = this.btBack;
     this.btBack.CustomImages.Parent   = this.btBack;
     this.btBack.FillColor             = System.Drawing.Color.Transparent;
     this.btBack.Font                    = new System.Drawing.Font("Segoe UI", 9F);
     this.btBack.ForeColor               = System.Drawing.Color.Transparent;
     this.btBack.HoverState.Parent       = this.btBack;
     this.btBack.ImageOffset             = new System.Drawing.Point(20, 0);
     this.btBack.ImageSize               = new System.Drawing.Size(100, 100);
     this.btBack.Location                = new System.Drawing.Point(4, 4);
     this.btBack.Margin                  = new System.Windows.Forms.Padding(4);
     this.btBack.Name                    = "btBack";
     this.btBack.ShadowDecoration.Parent = this.btBack;
     this.btBack.Size                    = new System.Drawing.Size(72, 72);
     this.btBack.TabIndex                = 2;
     this.btBack.Text                    = "guna2Button3";
     this.btBack.Click                  += new System.EventHandler(this.btBack_Click);
     //
     // pnStatistic
     //
     this.pnStatistic.BackgroundImage       = global::StartMenu.Properties.Resources.statistics;
     this.pnStatistic.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
     this.pnStatistic.Controls.Add(this.rtbLearned);
     this.pnStatistic.Controls.Add(this.lbLearned);
     this.pnStatistic.Controls.Add(this.lbEmail);
     this.pnStatistic.Controls.Add(this.lbId);
     this.pnStatistic.Controls.Add(this.btBack3);
     this.pnStatistic.Controls.Add(this.lbUsername);
     this.pnStatistic.Controls.Add(this.pictureBox1);
     this.pnStatistic.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.pnStatistic.Location = new System.Drawing.Point(0, 0);
     this.pnStatistic.Name     = "pnStatistic";
     this.pnStatistic.Size     = new System.Drawing.Size(1162, 628);
     this.pnStatistic.TabIndex = 8;
     this.pnStatistic.Visible  = false;
     //
     // lbLearned
     //
     this.lbLearned.AutoSize  = true;
     this.lbLearned.BackColor = System.Drawing.Color.Transparent;
     this.lbLearned.Font      = new System.Drawing.Font("Microsoft Sans Serif", 22.2F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(163)));
     this.lbLearned.Location  = new System.Drawing.Point(12, 371);
     this.lbLearned.Name      = "lbLearned";
     this.lbLearned.Size      = new System.Drawing.Size(140, 36);
     this.lbLearned.TabIndex  = 2;
     this.lbLearned.Text      = "Learned: ";
     //
     // lbEmail
     //
     this.lbEmail.AutoSize  = true;
     this.lbEmail.BackColor = System.Drawing.Color.Transparent;
     this.lbEmail.Font      = new System.Drawing.Font("Microsoft Sans Serif", 22.2F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(163)));
     this.lbEmail.Location  = new System.Drawing.Point(186, 307);
     this.lbEmail.Name      = "lbEmail";
     this.lbEmail.Size      = new System.Drawing.Size(104, 36);
     this.lbEmail.TabIndex  = 2;
     this.lbEmail.Text      = "Email: ";
     //
     // lbId
     //
     this.lbId.AutoSize  = true;
     this.lbId.BackColor = System.Drawing.Color.Transparent;
     this.lbId.Font      = new System.Drawing.Font("Microsoft Sans Serif", 22.2F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(163)));
     this.lbId.Location  = new System.Drawing.Point(186, 245);
     this.lbId.Name      = "lbId";
     this.lbId.Size      = new System.Drawing.Size(111, 36);
     this.lbId.TabIndex  = 2;
     this.lbId.Text      = "UserId:";
     //
     // btBack3
     //
     this.btBack3.AutoRoundedCorners    = true;
     this.btBack3.BackColor             = System.Drawing.Color.Transparent;
     this.btBack3.BackgroundImage       = global::StartMenu.Properties.Resources.brand_royaltyfree_yes_and_no_check_mark_flat_design;
     this.btBack3.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
     this.btBack3.BorderRadius          = 33;
     this.btBack3.CheckedState.Parent   = this.btBack3;
     this.btBack3.CustomImages.Parent   = this.btBack3;
     this.btBack3.FillColor             = System.Drawing.Color.Transparent;
     this.btBack3.Font                    = new System.Drawing.Font("Segoe UI", 9F);
     this.btBack3.ForeColor               = System.Drawing.Color.Transparent;
     this.btBack3.HoverState.Parent       = this.btBack3;
     this.btBack3.ImageAlign              = System.Windows.Forms.HorizontalAlignment.Right;
     this.btBack3.ImageOffset             = new System.Drawing.Point(20, 0);
     this.btBack3.ImageSize               = new System.Drawing.Size(100, 100);
     this.btBack3.Location                = new System.Drawing.Point(4, 4);
     this.btBack3.Margin                  = new System.Windows.Forms.Padding(4);
     this.btBack3.Name                    = "btBack3";
     this.btBack3.ShadowDecoration.Parent = this.btBack3;
     this.btBack3.Size                    = new System.Drawing.Size(68, 69);
     this.btBack3.TabIndex                = 2;
     this.btBack3.Text                    = "guna2Button3";
     this.btBack3.Click                  += new System.EventHandler(this.btBack3_Click);
     //
     // lbUsername
     //
     this.lbUsername.AutoSize  = true;
     this.lbUsername.BackColor = System.Drawing.Color.Transparent;
     this.lbUsername.Font      = new System.Drawing.Font("Microsoft Sans Serif", 22.2F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(163)));
     this.lbUsername.Location  = new System.Drawing.Point(186, 187);
     this.lbUsername.Name      = "lbUsername";
     this.lbUsername.Size      = new System.Drawing.Size(166, 36);
     this.lbUsername.TabIndex  = 2;
     this.lbUsername.Text      = "Username: "******"pictureBox1";
     this.pictureBox1.Size     = new System.Drawing.Size(165, 158);
     this.pictureBox1.TabIndex = 0;
     this.pictureBox1.TabStop  = false;
     //
     // pnCheck
     //
     this.pnCheck.BackgroundImage       = global::StartMenu.Properties.Resources.Check_your_word1;
     this.pnCheck.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
     this.pnCheck.Controls.Add(this.pbImage);
     this.pnCheck.Controls.Add(this.btnBack);
     this.pnCheck.Controls.Add(this.btFlip2);
     this.pnCheck.Controls.Add(this.btNope);
     this.pnCheck.Controls.Add(this.btKnow);
     this.pnCheck.Controls.Add(this.btFlashCard2);
     this.pnCheck.Location = new System.Drawing.Point(556, 16);
     this.pnCheck.Name     = "pnCheck";
     this.pnCheck.Size     = new System.Drawing.Size(260, 134);
     this.pnCheck.TabIndex = 6;
     this.pnCheck.Visible  = false;
     //
     // pbImage
     //
     this.pbImage.BackColor                = System.Drawing.Color.Transparent;
     this.pbImage.FillColor                = System.Drawing.Color.Transparent;
     this.pbImage.InitialImage             = null;
     this.pbImage.Location                 = new System.Drawing.Point(410, 198);
     this.pbImage.Name                     = "pbImage";
     this.pbImage.ShadowDecoration.Parent  = this.pbImage;
     this.pbImage.Size                     = new System.Drawing.Size(335, 335);
     this.pbImage.SizeMode                 = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
     this.pbImage.TabIndex                 = 7;
     this.pbImage.TabStop                  = false;
     this.pbImage.UseTransparentBackground = true;
     this.pbImage.Click                   += new System.EventHandler(this.pbImage_Click);
     //
     // btnBack
     //
     this.btnBack.AutoRoundedCorners    = true;
     this.btnBack.BackColor             = System.Drawing.Color.Transparent;
     this.btnBack.BackgroundImage       = global::StartMenu.Properties.Resources.brand_royaltyfree_yes_and_no_check_mark_flat_design;
     this.btnBack.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
     this.btnBack.BorderRadius          = 37;
     this.btnBack.CheckedState.Parent   = this.btnBack;
     this.btnBack.CustomImages.Parent   = this.btnBack;
     this.btnBack.FillColor             = System.Drawing.Color.Transparent;
     this.btnBack.Font                    = new System.Drawing.Font("Segoe UI", 9F);
     this.btnBack.ForeColor               = System.Drawing.Color.Transparent;
     this.btnBack.HoverState.Parent       = this.btnBack;
     this.btnBack.ImageOffset             = new System.Drawing.Point(20, 0);
     this.btnBack.ImageSize               = new System.Drawing.Size(100, 100);
     this.btnBack.Location                = new System.Drawing.Point(1, 4);
     this.btnBack.Margin                  = new System.Windows.Forms.Padding(4);
     this.btnBack.Name                    = "btnBack";
     this.btnBack.ShadowDecoration.Parent = this.btnBack;
     this.btnBack.Size                    = new System.Drawing.Size(77, 77);
     this.btnBack.TabIndex                = 6;
     this.btnBack.Text                    = "guna2Button3";
     this.btnBack.Click                  += new System.EventHandler(this.btnBack_Click_1);
     //
     // btFlip2
     //
     this.btFlip2.BackColor             = System.Drawing.Color.Transparent;
     this.btFlip2.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
     this.btFlip2.BorderColor           = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(49)))), ((int)(((byte)(74)))));
     this.btFlip2.BorderRadius          = 15;
     this.btFlip2.BorderThickness       = 3;
     this.btFlip2.CheckedState.Parent   = this.btFlip2;
     this.btFlip2.CustomImages.Parent   = this.btFlip2;
     this.btFlip2.FillColor             = System.Drawing.Color.Transparent;
     this.btFlip2.Font                    = new System.Drawing.Font("Berlin Sans FB", 22F, System.Drawing.FontStyle.Bold);
     this.btFlip2.ForeColor               = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(49)))), ((int)(((byte)(74)))));
     this.btFlip2.HoverState.Parent       = this.btFlip2;
     this.btFlip2.Location                = new System.Drawing.Point(301, 539);
     this.btFlip2.Name                    = "btFlip2";
     this.btFlip2.ShadowDecoration.Parent = this.btFlip2;
     this.btFlip2.Size                    = new System.Drawing.Size(540, 60);
     this.btFlip2.TabIndex                = 5;
     this.btFlip2.Text                    = "WORD";
     this.btFlip2.Click                  += new System.EventHandler(this.btFlip2_Click);
     //
     // btNope
     //
     this.btNope.AutoRoundedCorners    = true;
     this.btNope.BackColor             = System.Drawing.Color.Transparent;
     this.btNope.BackgroundImage       = global::StartMenu.Properties.Resources.brand_royaltyfree_yes_and_no_check_mark_flat_design;
     this.btNope.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
     this.btNope.BorderRadius          = 40;
     this.btNope.CheckedState.Parent   = this.btNope;
     this.btNope.CustomImages.Parent   = this.btNope;
     this.btNope.FillColor             = System.Drawing.Color.Transparent;
     this.btNope.Font                    = new System.Drawing.Font("Segoe UI", 9F);
     this.btNope.ForeColor               = System.Drawing.Color.White;
     this.btNope.HoverState.Parent       = this.btNope;
     this.btNope.Location                = new System.Drawing.Point(186, 326);
     this.btNope.Name                    = "btNope";
     this.btNope.ShadowDecoration.Parent = this.btNope;
     this.btNope.Size                    = new System.Drawing.Size(82, 82);
     this.btNope.TabIndex                = 4;
     this.btNope.Click                  += new System.EventHandler(this.btNope_Click);
     //
     // btKnow
     //
     this.btKnow.AutoRoundedCorners    = true;
     this.btKnow.BackColor             = System.Drawing.Color.Transparent;
     this.btKnow.BackgroundImage       = global::StartMenu.Properties.Resources.sm_5afb099b30a2a;
     this.btKnow.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
     this.btKnow.BorderRadius          = 39;
     this.btKnow.CheckedState.Parent   = this.btKnow;
     this.btKnow.CustomImages.Parent   = this.btKnow;
     this.btKnow.FillColor             = System.Drawing.Color.Transparent;
     this.btKnow.Font                    = new System.Drawing.Font("Segoe UI", 9F);
     this.btKnow.ForeColor               = System.Drawing.Color.Transparent;
     this.btKnow.HoverState.Parent       = this.btKnow;
     this.btKnow.Location                = new System.Drawing.Point(904, 325);
     this.btKnow.Name                    = "btKnow";
     this.btKnow.ShadowDecoration.Parent = this.btKnow;
     this.btKnow.Size                    = new System.Drawing.Size(80, 80);
     this.btKnow.TabIndex                = 4;
     this.btKnow.Click                  += new System.EventHandler(this.btKnow_Click);
     //
     // btFlashCard2
     //
     this.btFlashCard2.BackColor             = System.Drawing.Color.Transparent;
     this.btFlashCard2.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
     this.btFlashCard2.BorderColor           = System.Drawing.Color.Maroon;
     this.btFlashCard2.BorderRadius          = 18;
     this.btFlashCard2.CheckedState.Parent   = this.btFlashCard2;
     this.btFlashCard2.CustomImages.Parent   = this.btFlashCard2;
     this.btFlashCard2.FillColor             = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(49)))), ((int)(((byte)(74)))));
     this.btFlashCard2.Font                    = new System.Drawing.Font("Microsoft Sans Serif", 36F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.btFlashCard2.ForeColor               = System.Drawing.Color.White;
     this.btFlashCard2.HoverState.Parent       = this.btFlashCard2;
     this.btFlashCard2.Location                = new System.Drawing.Point(301, 198);
     this.btFlashCard2.Name                    = "btFlashCard2";
     this.btFlashCard2.ShadowDecoration.Parent = this.btFlashCard2;
     this.btFlashCard2.Size                    = new System.Drawing.Size(540, 335);
     this.btFlashCard2.TabIndex                = 3;
     this.btFlashCard2.Text                    = "WORD";
     this.btFlashCard2.Click                  += new System.EventHandler(this.btFlashCard2_Click);
     //
     // btStatistic
     //
     this.btStatistic.BackColor             = System.Drawing.Color.Transparent;
     this.btStatistic.BackgroundImage       = global::StartMenu.Properties.Resources.imgbin_computer_icons_statistics_chart_business_png;
     this.btStatistic.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
     this.btStatistic.CheckedState.Parent   = this.btStatistic;
     this.btStatistic.CustomImages.Parent   = this.btStatistic;
     this.btStatistic.FillColor             = System.Drawing.Color.Transparent;
     this.btStatistic.Font                    = new System.Drawing.Font("Segoe UI", 9F);
     this.btStatistic.ForeColor               = System.Drawing.Color.White;
     this.btStatistic.HoverState.Parent       = this.btStatistic;
     this.btStatistic.Location                = new System.Drawing.Point(10, 556);
     this.btStatistic.Name                    = "btStatistic";
     this.btStatistic.ShadowDecoration.Parent = this.btStatistic;
     this.btStatistic.Size                    = new System.Drawing.Size(77, 70);
     this.btStatistic.TabIndex                = 7;
     this.btStatistic.Click                  += new System.EventHandler(this.btStatistic_Click);
     //
     // pnlLoad
     //
     this.pnlLoad.BackColor = System.Drawing.Color.Transparent;
     this.pnlLoad.Location  = new System.Drawing.Point(0, 0);
     this.pnlLoad.Name      = "pnlLoad";
     this.pnlLoad.Size      = new System.Drawing.Size(252, 237);
     this.pnlLoad.TabIndex  = 9;
     //
     // rtbLearned
     //
     this.rtbLearned.BackColor   = System.Drawing.SystemColors.Menu;
     this.rtbLearned.BorderStyle = System.Windows.Forms.BorderStyle.None;
     this.rtbLearned.Font        = new System.Drawing.Font("Microsoft Sans Serif", 14.2F);
     this.rtbLearned.Location    = new System.Drawing.Point(192, 371);
     this.rtbLearned.Name        = "rtbLearned";
     this.rtbLearned.Size        = new System.Drawing.Size(938, 244);
     this.rtbLearned.TabIndex    = 3;
     this.rtbLearned.Text        = "";
     //
     // FRevision
     //
     this.AutoScaleMode         = System.Windows.Forms.AutoScaleMode.None;
     this.BackgroundImage       = global::StartMenu.Properties.Resources.Revision2;
     this.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
     this.ClientSize            = new System.Drawing.Size(1162, 628);
     this.Controls.Add(this.pnStatistic);
     this.Controls.Add(this.pnYourFlashCard);
     this.Controls.Add(this.pnCheck);
     this.Controls.Add(this.pnlLoad);
     this.Controls.Add(this.btStatistic);
     this.Controls.Add(this.btCheck);
     this.Controls.Add(this.btYourFlashCard);
     this.Controls.Add(this.btLearnNewWord);
     this.Controls.Add(this.guna2TextBox2);
     this.Controls.Add(this.guna2TextBox1);
     this.DoubleBuffered  = true;
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
     this.Margin          = new System.Windows.Forms.Padding(4);
     this.Name            = "FRevision";
     this.StartPosition   = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text            = "FRevision";
     this.Load           += new System.EventHandler(this.FRevision_Load);
     this.pnYourFlashCard.ResumeLayout(false);
     this.pnStatistic.ResumeLayout(false);
     this.pnStatistic.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
     this.pnCheck.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.pbImage)).EndInit();
     this.ResumeLayout(false);
 }
Esempio n. 19
0
        private void uc_cpyResepClik(object sender, EventArgs e)
        {
            Guna.UI2.WinForms.Guna2Button us = (Guna.UI2.WinForms.Guna2Button)sender;
            var _cpyNoResep = us.Tag.ToString();

            //MessageBox.Show(_cpyNoResep);
            var       dh = new dataset.yakkumdbTableAdapters.fa_rx_resep_dTableAdapter();
            var       dt = new dataset.yakkumdbTableAdapters.fa_rx_racikanTableAdapter();
            DataTable ds = dh.GetDataByKodeRXonlyRX(_cpyNoResep);

            foreach (DataRow r in ds.Rows)
            {
                var nu = (int)dh.ScalarQueryMaxNoUrutResep(lblKodeRtx.Text) + 1;
                var sc = (int)dh.ScalarQueryNoRacikan(lblKodeRtx.Text) + 1;

                var _koderacikan = "RC" + _noreg + _kdokter + sc.ToString("00000");
                //MessageBox.Show(_koderacikan);
                if ((Boolean)r["bt_racikan"] == true)
                {
                    dh.InsertQuery
                        (lblKodeRtx.Text,
                        _koderacikan,
                        "999999",
                        sc.ToString(),
                        true,
                        r["vc_signalain"].ToString(),
                        (Boolean)r["bt_iter"],
                        (Decimal)r["num_jmliter"],
                        (Boolean)r["bt_fav"],
                        (Decimal)r["num_jml"],
                        _kdokter,
                        nu,
                        r["nvc_dd1"].ToString(),
                        r["nvc_dd2"].ToString(),
                        r["vc_satuan"].ToString(),
                        r["vc_nama_obat"].ToString(),
                        r["vc_satuan_dosis"].ToString()

                        );
                    DataTable tt = dt.GetDataByKodeRD(r["vc_kode_rx_d"].ToString());
                    foreach (DataRow t in tt.Rows)
                    {
                        dt.InsertQuery(
                            _koderacikan,
                            (int)t["in_no_urut"],
                            t["vc_k_obat"].ToString(),
                            t["vc_nama_obat"].ToString(),
                            t["vc_dosis"].ToString(),
                            t["vc_satuan"].ToString()
                            );
                    }
                }
                else
                {
                    dh.InsertQuery
                        (lblKodeRtx.Text,
                        lblKodeRtx.Text + r["vc_kode_obat"].ToString(),
                        r["vc_kode_obat"].ToString(),
                        "",
                        false,
                        r["vc_signalain"].ToString(),
                        (Boolean)r["bt_iter"],
                        (Decimal)r["num_jmliter"],
                        (Boolean)r["bt_fav"],
                        (Decimal)r["num_jml"],
                        _kdokter,
                        nu,
                        r["nvc_dd1"].ToString(),
                        r["nvc_dd2"].ToString(),
                        r["vc_satuan"].ToString(),
                        r["vc_nama_obat"].ToString(),
                        r["vc_satuan_dosis"].ToString()
                        );
                }
            }

            this.view_resepTableAdapter.Fill(this.yakkumdb.view_resep, lblKodeRtx.Text);
            bs_view_resep.Filter = "vc_kode_rx = '" + lblKodeRtx.Text + "'";
            dgvResep.Update();
            dgvResep.Refresh();

            hrclose();
            //AddData ef = new AddData(_filter, _kodeKlinik, _kodeDokter) { Dock = DockStyle.Fill, TopLevel = false, TopMost = true };
            //this.Controls.Clear();
            //this.Controls.Add(ef);
            //ef.Show();
        }
Esempio n. 20
0
        public void RoomChose_Load(object sender, EventArgs e)
        {
            Mycnt.Open();
            // lay het du lieu trong bang DTBQT
            string     sql = "SELECT * FROM ROOMLIST";
            SqlCommand com = new SqlCommand(sql, Mycnt); //bat dau truy van

            com.CommandType = CommandType.Text;
            SqlDataAdapter da = new SqlDataAdapter(com); //chuyen du lieu ve
            DataTable      dt = new DataTable();         //tạo một kho ảo để lưu trữ dữ liệu

            da.Fill(dt);                                 // đổ dữ liệu vào kho
            Mycnt.Close();                               // đóng kết nối
            roomList = new List <Room>();
            if (dt.Rows.Count < 1)
            {
                return;
            }
            else
            {
                if (dt.Rows.Count % 16 == 0)
                {
                    listpnl = new FlowLayoutPanel[dt.Rows.Count / 16];
                }
                else
                {
                    listpnl = new FlowLayoutPanel[dt.Rows.Count / 16 + 1];
                }


                for (int i = 0; i < dt.Rows.Count; i++)
                {
                    roomList.Add(new Room(dt.Rows[i]["RoomID"].ToString().Trim(), dt.Rows[i]["HostID"].ToString().Trim(), dt.Rows[i]["GuestID"].ToString().Trim(), Convert.ToInt32(dt.Rows[i]["IsClosed"].ToString().Trim()), Convert.ToInt32(dt.Rows[i]["IsReady"].ToString().Trim()), Convert.ToInt32(dt.Rows[i]["IsStart"].ToString().Trim())));
                }
            }
            listbtn = new Guna.UI2.WinForms.Guna2Button[roomList.Count];

            for (int j = 0; j < listpnl.Length; j++)
            {
                listpnl[j] = new FlowLayoutPanel()
                {
                    Location = new System.Drawing.Point(101, 167), Size = new System.Drawing.Size(785, 324)
                };
                // this.listpnl[j].BackColor = System.Drawing.Color.Transparent;
                this.listpnl[j].BackColor = System.Drawing.Color.Teal;
                this.Controls.Add(listpnl[j]);
            }
            int number_room_inpanel = 0;
            int number_pnl          = 0;

            for (int i = 0; i < roomList.Count; i++)
            {
                string a = "Phòng ";

                a         += roomList[i].RoomID;
                listbtn[i] = new Guna.UI2.WinForms.Guna2Button()
                {
                    Text = a, Size = new System.Drawing.Size(150, 100)
                };
                listbtn[i].BorderRadius = 15;
                listbtn[i].Name         = "Room" + i.ToString();
                listbtn[i].Font         = new System.Drawing.Font("Segoe UI", 13F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
                listbtn[i].FillColor    = Color.White;
                listbtn[i].ForeColor    = Color.Black;
                if (roomList[i].IsStart == 1)
                {
                    listbtn[i].FillColor = Color.Red;
                }
                if (number_room_inpanel == 16)
                {
                    number_room_inpanel = 0;
                    number_pnl++;
                }
                else
                {
                    number_room_inpanel++;
                }
                listpnl[number_pnl].Controls.Add(listbtn[i]);
                listpnl[0].BringToFront();
                //////////// su kien click
                listbtn[i].Click += (s, k) =>
                {
                    Guna.UI2.WinForms.Guna2Button raised_controls = s as Guna.UI2.WinForms.Guna2Button;
                    int count = -1;
                    foreach (Guna.UI2.WinForms.Guna2Button x in listbtn)
                    {
                        count++;
                        string temp = x.Text.Substring(6);

                        if (raised_controls.Text == x.Text)
                        {
                            if (roomList[count].IsClosed == 1)
                            {
                                MessageBox.Show("Phòng đầy !", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Information);
                            }
                            else
                            {
                                roomList[count].GuestID  = PlayerName;
                                roomList[count].IsClosed = 1;
                                roomList[count].IsReady  = 0;
                                Mycnt.Open();
                                sql = String.Format("UPDATE ROOMLIST SET ISCLOSED = '0',IsReady = '0',IsStart ='0',GuestID = '' WHERE GuestID = '{0}'" +
                                                    "UPDATE ROOMLIST SET ISCLOSED = '1',IsReady = '0',GuestID = '{0}',IsStart ='0' WHERE ROOMID = '{1}'", PlayerName, temp);
                                com = new SqlCommand(sql, Mycnt); //bat dau truy van
                                com.ExecuteNonQuery();
                                Mycnt.Close();
                                MessageBox.Show("Vào Phòng Thành Công !", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Information);
                                GameManager_2 game_host = new GameManager_2(null, this, GetQuestionFromRoom(temp));
                                int           aa;
                                for (aa = 0; aa < roomList.Count - 1; aa++)
                                {
                                    if (roomList[aa].RoomID == temp)
                                    {
                                        break;
                                    }
                                }
                                room = new RoomForm(this, roomList[aa], PlayerName, game_host, 0); // dùng chung biến room
                                room.Show();
                                room.check_timer.Enabled = true;
                                this.Hide();
                                int concat = 10;
                            }
                        }
                    }
                };
            }
        }
Esempio n. 21
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     this.guna2ShadowForm1 = new Guna.UI2.WinForms.Guna2ShadowForm(this.components);
     this.guna2Elipse1 = new Guna.UI2.WinForms.Guna2Elipse(this.components);
     this.btnClose = new Guna.UI2.WinForms.Guna2Button();
     this.panel1 = new System.Windows.Forms.Panel();
     this.gunaLabel1 = new Guna.UI.WinForms.GunaLabel();
     this.panel2 = new System.Windows.Forms.Panel();
     this.tbNgayGio = new System.Windows.Forms.Label();
     this.tbGiaVe = new System.Windows.Forms.Label();
     this.tbMaVe = new System.Windows.Forms.Label();
     this.tbTenHK = new Guna.UI2.WinForms.Guna2TextBox();
     this.tbCMND = new Guna.UI2.WinForms.Guna2TextBox();
     this.tbDienThoai = new Guna.UI2.WinForms.Guna2TextBox();
     this.cbMaCB = new Guna.UI2.WinForms.Guna2ComboBox();
     this.cbHangVe = new Guna.UI2.WinForms.Guna2ComboBox();
     this.lbDienThoai = new Guna.UI.WinForms.GunaLabel();
     this.lbHangVe = new Guna.UI.WinForms.GunaLabel();
     this.lbGiaVe = new Guna.UI.WinForms.GunaLabel();
     this.lbCMND = new Guna.UI.WinForms.GunaLabel();
     this.lbTenHK = new Guna.UI.WinForms.GunaLabel();
     this.lbNgayGio = new Guna.UI.WinForms.GunaLabel();
     this.lbMaCB = new Guna.UI.WinForms.GunaLabel();
     this.lbMaVe = new Guna.UI.WinForms.GunaLabel();
     this.btnCancel = new Guna.UI2.WinForms.Guna2Button();
     this.guna2DragControl1 = new Guna.UI2.WinForms.Guna2DragControl(this.components);
     this.btnOK = new Guna.UI2.WinForms.Guna2Button();
     this.guna2Elipse3 = new Guna.UI2.WinForms.Guna2Elipse(this.components);
     this.button1 = new System.Windows.Forms.Button();
     this.button2 = new System.Windows.Forms.Button();
     this.lbNoti = new Guna.UI.WinForms.GunaLabel();
     this.panel1.SuspendLayout();
     this.panel2.SuspendLayout();
     this.SuspendLayout();
     //
     // guna2Elipse1
     //
     this.guna2Elipse1.BorderRadius = 20;
     this.guna2Elipse1.TargetControl = this;
     //
     // btnClose
     //
     this.btnClose.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.btnClose.Animated = true;
     this.btnClose.AutoRoundedCorners = true;
     this.btnClose.BackColor = System.Drawing.Color.Transparent;
     this.btnClose.BorderRadius = 19;
     this.btnClose.CheckedState.Parent = this.btnClose;
     this.btnClose.CustomImages.ImageAlign = System.Windows.Forms.HorizontalAlignment.Center;
     this.btnClose.CustomImages.Parent = this.btnClose;
     this.btnClose.DialogResult = System.Windows.Forms.DialogResult.Cancel;
     this.btnClose.Font = new System.Drawing.Font("Segoe UI", 9F);
     this.btnClose.ForeColor = System.Drawing.Color.White;
     this.btnClose.HoverState.Parent = this.btnClose;
     this.btnClose.Location = new System.Drawing.Point(748, 12);
     this.btnClose.Name = "btnClose";
     this.btnClose.ShadowDecoration.BorderRadius = 19;
     this.btnClose.ShadowDecoration.Enabled = true;
     this.btnClose.ShadowDecoration.Parent = this.btnClose;
     this.btnClose.ShadowDecoration.Shadow = new System.Windows.Forms.Padding(0, 0, 3, 3);
     this.btnClose.Size = new System.Drawing.Size(40, 40);
     this.btnClose.TabIndex = 4;
     this.btnClose.TabStop = false;
     this.btnClose.Click += new System.EventHandler(this.btnClose_Click);
     //
     // panel1
     //
     this.panel1.Controls.Add(this.btnClose);
     this.panel1.Controls.Add(this.gunaLabel1);
     this.panel1.Dock = System.Windows.Forms.DockStyle.Top;
     this.panel1.Location = new System.Drawing.Point(0, 0);
     this.panel1.Name = "panel1";
     this.panel1.Size = new System.Drawing.Size(800, 60);
     this.panel1.TabIndex = 5;
     //
     // gunaLabel1
     //
     this.gunaLabel1.BackColor = System.Drawing.Color.Transparent;
     this.gunaLabel1.Dock = System.Windows.Forms.DockStyle.Fill;
     this.gunaLabel1.Font = new System.Drawing.Font("Segoe UI", 18F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.gunaLabel1.Location = new System.Drawing.Point(0, 0);
     this.gunaLabel1.Name = "gunaLabel1";
     this.gunaLabel1.Size = new System.Drawing.Size(800, 60);
     this.gunaLabel1.TabIndex = 0;
     this.gunaLabel1.Text = "Vé";
     this.gunaLabel1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // panel2
     //
     this.panel2.Controls.Add(this.tbNgayGio);
     this.panel2.Controls.Add(this.tbGiaVe);
     this.panel2.Controls.Add(this.tbMaVe);
     this.panel2.Controls.Add(this.tbTenHK);
     this.panel2.Controls.Add(this.tbCMND);
     this.panel2.Controls.Add(this.tbDienThoai);
     this.panel2.Controls.Add(this.cbMaCB);
     this.panel2.Controls.Add(this.cbHangVe);
     this.panel2.Controls.Add(this.lbDienThoai);
     this.panel2.Controls.Add(this.lbHangVe);
     this.panel2.Controls.Add(this.lbGiaVe);
     this.panel2.Controls.Add(this.lbCMND);
     this.panel2.Controls.Add(this.lbTenHK);
     this.panel2.Controls.Add(this.lbNgayGio);
     this.panel2.Controls.Add(this.lbMaCB);
     this.panel2.Controls.Add(this.lbMaVe);
     this.panel2.Dock = System.Windows.Forms.DockStyle.Top;
     this.panel2.Location = new System.Drawing.Point(0, 60);
     this.panel2.Name = "panel2";
     this.panel2.Size = new System.Drawing.Size(800, 264);
     this.panel2.TabIndex = 0;
     //
     // tbNgayGio
     //
     this.tbNgayGio.AutoSize = true;
     this.tbNgayGio.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.tbNgayGio.Location = new System.Drawing.Point(508, 94);
     this.tbNgayGio.Name = "tbNgayGio";
     this.tbNgayGio.Size = new System.Drawing.Size(0, 28);
     this.tbNgayGio.TabIndex = 3;
     //
     // tbGiaVe
     //
     this.tbGiaVe.AutoSize = true;
     this.tbGiaVe.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.tbGiaVe.Location = new System.Drawing.Point(508, 38);
     this.tbGiaVe.Name = "tbGiaVe";
     this.tbGiaVe.Size = new System.Drawing.Size(0, 28);
     this.tbGiaVe.TabIndex = 3;
     //
     // tbMaVe
     //
     this.tbMaVe.AutoSize = true;
     this.tbMaVe.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.tbMaVe.Location = new System.Drawing.Point(152, 38);
     this.tbMaVe.Name = "tbMaVe";
     this.tbMaVe.Size = new System.Drawing.Size(96, 28);
     this.tbMaVe.TabIndex = 3;
     this.tbMaVe.Text = "#######";
     //
     // tbTenHK
     //
     this.tbTenHK.BackColor = System.Drawing.Color.Transparent;
     this.tbTenHK.BorderRadius = 6;
     this.tbTenHK.Cursor = System.Windows.Forms.Cursors.IBeam;
     this.tbTenHK.DefaultText = "";
     this.tbTenHK.DisabledState.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(208)))), ((int)(((byte)(208)))), ((int)(((byte)(208)))));
     this.tbTenHK.DisabledState.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(226)))), ((int)(((byte)(226)))), ((int)(((byte)(226)))));
     this.tbTenHK.DisabledState.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(138)))), ((int)(((byte)(138)))), ((int)(((byte)(138)))));
     this.tbTenHK.DisabledState.Parent = this.tbTenHK;
     this.tbTenHK.DisabledState.PlaceholderForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(138)))), ((int)(((byte)(138)))), ((int)(((byte)(138)))));
     this.tbTenHK.FocusedState.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(94)))), ((int)(((byte)(148)))), ((int)(((byte)(255)))));
     this.tbTenHK.FocusedState.Parent = this.tbTenHK;
     this.tbTenHK.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.tbTenHK.HoverState.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(94)))), ((int)(((byte)(148)))), ((int)(((byte)(255)))));
     this.tbTenHK.HoverState.Parent = this.tbTenHK;
     this.tbTenHK.Location = new System.Drawing.Point(152, 142);
     this.tbTenHK.Margin = new System.Windows.Forms.Padding(6, 7, 6, 7);
     this.tbTenHK.Name = "tbTenHK";
     this.tbTenHK.PasswordChar = '\0';
     this.tbTenHK.PlaceholderText = "";
     this.tbTenHK.SelectedText = "";
     this.tbTenHK.ShadowDecoration.Parent = this.tbTenHK;
     this.tbTenHK.ShadowDecoration.Shadow = new System.Windows.Forms.Padding(0, 0, 3, 3);
     this.tbTenHK.Size = new System.Drawing.Size(229, 36);
     this.tbTenHK.TabIndex = 0;
     //
     // tbCMND
     //
     this.tbCMND.BackColor = System.Drawing.Color.Transparent;
     this.tbCMND.BorderRadius = 6;
     this.tbCMND.Cursor = System.Windows.Forms.Cursors.IBeam;
     this.tbCMND.DefaultText = "";
     this.tbCMND.DisabledState.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(208)))), ((int)(((byte)(208)))), ((int)(((byte)(208)))));
     this.tbCMND.DisabledState.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(226)))), ((int)(((byte)(226)))), ((int)(((byte)(226)))));
     this.tbCMND.DisabledState.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(138)))), ((int)(((byte)(138)))), ((int)(((byte)(138)))));
     this.tbCMND.DisabledState.Parent = this.tbCMND;
     this.tbCMND.DisabledState.PlaceholderForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(138)))), ((int)(((byte)(138)))), ((int)(((byte)(138)))));
     this.tbCMND.FocusedState.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(94)))), ((int)(((byte)(148)))), ((int)(((byte)(255)))));
     this.tbCMND.FocusedState.Parent = this.tbCMND;
     this.tbCMND.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.tbCMND.HoverState.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(94)))), ((int)(((byte)(148)))), ((int)(((byte)(255)))));
     this.tbCMND.HoverState.Parent = this.tbCMND;
     this.tbCMND.Location = new System.Drawing.Point(152, 198);
     this.tbCMND.Margin = new System.Windows.Forms.Padding(6, 7, 6, 7);
     this.tbCMND.Name = "tbCMND";
     this.tbCMND.PasswordChar = '\0';
     this.tbCMND.PlaceholderText = "";
     this.tbCMND.SelectedText = "";
     this.tbCMND.ShadowDecoration.Parent = this.tbCMND;
     this.tbCMND.ShadowDecoration.Shadow = new System.Windows.Forms.Padding(0, 0, 3, 3);
     this.tbCMND.Size = new System.Drawing.Size(229, 36);
     this.tbCMND.TabIndex = 1;
     //
     // tbDienThoai
     //
     this.tbDienThoai.BackColor = System.Drawing.Color.Transparent;
     this.tbDienThoai.BorderRadius = 6;
     this.tbDienThoai.Cursor = System.Windows.Forms.Cursors.IBeam;
     this.tbDienThoai.DefaultText = "";
     this.tbDienThoai.DisabledState.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(208)))), ((int)(((byte)(208)))), ((int)(((byte)(208)))));
     this.tbDienThoai.DisabledState.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(226)))), ((int)(((byte)(226)))), ((int)(((byte)(226)))));
     this.tbDienThoai.DisabledState.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(138)))), ((int)(((byte)(138)))), ((int)(((byte)(138)))));
     this.tbDienThoai.DisabledState.Parent = this.tbDienThoai;
     this.tbDienThoai.DisabledState.PlaceholderForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(138)))), ((int)(((byte)(138)))), ((int)(((byte)(138)))));
     this.tbDienThoai.FocusedState.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(94)))), ((int)(((byte)(148)))), ((int)(((byte)(255)))));
     this.tbDienThoai.FocusedState.Parent = this.tbDienThoai;
     this.tbDienThoai.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.tbDienThoai.HoverState.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(94)))), ((int)(((byte)(148)))), ((int)(((byte)(255)))));
     this.tbDienThoai.HoverState.Parent = this.tbDienThoai;
     this.tbDienThoai.Location = new System.Drawing.Point(508, 198);
     this.tbDienThoai.Margin = new System.Windows.Forms.Padding(6, 7, 6, 7);
     this.tbDienThoai.Name = "tbDienThoai";
     this.tbDienThoai.PasswordChar = '\0';
     this.tbDienThoai.PlaceholderText = "";
     this.tbDienThoai.SelectedText = "";
     this.tbDienThoai.ShadowDecoration.Parent = this.tbDienThoai;
     this.tbDienThoai.ShadowDecoration.Shadow = new System.Windows.Forms.Padding(0, 0, 3, 3);
     this.tbDienThoai.Size = new System.Drawing.Size(221, 36);
     this.tbDienThoai.TabIndex = 2;
     //
     // cbMaCB
     //
     this.cbMaCB.Animated = true;
     this.cbMaCB.BackColor = System.Drawing.Color.Transparent;
     this.cbMaCB.BorderRadius = 6;
     this.cbMaCB.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed;
     this.cbMaCB.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.cbMaCB.FocusedColor = System.Drawing.Color.FromArgb(((int)(((byte)(94)))), ((int)(((byte)(148)))), ((int)(((byte)(255)))));
     this.cbMaCB.FocusedState.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(94)))), ((int)(((byte)(148)))), ((int)(((byte)(255)))));
     this.cbMaCB.FocusedState.Parent = this.cbMaCB;
     this.cbMaCB.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.cbMaCB.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(68)))), ((int)(((byte)(88)))), ((int)(((byte)(112)))));
     this.cbMaCB.HoverState.Parent = this.cbMaCB;
     this.cbMaCB.IntegralHeight = false;
     this.cbMaCB.ItemHeight = 30;
     this.cbMaCB.ItemsAppearance.Parent = this.cbMaCB;
     this.cbMaCB.Location = new System.Drawing.Point(152, 86);
     this.cbMaCB.Name = "cbMaCB";
     this.cbMaCB.ShadowDecoration.Parent = this.cbMaCB;
     this.cbMaCB.ShadowDecoration.Shadow = new System.Windows.Forms.Padding(0, 0, 3, 3);
     this.cbMaCB.Size = new System.Drawing.Size(229, 36);
     this.cbMaCB.TabIndex = 2;
     this.cbMaCB.TabStop = false;
     this.cbMaCB.SelectedIndexChanged += new System.EventHandler(this.cbMaCB_SelectedIndexChanged);
     //
     // cbHangVe
     //
     this.cbHangVe.Animated = true;
     this.cbHangVe.BackColor = System.Drawing.Color.Transparent;
     this.cbHangVe.BorderRadius = 6;
     this.cbHangVe.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed;
     this.cbHangVe.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.cbHangVe.FocusedColor = System.Drawing.Color.FromArgb(((int)(((byte)(94)))), ((int)(((byte)(148)))), ((int)(((byte)(255)))));
     this.cbHangVe.FocusedState.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(94)))), ((int)(((byte)(148)))), ((int)(((byte)(255)))));
     this.cbHangVe.FocusedState.Parent = this.cbHangVe;
     this.cbHangVe.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.cbHangVe.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(68)))), ((int)(((byte)(88)))), ((int)(((byte)(112)))));
     this.cbHangVe.HoverState.Parent = this.cbHangVe;
     this.cbHangVe.IntegralHeight = false;
     this.cbHangVe.ItemHeight = 30;
     this.cbHangVe.ItemsAppearance.Parent = this.cbHangVe;
     this.cbHangVe.Location = new System.Drawing.Point(508, 142);
     this.cbHangVe.Name = "cbHangVe";
     this.cbHangVe.ShadowDecoration.Parent = this.cbHangVe;
     this.cbHangVe.ShadowDecoration.Shadow = new System.Windows.Forms.Padding(0, 0, 3, 3);
     this.cbHangVe.Size = new System.Drawing.Size(220, 36);
     this.cbHangVe.TabIndex = 2;
     this.cbHangVe.TabStop = false;
     this.cbHangVe.SelectedIndexChanged += new System.EventHandler(this.cbHangVe_SelectedIndexChanged);
     //
     // lbDienThoai
     //
     this.lbDienThoai.AutoSize = true;
     this.lbDienThoai.Font = new System.Drawing.Font("Segoe UI Semibold", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.lbDienThoai.Location = new System.Drawing.Point(390, 206);
     this.lbDienThoai.Name = "lbDienThoai";
     this.lbDienThoai.Size = new System.Drawing.Size(115, 28);
     this.lbDienThoai.TabIndex = 0;
     this.lbDienThoai.Text = "Điện Thoại:";
     //
     // lbHangVe
     //
     this.lbHangVe.AutoSize = true;
     this.lbHangVe.Font = new System.Drawing.Font("Segoe UI Semibold", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.lbHangVe.Location = new System.Drawing.Point(390, 150);
     this.lbHangVe.Name = "lbHangVe";
     this.lbHangVe.Size = new System.Drawing.Size(95, 28);
     this.lbHangVe.TabIndex = 0;
     this.lbHangVe.Text = "Hạng Vé:";
     //
     // lbGiaVe
     //
     this.lbGiaVe.AutoSize = true;
     this.lbGiaVe.Font = new System.Drawing.Font("Segoe UI Semibold", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.lbGiaVe.Location = new System.Drawing.Point(390, 38);
     this.lbGiaVe.Name = "lbGiaVe";
     this.lbGiaVe.Size = new System.Drawing.Size(75, 28);
     this.lbGiaVe.TabIndex = 0;
     this.lbGiaVe.Text = "Giá Vé:";
     //
     // lbCMND
     //
     this.lbCMND.AutoSize = true;
     this.lbCMND.Font = new System.Drawing.Font("Segoe UI Semibold", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.lbCMND.Location = new System.Drawing.Point(13, 206);
     this.lbCMND.Name = "lbCMND";
     this.lbCMND.Size = new System.Drawing.Size(76, 28);
     this.lbCMND.TabIndex = 0;
     this.lbCMND.Text = "CMND:";
     //
     // lbTenHK
     //
     this.lbTenHK.AutoSize = true;
     this.lbTenHK.Font = new System.Drawing.Font("Segoe UI Semibold", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.lbTenHK.Location = new System.Drawing.Point(13, 150);
     this.lbTenHK.Name = "lbTenHK";
     this.lbTenHK.Size = new System.Drawing.Size(127, 28);
     this.lbTenHK.TabIndex = 0;
     this.lbTenHK.Text = "Hành Khách:";
     //
     // lbNgayGio
     //
     this.lbNgayGio.AutoSize = true;
     this.lbNgayGio.Font = new System.Drawing.Font("Segoe UI Semibold", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.lbNgayGio.Location = new System.Drawing.Point(390, 94);
     this.lbNgayGio.Name = "lbNgayGio";
     this.lbNgayGio.Size = new System.Drawing.Size(115, 28);
     this.lbNgayGio.TabIndex = 0;
     this.lbNgayGio.Text = "Ngày - Giờ:";
     //
     // lbMaCB
     //
     this.lbMaCB.AutoSize = true;
     this.lbMaCB.Font = new System.Drawing.Font("Segoe UI Semibold", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.lbMaCB.Location = new System.Drawing.Point(13, 94);
     this.lbMaCB.Name = "lbMaCB";
     this.lbMaCB.Size = new System.Drawing.Size(158, 28);
     this.lbMaCB.TabIndex = 0;
     this.lbMaCB.Text = "Mã Chuyến Bay:";
     //
     // lbMaVe
     //
     this.lbMaVe.AutoSize = true;
     this.lbMaVe.Font = new System.Drawing.Font("Segoe UI Semibold", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.lbMaVe.Location = new System.Drawing.Point(13, 38);
     this.lbMaVe.Name = "lbMaVe";
     this.lbMaVe.Size = new System.Drawing.Size(74, 28);
     this.lbMaVe.TabIndex = 0;
     this.lbMaVe.Text = "Mã Vé:";
     //
     // btnCancel
     //
     this.btnCancel.BackColor = System.Drawing.Color.Transparent;
     this.btnCancel.BorderRadius = 6;
     this.btnCancel.CheckedState.Parent = this.btnCancel;
     this.btnCancel.CustomImages.Parent = this.btnCancel;
     this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
     this.btnCancel.Font = new System.Drawing.Font("Segoe UI", 9F);
     this.btnCancel.ForeColor = System.Drawing.Color.White;
     this.btnCancel.HoverState.Parent = this.btnCancel;
     this.btnCancel.Location = new System.Drawing.Point(491, 341);
     this.btnCancel.Name = "btnCancel";
     this.btnCancel.ShadowDecoration.Enabled = true;
     this.btnCancel.ShadowDecoration.Parent = this.btnCancel;
     this.btnCancel.ShadowDecoration.Shadow = new System.Windows.Forms.Padding(0, 0, 3, 3);
     this.btnCancel.Size = new System.Drawing.Size(180, 45);
     this.btnCancel.TabIndex = 1;
     this.btnCancel.TabStop = false;
     this.btnCancel.Text = "CANCEL";
     this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click);
     //
     // guna2DragControl1
     //
     this.guna2DragControl1.TargetControl = this.gunaLabel1;
     //
     // btnOK
     //
     this.btnOK.AllowDrop = true;
     this.btnOK.BackColor = System.Drawing.Color.Transparent;
     this.btnOK.BorderRadius = 6;
     this.btnOK.CheckedState.Parent = this.btnOK;
     this.btnOK.CustomImages.Parent = this.btnOK;
     this.btnOK.DialogResult = System.Windows.Forms.DialogResult.OK;
     this.btnOK.FillColor = System.Drawing.SystemColors.ActiveBorder;
     this.btnOK.Font = new System.Drawing.Font("Segoe UI", 9F);
     this.btnOK.ForeColor = System.Drawing.Color.White;
     this.btnOK.HoverState.Parent = this.btnOK;
     this.btnOK.Location = new System.Drawing.Point(130, 341);
     this.btnOK.Name = "btnOK";
     this.btnOK.ShadowDecoration.Enabled = true;
     this.btnOK.ShadowDecoration.Parent = this.btnOK;
     this.btnOK.ShadowDecoration.Shadow = new System.Windows.Forms.Padding(0, 0, 3, 3);
     this.btnOK.Size = new System.Drawing.Size(180, 45);
     this.btnOK.TabIndex = 0;
     this.btnOK.TabStop = false;
     this.btnOK.Text = "OK";
     this.btnOK.Click += new System.EventHandler(this.btnOK_Click);
     //
     // button1
     //
     this.button1.DialogResult = System.Windows.Forms.DialogResult.OK;
     this.button1.Location = new System.Drawing.Point(0, 0);
     this.button1.Name = "button1";
     this.button1.Size = new System.Drawing.Size(75, 23);
     this.button1.TabIndex = 5;
     this.button1.TabStop = false;
     this.button1.Text = "button1";
     this.button1.UseVisualStyleBackColor = true;
     //
     // button2
     //
     this.button2.DialogResult = System.Windows.Forms.DialogResult.Cancel;
     this.button2.Location = new System.Drawing.Point(363, 219);
     this.button2.Name = "button2";
     this.button2.Size = new System.Drawing.Size(75, 23);
     this.button2.TabIndex = 8;
     this.button2.TabStop = false;
     this.button2.Text = "button2";
     this.button2.UseVisualStyleBackColor = true;
     //
     // lbNoti
     //
     this.lbNoti.AutoSize = true;
     this.lbNoti.BackColor = System.Drawing.Color.Transparent;
     this.lbNoti.Font = new System.Drawing.Font("Segoe UI", 9F);
     this.lbNoti.ForeColor = System.Drawing.Color.Red;
     this.lbNoti.Location = new System.Drawing.Point(20, 305);
     this.lbNoti.Name = "lbNoti";
     this.lbNoti.Size = new System.Drawing.Size(0, 20);
     this.lbNoti.TabIndex = 9;
     this.lbNoti.Visible = false;
     //
     // frmVeEditing
     //
     this.AcceptButton = this.btnOK;
     this.AutoScaleDimensions = new System.Drawing.SizeF(11F, 28F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.CancelButton = this.btnCancel;
     this.ClientSize = new System.Drawing.Size(800, 404);
     this.Controls.Add(this.lbNoti);
     this.Controls.Add(this.btnCancel);
     this.Controls.Add(this.btnOK);
     this.Controls.Add(this.panel2);
     this.Controls.Add(this.panel1);
     this.Controls.Add(this.button1);
     this.Controls.Add(this.button2);
     this.Font = new System.Drawing.Font("Segoe UI Semibold", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
     this.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
     this.Name = "frmVeEditing";
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
     this.Text = "v";
     this.Load += new System.EventHandler(this.frmVeEditing_Load);
     this.panel1.ResumeLayout(false);
     this.panel2.ResumeLayout(false);
     this.panel2.PerformLayout();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
        private void load_Button()
        {
            /* cnn.Open();
            *  string sql = "select * from PICTURE_BUTTON ";
            *  SqlCommand com = new SqlCommand(sql, cnn); //bat dau truy van
            *  com.CommandType = CommandType.Text;
            *  SqlDataAdapter da = new SqlDataAdapter(com); //chuyen du lieu ve
            *  DataTable dt = new DataTable(); //tạo một kho ảo để lưu trữ dữ liệu
            *  da.Fill(dt);
            *
            *  int n = dt.Rows.Count - 1;
            *  MemoryStream ms = new MemoryStream((byte[])dt.Rows[n]["ENCODE"]);
            *  Bitmap a = new Bitmap(Image.FromStream(ms));
            *  a.MakeTransparent();
            *  string name = dt.Rows[n]["NAME"].ToString();
            *  string isSourse = dt.Rows[n]["IS_SOURSE"].ToString();
            *
            *  Guna.UI2.WinForms.Guna2Button but = new Guna.UI2.WinForms.Guna2Button();
            *  buttonImage b = new buttonImage();
            *  but.BackColor = Color.Transparent;
            *  but = b.createButton(name, a, "0");
            *  but.MouseClick += new MouseEventHandler(TabChose_Click);
            *
            *  flowLayoutPanel1.Controls.Add(but);
            *
            *
            *
            *  cnn.Close();*/
            listButon.Clear();
            numberOfButton = 0;
            numberOfPanel  = 0;

            string path = "./Group";
            string name = "";

            listNameButton = Directory.GetFiles(path);
            foreach (string f in listNameButton)
            {
                name = Path.GetFileName(f);
                name = name.Remove(name.Length - 4, 4);


                Guna.UI2.WinForms.Guna2Button but = new Guna.UI2.WinForms.Guna2Button();
                buttonImage b = new buttonImage();
                but.BackColor = Color.Transparent;
                Bitmap a;
                using (var stream = File.Open(f, FileMode.Open))
                {
                    a = new Bitmap(Image.FromStream(stream));
                    stream.Close();
                }


                but             = b.createButton(name, a, "1");
                but.MouseClick += new MouseEventHandler(TabChose_Click);
                numberOfButton++;
                listButon.Add(but);
            }
            path           = "./GroupInsert";
            listNameButton = Directory.GetFiles(path);
            foreach (string f in listNameButton)
            {
                name = Path.GetFileName(f);
                name = name.Remove(name.Length - 4, 4);


                Guna.UI2.WinForms.Guna2Button but = new Guna.UI2.WinForms.Guna2Button();
                buttonImage b = new buttonImage();
                but.BackColor = Color.Transparent;
                Bitmap a;
                using (var stream = File.Open(f, FileMode.Open))
                {
                    a = new Bitmap(Image.FromStream(stream));
                    stream.Close();
                }



                but             = b.createButton(name, a, "0");
                but.MouseClick += new MouseEventHandler(TabChose_Click);
                numberOfButton++;
                listButon.Add(but);
            }



            if (numberOfButton % 32 != 0)
            {
                numberOfPanel = numberOfButton / 32 + 1;
            }
            else if (numberOfButton % 32 == 0)
            {
                numberOfPanel = numberOfButton / 32;
            }

            listFlowPanel = new FlowLayoutPanel[numberOfPanel];
            for (int i = 0; i < numberOfPanel; i++)
            {
                listFlowPanel[i]           = new FlowLayoutPanel();
                listFlowPanel[i].BackColor = Color.Transparent;
                listFlowPanel[i].Location  = new Point(110, 120);
                listFlowPanel[i].Size      = new Size(480, 250);
                listFlowPanel[i].Click    += new System.EventHandler(this.flowLayoutPanel1_Click);
                listFlowPanel[i].BringToFront();
                listFlowPanel[i].Visible = true;
                this.Controls.Add(listFlowPanel[i]);
            }
            int numberInPanel = 0;

            currentPanel = 0;
            for (int i = 0; i < numberOfButton; i++)
            {
                if (numberInPanel == 32)
                {
                    numberInPanel = 0;
                    currentPanel++;
                }
                else
                {
                    numberInPanel++;
                }
                listFlowPanel[currentPanel].Controls.Add(listButon[i]);
            }
        }
Esempio n. 23
0
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Window));
     this.guna2BorderlessForm1 = new Guna.UI2.WinForms.Guna2BorderlessForm(this.components);
     this.TitleBar             = new Guna.UI2.WinForms.Guna2Panel();
     this.MinimizeButton       = new Guna.UI2.WinForms.Guna2Button();
     this.CloseButton          = new Guna.UI2.WinForms.Guna2Button();
     this.TitleText            = new System.Windows.Forms.Label();
     this.label13      = new System.Windows.Forms.Label();
     this.label14      = new System.Windows.Forms.Label();
     this.StatusText   = new System.Windows.Forms.Label();
     this.AttachButton = new Guna.UI2.WinForms.Guna2GradientButton();
     this.TitleBar.SuspendLayout();
     this.SuspendLayout();
     //
     // guna2BorderlessForm1
     //
     this.guna2BorderlessForm1.AnimateWindow      = true;
     this.guna2BorderlessForm1.AnimationInterval  = 200;
     this.guna2BorderlessForm1.BorderRadius       = 20;
     this.guna2BorderlessForm1.ContainerControl   = this;
     this.guna2BorderlessForm1.DockForm           = false;
     this.guna2BorderlessForm1.DockIndicatorColor = System.Drawing.Color.FromArgb(((int)(((byte)(12)))), ((int)(((byte)(12)))), ((int)(((byte)(12)))));
     this.guna2BorderlessForm1.ResizeForm         = false;
     //
     // TitleBar
     //
     this.TitleBar.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(24)))), ((int)(((byte)(24)))), ((int)(((byte)(24)))));
     this.TitleBar.Controls.Add(this.MinimizeButton);
     this.TitleBar.Controls.Add(this.CloseButton);
     this.TitleBar.Controls.Add(this.TitleText);
     this.TitleBar.Location = new System.Drawing.Point(0, 0);
     this.TitleBar.Name     = "TitleBar";
     this.TitleBar.ShadowDecoration.Parent = this.TitleBar;
     this.TitleBar.Size     = new System.Drawing.Size(700, 30);
     this.TitleBar.TabIndex = 0;
     //
     // MinimizeButton
     //
     this.MinimizeButton.BackColor           = System.Drawing.Color.Transparent;
     this.MinimizeButton.CheckedState.Parent = this.MinimizeButton;
     this.MinimizeButton.CustomImages.Parent = this.MinimizeButton;
     this.MinimizeButton.FillColor           = System.Drawing.Color.Transparent;
     this.MinimizeButton.Font                     = new System.Drawing.Font("Segoe UI", 9F);
     this.MinimizeButton.ForeColor                = System.Drawing.Color.White;
     this.MinimizeButton.HoverState.Parent        = this.MinimizeButton;
     this.MinimizeButton.Image                    = ((System.Drawing.Image)(resources.GetObject("MinimizeButton.Image")));
     this.MinimizeButton.ImageSize                = new System.Drawing.Size(40, 40);
     this.MinimizeButton.Location                 = new System.Drawing.Point(640, 0);
     this.MinimizeButton.Name                     = "MinimizeButton";
     this.MinimizeButton.ShadowDecoration.Parent  = this.MinimizeButton;
     this.MinimizeButton.Size                     = new System.Drawing.Size(30, 30);
     this.MinimizeButton.TabIndex                 = 2;
     this.MinimizeButton.UseTransparentBackground = true;
     this.MinimizeButton.Click                   += new System.EventHandler(this.MinimizeButton_Click);
     //
     // CloseButton
     //
     this.CloseButton.BackColor           = System.Drawing.Color.Transparent;
     this.CloseButton.CheckedState.Parent = this.CloseButton;
     this.CloseButton.CustomImages.Parent = this.CloseButton;
     this.CloseButton.FillColor           = System.Drawing.Color.Transparent;
     this.CloseButton.Font                     = new System.Drawing.Font("Segoe UI", 9F);
     this.CloseButton.ForeColor                = System.Drawing.Color.White;
     this.CloseButton.HoverState.Parent        = this.CloseButton;
     this.CloseButton.Image                    = ((System.Drawing.Image)(resources.GetObject("CloseButton.Image")));
     this.CloseButton.ImageSize                = new System.Drawing.Size(40, 40);
     this.CloseButton.Location                 = new System.Drawing.Point(670, 0);
     this.CloseButton.Name                     = "CloseButton";
     this.CloseButton.ShadowDecoration.Parent  = this.CloseButton;
     this.CloseButton.Size                     = new System.Drawing.Size(30, 30);
     this.CloseButton.TabIndex                 = 1;
     this.CloseButton.UseTransparentBackground = true;
     this.CloseButton.Click                   += new System.EventHandler(this.CloseButton_Click);
     //
     // TitleText
     //
     this.TitleText.BackColor = System.Drawing.Color.Transparent;
     this.TitleText.Font      = new System.Drawing.Font("Gotham SSm Black", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.TitleText.ForeColor = System.Drawing.Color.DimGray;
     this.TitleText.Location  = new System.Drawing.Point(0, 0);
     this.TitleText.Name      = "TitleText";
     this.TitleText.Size      = new System.Drawing.Size(196, 30);
     this.TitleText.TabIndex  = 1;
     this.TitleText.Text      = "Aurora Client";
     this.TitleText.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // label13
     //
     this.label13.BackColor = System.Drawing.Color.Transparent;
     this.label13.Font      = new System.Drawing.Font("Gotham SSm Black", 24F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label13.ForeColor = System.Drawing.Color.White;
     this.label13.Location  = new System.Drawing.Point(0, 83);
     this.label13.Name      = "label13";
     this.label13.Size      = new System.Drawing.Size(700, 55);
     this.label13.TabIndex  = 3;
     this.label13.Text      = "Welcome!";
     this.label13.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // label14
     //
     this.label14.BackColor = System.Drawing.Color.Transparent;
     this.label14.Font      = new System.Drawing.Font("Gotham SSm Black", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label14.ForeColor = System.Drawing.Color.DimGray;
     this.label14.Location  = new System.Drawing.Point(0, 138);
     this.label14.Name      = "label14";
     this.label14.Size      = new System.Drawing.Size(700, 27);
     this.label14.TabIndex  = 4;
     this.label14.Text      = "Clicking \"Attach\" will attach to Roblox.";
     this.label14.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // StatusText
     //
     this.StatusText.BackColor = System.Drawing.Color.Transparent;
     this.StatusText.Font      = new System.Drawing.Font("Gotham SSm Black", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.StatusText.ForeColor = System.Drawing.Color.DimGray;
     this.StatusText.Location  = new System.Drawing.Point(0, 249);
     this.StatusText.Name      = "StatusText";
     this.StatusText.Size      = new System.Drawing.Size(700, 27);
     this.StatusText.TabIndex  = 6;
     this.StatusText.Text      = "Status: You haven\'t clicked Attach yet!";
     this.StatusText.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     this.StatusText.Click    += new System.EventHandler(this.StatusText_Click);
     //
     // AttachButton
     //
     this.AttachButton.Animated            = true;
     this.AttachButton.AutoRoundedCorners  = true;
     this.AttachButton.BorderRadius        = 10;
     this.AttachButton.CheckedState.Parent = this.AttachButton;
     this.AttachButton.CustomImages.Parent = this.AttachButton;
     this.AttachButton.FillColor           = System.Drawing.Color.LightSeaGreen;
     this.AttachButton.FillColor2          = System.Drawing.Color.MediumSpringGreen;
     this.AttachButton.Font                    = new System.Drawing.Font("Gotham SSm Black", 18F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.AttachButton.ForeColor               = System.Drawing.Color.White;
     this.AttachButton.HoverState.FillColor    = System.Drawing.Color.MediumSpringGreen;
     this.AttachButton.HoverState.FillColor2   = System.Drawing.Color.LightSeaGreen;
     this.AttachButton.HoverState.Parent       = this.AttachButton;
     this.AttachButton.Location                = new System.Drawing.Point(260, 201);
     this.AttachButton.Name                    = "AttachButton";
     this.AttachButton.ShadowDecoration.Parent = this.AttachButton;
     this.AttachButton.Size                    = new System.Drawing.Size(180, 45);
     this.AttachButton.TabIndex                = 7;
     this.AttachButton.Text                    = "Attach";
     this.AttachButton.Click                  += new System.EventHandler(this.AttachButton_Click_1);
     //
     // Window
     //
     this.BackColor  = System.Drawing.Color.FromArgb(((int)(((byte)(12)))), ((int)(((byte)(12)))), ((int)(((byte)(12)))));
     this.ClientSize = new System.Drawing.Size(700, 400);
     this.Controls.Add(this.AttachButton);
     this.Controls.Add(this.StatusText);
     this.Controls.Add(this.label14);
     this.Controls.Add(this.label13);
     this.Controls.Add(this.TitleBar);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
     this.Name            = "Window";
     this.TitleBar.ResumeLayout(false);
     this.ResumeLayout(false);
 }