Exemplo n.º 1
0
        private void DoneButton_Click(object sender, EventArgs e)
        {
            if (MetroFramework.MetroMessageBox.Show(this, "Are you sure task is done? This action is irrevocable and it will remove the task from the list..", "Proceed?", MessageBoxButtons.YesNo, MessageBoxIcon.Information) == DialogResult.Yes)
            {
                Bunifu.Framework.UI.BunifuImageButton selecteddonebutton = (Bunifu.Framework.UI.BunifuImageButton)sender;
                int getRowDone         = TaskTable.GetRow(selecteddonebutton);
                var getPlayPauseButton = (Bunifu.Framework.UI.BunifuImageButton)TaskTable.GetControlFromPosition(2, getRowDone);
                if (getPlayPauseButton.Tag.ToString() == "Played")
                {
                    PlayPauseButton_Click(getPlayPauseButton, e);
                }
                using (var conn = new MySqlConnection(ConnectionString))
                {
                    conn.Open();
                    using (MySqlCommand cmd = conn.CreateCommand())
                    {
                        var getTaskLabelText = (Label)TaskTable.GetControlFromPosition(0, getRowDone);

                        cmd.CommandText = "UPDATE `tbl_tasks` SET `isDone` = '1', `timestampUpdated` = NOW() WHERE `taskName` = @taskname AND `userID` = @userid AND `isDone` = '0' LIMIT 1;";
                        cmd.Parameters.AddWithValue("@userid", SetUser.Text);
                        cmd.Parameters.AddWithValue("@taskname", getTaskLabelText.Text);
                        if (cmd.ExecuteNonQuery() != 0)
                        {
                            getPlayPauseButton.Tag   = "Stopped";
                            getPlayPauseButton.Image = new Bitmap(Properties.Resources.CircledPlay_34px);
                            TaskTable.RowStyles[getRowDone].Height = 0F;
                        }
                        else
                        {
                            MetroFramework.MetroMessageBox.Show(this, "Cannot set the task to done! Please check db connection and try again!", "Error!", MessageBoxButtons.OK, MessageBoxIcon.Error);
                        }
                    }
                }
            }
        }
Exemplo n.º 2
0
 public void loadPakageSticker(Bunifu.Framework.UI.BunifuImageButton btnKun)
 {
     btnKun.Top  = pakage_model.Top;
     btnKun.Left = pLeft;
     pLeft       = pLeft + btnKun.Width + pMarginRight;
     panel2.Controls.Add(btnKun);
     panel2.VerticalScroll.Value = panel2.VerticalScroll.Maximum;
 }
Exemplo n.º 3
0
        private void pakage_click(object sender, EventArgs e)
        {
            Bunifu.Framework.UI.BunifuImageButton btnKun = sender as Bunifu.Framework.UI.BunifuImageButton;
            int kIndex = panel2.Controls.IndexOf(btnKun);

            loadStickerInPanel(klp.ListPakage[kIndex].PakageName, klp.ListPakage[kIndex].PakageExt,
                               klp.ListPakage[kIndex].PakageFrom, klp.ListPakage[kIndex].PakageTo);
        }
Exemplo n.º 4
0
        private void Btn_image_Click(object sender, EventArgs e)
        {
            Bunifu.Framework.UI.BunifuImageButton _image = sender as Bunifu.Framework.UI.BunifuImageButton;
            tag = Convert.ToInt32(_image.Tag);
            BackgroundWorker bw = new BackgroundWorker();

            bw.DoWork += Bw_DoWork;
            bw.RunWorkerAsync();
        }
Exemplo n.º 5
0
        public Panel_Sticker()
        {
            InitializeComponent();

            panel2.Controls.Clear();

            kPakage kp1 = new kPakage("heohong", "png", 1, 16);

            klp.ListPakage.Add(kp1);
            kPakage kp2 = new kPakage("Luci_&_Daisy", "png", 1, 25);

            klp.ListPakage.Add(kp2);
            kPakage kp3 = new kPakage("foxie", "png", 1, 19);

            klp.ListPakage.Add(kp3);
            kPakage kp4 = new kPakage("quick_answer", "png", 1, 7);

            klp.ListPakage.Add(kp4);
            kPakage kp5 = new kPakage("toto_dog", "png", 1, 20);

            klp.ListPakage.Add(kp5);
            kPakage kp6 = new kPakage("tonton_friends", "png", 1, 20);

            klp.ListPakage.Add(kp6);
            kPakage kp7 = new kPakage("pikalong", "png", 1, 14);

            klp.ListPakage.Add(kp7);
            kPakage kp8 = new kPakage("tien_len_vn", "png", 1, 10);

            klp.ListPakage.Add(kp8);
            kPakage kp9 = new kPakage("rong_vang", "png", 1, 19);

            klp.ListPakage.Add(kp9);
            kPakage kp10 = new kPakage("dev", "png", 1, 3);

            klp.ListPakage.Add(kp10);
            kPakage kp11 = new kPakage("tiger", "png", 1, 15);

            klp.ListPakage.Add(kp11);

            for (int i = 0; i < klp.ListPakage.Count; i++)
            {
                Bunifu.Framework.UI.BunifuImageButton btnKun = new Bunifu.Framework.UI.BunifuImageButton();
                btnKun.Width         = 45;
                btnKun.Height        = 45;
                btnKun.Click        += pakage_click;
                btnKun.BackColor     = Color.Transparent;
                btnKun.ImageLocation = "../../Resources/" + klp.ListPakage[i].PakageName + "_000.png";
                loadPakageSticker(btnKun);
            }


            loadStickerInPanel(klp.ListPakage[0].PakageName, klp.ListPakage[0].PakageExt,
                               klp.ListPakage[0].PakageFrom, klp.ListPakage[0].PakageTo);
        }
Exemplo n.º 6
0
        void btnAvatar_Click(object sender, EventArgs e)
        {
            links_server.Clear();
            //Lấy vị trí film trong list
            Bunifu.Framework.UI.BunifuImageButton imageButton = sender as Bunifu.Framework.UI.BunifuImageButton;
            tag = Convert.ToInt32(imageButton.Tag.ToString());
            BackgroundWorker bw = new BackgroundWorker();

            bw.DoWork += Bw_DoWork;
            bw.RunWorkerAsync();
        }
Exemplo n.º 7
0
 private void initImage()
 {
     drag           = new Bunifu.Framework.UI.BunifuImageButton();
     drag.BackColor = Color.Transparent;
     drag.Image     = new Bitmap(Schedule.Properties.Resources.icons8_drag_black, SIZE_IMAGE, SIZE_IMAGE);
     drag.Size      = new System.Drawing.Size(SIZE_IMAGE, SIZE_IMAGE);
     drag.SizeMode  = PictureBoxSizeMode.Zoom;
     drag.Location  = new Point(v_panel.Width - SIZE_IMAGE, SIZE_IMAGE);
     v_panel.Controls.Add(drag);
     drag.BringToFront();
     drag.Hide();
 }
Exemplo n.º 8
0
 public static void imgbtnIN(Form frm, Bunifu.Framework.UI.BunifuImageButton ctrl, bool text)
 {
     if (frm.InvokeRequired)
     {
         imgbuttonin d = new imgbuttonin(imgbtnIN);
         frm.Invoke(d, new object[] { frm, ctrl, text });
     }
     else
     {
         ctrl.Visible = text;
     }
 }
Exemplo n.º 9
0
 void actualDrive_Click(object sender, EventArgs e, AlphaBlendTextBox Path, string name, bool ready)
 {
     Bunifu.Framework.UI.BunifuImageButton buttonThatWasClicked = (Bunifu.Framework.UI.BunifuImageButton)sender;
     if (ready)
     {
         Path.Text = name;
     }
     else
     {
         CustomException exception = new CustomException("Drive is not ready!");
     }
 }
Exemplo n.º 10
0
        private void QuickSurvey()
        {
            int sFactor = 20;

            ExtendedPanel surveyPanel = new ExtendedPanel();

            surveyPanel.Width     = 500;
            surveyPanel.Height    = 300;
            surveyPanel.Location  = new Point((BasePanel.Width / 2) - surveyPanel.Width / 2, BasePanel.Height / 2 - surveyPanel.Height / 2);
            surveyPanel.BackColor = Color.Tomato;
            surveyPanel.Opacity   = 50;

            int factor = -35;

            Bunifu.Framework.UI.BunifuImageButton smile = new Bunifu.Framework.UI.BunifuImageButton();
            smile.Image     = Image.FromFile(Environment.CurrentDirectory + @"\Icons\happy-480.png");
            smile.BackColor = Color.Transparent;
            smile.SizeMode  = PictureBoxSizeMode.Zoom;
            smile.Zoom      = 0;
            smile.Width     = 100;
            smile.Height    = 100;
            smile.Location  = new Point((surveyPanel.Width / 3) - (smile.Width - factor), surveyPanel.Top + 10);

            Bunifu.Framework.UI.BunifuImageButton medium = new Bunifu.Framework.UI.BunifuImageButton();
            medium.Image     = Image.FromFile(Environment.CurrentDirectory + @"\Icons\happy-480.png");
            medium.BackColor = Color.Transparent;
            medium.SizeMode  = PictureBoxSizeMode.Zoom;
            medium.Zoom      = 0;
            medium.Width     = 100;
            medium.Height    = 100;
            medium.Location  = new Point((surveyPanel.Width / 3) * 2 - (medium.Width - factor), surveyPanel.Top + 10);

            Bunifu.Framework.UI.BunifuImageButton sad = new Bunifu.Framework.UI.BunifuImageButton();
            sad.Image     = Image.FromFile(Environment.CurrentDirectory + @"\Icons\happy-480.png");
            sad.BackColor = Color.Transparent;
            sad.SizeMode  = PictureBoxSizeMode.Zoom;
            sad.Zoom      = 0;
            sad.Width     = 100;
            sad.Height    = 100;
            sad.Location  = new Point((surveyPanel.Width / 3) * 3 - (sad.Width - factor), surveyPanel.Top + 10);


            surveyPanel.Controls.Add(smile);
            surveyPanel.Controls.Add(medium);
            surveyPanel.Controls.Add(sad);

            BasePanel.Controls.Add(surveyPanel);
        }
Exemplo n.º 11
0
        public void getDrives(Panel DrivePanel, AlphaBlendTextBox Path)
        {
            DriveInfo[] drives     = DriveInfo.GetDrives();
            int         startWidth = 5;
            int         driverID   = 1;

            foreach (DriveInfo driver in drives)
            {
                Bunifu.Framework.UI.BunifuImageButton actualDrive = new Bunifu.Framework.UI.BunifuImageButton();
                actualDrive.Parent    = DrivePanel;
                actualDrive.Name      = "actualDrive" + driverID;
                actualDrive.BackColor = Color.Transparent;
                actualDrive.Width     = 27;
                actualDrive.Height    = 27;
                actualDrive.Location  = new Point(startWidth, 2);
                actualDrive.Zoom      = 0;
                actualDrive.Cursor    = Cursors.Hand;
                actualDrive.Click    += new EventHandler((sender, e) => actualDrive_Click(sender, e, Path, driver.Name, driver.IsReady));

                Label DriveName = new Label();
                DriveName.Width     = 35;
                DriveName.Height    = 27;
                DriveName.Text      = driver.Name;
                DriveName.ForeColor = Color.White;
                DriveName.BackColor = Color.Transparent;
                DriveName.Location  = new Point(startWidth + actualDrive.Width + 5, 10);



                if (driver.DriveType.ToString() == "Fixed")
                {
                    actualDrive.Image = Properties.Resources.mini_hdd;
                }
                if (driver.DriveType.ToString() == "Removable")
                {
                    actualDrive.Image = Properties.Resources.mini_usb;
                }
                if (driver.DriveType.ToString() == "CDRom")
                {
                    actualDrive.Image = Properties.Resources.mini_cd;
                }
                driverID++;
                startWidth += 67;
                DrivePanel.Controls.Add(actualDrive);
                DrivePanel.Controls.Add(DriveName);
            }
        }
Exemplo n.º 12
0
        private void btnControles_Click(object sender, EventArgs e)
        {
            Bunifu.Framework.UI.BunifuImageButton btn = sender as Bunifu.Framework.UI.BunifuImageButton;

            if (btn.Name == btnCerrarFormulario.Name)
            {
                Ventanas.Cerrar cerrar = new Ventanas.Cerrar();
                cerrar.PasarDatos(this);
                cerrar.iniciarFormulario(1);

                cerrar.ShowDialog();
            }
            if (btn.Name == btnMinimizarFormulario.Name)
            {
                aplicacion.Controles(2);
            }
        }
Exemplo n.º 13
0
        public static void button_MouseMove(object sender, MouseEventArgs e)
        {
            Bunifu.Framework.UI.BunifuImageButton b = (Bunifu.Framework.UI.BunifuImageButton)sender;
            switch (b.Name)
            {
            case "buttonMinimize":
                b.BackColor = Color.White;
                break;

            case "buttonClose":
                b.BackColor = Color.Red;
                break;

            default:
                b.BackColor = Color.FromArgb(175, 255, 197);
                break;
            }
        }
Exemplo n.º 14
0
        public void addcamera(object sock, int count)
        {
            Socket _client = sock as Socket;

            if (this.InvokeRequired)
            {
                this.BeginInvoke((MethodInvoker) delegate()
                {
                    Bunifu.Framework.UI.BunifuImageButton[] _cameraPicture = new Bunifu.Framework.UI.BunifuImageButton[count];
                    MetroFramework.Controls.MetroButton[] _camerabutton    = new MetroFramework.Controls.MetroButton[count];
                    int brh = 0;


                    for (int i = 0; i < count; i++)
                    {
                        if (camFlowPanel.Controls.Contains(_cameraPicture[i]))
                        {
                            var controltoremove     = camFlowPanel.Controls[i];
                            controltoremove.Visible = false;
                            camFlowPanel.Controls.Remove(controltoremove);
                        }
                        _cameraPicture[i]           = new Bunifu.Framework.UI.BunifuImageButton();
                        _cameraPicture[i].BackColor = Color.White;
                        _cameraPicture[i].Image     = Properties.Resources.webcam;
                        _cameraPicture[i].Location  = new Point(953, 95 + brh);
                        _cameraPicture[i].Size      = new Size(180, 120);
                        _cameraPicture[i].Name      = _client.RemoteEndPoint.ToString();
                        _cameraPicture[i].Zoom      = 0;

                        _camerabutton[i]        = new MetroFramework.Controls.MetroButton();
                        _camerabutton[i].Click += new EventHandler(selectCameraOnClick);

                        _camerabutton[i].Text = i.ToString() + "_" + _client.RemoteEndPoint.ToString();

                        _camerabutton[i].Name = "but" + i;
                        _camerabutton[i].Size = new Size(144, 18);
                        _camerabutton[i].Dock = DockStyle.Bottom;
                        _cameraPicture[i].Controls.Add(_camerabutton[i]);
                        camFlowPanel.Size = new Size(200, 120);
                        camFlowPanel.Controls.Add(_cameraPicture[i]);
                    }
                });
            }
        }
Exemplo n.º 15
0
        public void addDisplay(object sock, int count)
        {
            Socket _client = sock as Socket;

            if (this.InvokeRequired)
            {
                this.BeginInvoke((MethodInvoker) delegate()
                {
                    Bunifu.Framework.UI.BunifuImageButton[] displayList = new Bunifu.Framework.UI.BunifuImageButton[count];
                    MetroFramework.Controls.MetroButton[] butns         = new MetroFramework.Controls.MetroButton[count];
                    int brh = 0;


                    for (int i = 0; i < count; i++)
                    {
                        if (rdpFlowPanel.Controls.Contains(displayList[i]))
                        {
                            var controltoremove     = flowLayoutPanel1.Controls[i];
                            controltoremove.Visible = false;
                            rdpFlowPanel.Controls.Remove(controltoremove);
                        }
                        displayList[i]           = new Bunifu.Framework.UI.BunifuImageButton();
                        displayList[i].BackColor = Color.White;
                        displayList[i].Image     = Properties.Resources.rdpDisplay;
                        displayList[i].Location  = new Point(953, 95 + brh);
                        displayList[i].Size      = new Size(200, 120);
                        displayList[i].Name      = _client.RemoteEndPoint.ToString();
                        displayList[i].Zoom      = 0;

                        butns[i]        = new MetroFramework.Controls.MetroButton();
                        butns[i].Click += new EventHandler(selectMonitor_onClick);
                        int id          = i;/*1 + i;*/
                        butns[i].Text   = id.ToString() + "_" + _client.RemoteEndPoint.ToString();
                        butns[i].Name   = "but" + i;
                        butns[i].Size   = new Size(144, 18);
                        butns[i].Dock   = DockStyle.Bottom;
                        displayList[i].Controls.Add(butns[i]);
                        rdpFlowPanel.Size = new Size(200, 120);
                        rdpFlowPanel.Controls.Add(displayList[i]);
                    }
                });
            }
        }
Exemplo n.º 16
0
        public void LoadComic()
        {
            string    sChuoiTruyVan = "EXEC [dbo].[LayStoreTheoMaTrenHistory] @username";
            DataTable dt            = DataProvider.Instance.ExecuteQuery(sChuoiTruyVan, new object[] { s2 });

            //string sChuoiTruyVan1 = "EXEC [dbo].[LayIMGTheoStoreIDTrenStore] @storeid , @username ";
            //DataTable dt1 = DataProvider.Instance.ExecuteQuery(sChuoiTruyVan1,new object[] { dt.Rows[0]["store_id"].ToString(),s2});
            if (dt != null && dt.Rows.Count > 0)        //Nếu datatable hợp lệ và có giá trị
            {
                for (int i = 0; i < dt.Rows.Count; i++) //Duyệt datatable và đưa vào list đối tượng NHANVIEN_DTO
                {
                    Panel pnl = new Panel();
                    pnl.Width  = 130;
                    pnl.Height = 240;
                    Bunifu.Framework.UI.BunifuImageButton btnIMG = new Bunifu.Framework.UI.BunifuImageButton();
                    Bitmap bm = new Bitmap(dt.Rows[i]["img"].ToString());
                    btnIMG.Image  = bm;
                    btnIMG.Width  = 130;
                    btnIMG.Height = 200;
                    btnIMG.Tag    = dt.Rows[i]["store_id"].ToString();
                    btnIMG.Click += new EventHandler(DynamicClick);
                    //txtTag.Text =Convert.ToString( btnIMG.Tag);
                    Panel pnlComic = new Panel();
                    btnIMG.BackColor = Color.White;
                    pnl.Controls.Add(btnIMG);
                    Label lbl = new Label();
                    lbl.AutoSize  = false;
                    lbl.TextAlign = ContentAlignment.MiddleCenter;
                    lbl.Width     = 130;
                    lbl.Height    = 40;
                    lbl.Text      = dt.Rows[i]["store_name"].ToString();
                    lbl.Location  = new Point(0, btnIMG.Height);
                    //lbl.Font.Name = "Segou IU";
                    lbl.Font = new Font("Segou IU", 8, FontStyle.Bold);
                    pnl.Controls.Add(lbl);

                    fLayOutHistory.Controls.Add(pnl);
                }
            }
        }
Exemplo n.º 17
0
        private void TV_Click(object sender, EventArgs e)
        {
            Bunifu.Framework.UI.BunifuImageButton a = sender as Bunifu.Framework.UI.BunifuImageButton;
            int b = Convert.ToInt32(a.Tag.ToString());
            BackgroundWorker bw = new BackgroundWorker();

            bw.DoWork += (_s, _e) =>
            {
                Invoke(new Action(
                           () =>
                {
                    Movie_module.FrmVLC frmVlc = new Movie_module.FrmVLC(listLink[b]);
                    frmVlc.lbl_name_video.Text = "Bạn đang xem kênh " + imgButton[b].Name.ToString();
                    //frmVlc.time_movie.Enabled = false;
                    //frmVlc.time_movie.MaximumValue = 100;
                    frmVlc.btn_Pause.Visible    = false;
                    frmVlc.btn_play.Visible     = false;
                    frmVlc.btn_Stop.Visible     = false;
                    frmVlc.btn_play_vlc.Visible = false;
                    frmVlc.Show();
                }));
            };
            bw.RunWorkerAsync();
        }
Exemplo n.º 18
0
        public void LoadComic()
        {
            string    sChuoiTruyVan = "EXEC dbo.LayStoreLonHon3Sao";
            DataTable dt            = DataProvider.Instance.ExecuteQuery(sChuoiTruyVan);

            if (dt != null && dt.Rows.Count > 0)        //Nếu datatable hợp lệ và có giá trị
            {
                for (int i = 0; i < dt.Rows.Count; i++) //Duyệt datatable và đưa vào list đối tượng NHANVIEN_DTO
                {
                    Panel pnl = new Panel();
                    pnl.Width  = 130;
                    pnl.Height = 240;
                    Bunifu.Framework.UI.BunifuImageButton btnIMG = new Bunifu.Framework.UI.BunifuImageButton();
                    Bitmap bm = new Bitmap(dt.Rows[i]["img"].ToString());
                    btnIMG.Image  = bm;
                    btnIMG.Width  = 130;
                    btnIMG.Height = 200;
                    btnIMG.Tag    = dt.Rows[i]["store_id"].ToString();
                    btnIMG.Click += new EventHandler(DynamicClick);
                    Panel pnlComic = new Panel();
                    btnIMG.BackColor = Color.White;
                    pnl.Controls.Add(btnIMG);
                    Label lbl = new Label();
                    lbl.AutoSize  = false;
                    lbl.TextAlign = ContentAlignment.MiddleCenter;
                    lbl.Width     = 130;
                    lbl.Height    = 40;
                    lbl.Text      = dt.Rows[i]["store_name"].ToString();
                    lbl.Location  = new Point(0, btnIMG.Height);
                    lbl.Font      = new Font("Segou IU", 8, FontStyle.Bold);
                    pnl.Controls.Add(lbl);

                    fLayoutPopular.Controls.Add(pnl);
                }
            }
        }
 /// <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();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(doctorlogin));
     this.bunifuElipse1 = new Bunifu.Framework.UI.BunifuElipse(this.components);
     this.bunifuGradientPanel1 = new Bunifu.Framework.UI.BunifuGradientPanel();
     this.bunifuCustomLabel2 = new Bunifu.Framework.UI.BunifuCustomLabel();
     this.bunifuCustomLabel1 = new Bunifu.Framework.UI.BunifuCustomLabel();
     this.dctrRegBtn = new Bunifu.Framework.UI.BunifuImageButton();
     this.dctrloginBtn = new Bunifu.Framework.UI.BunifuImageButton();
     this.toolTip1 = new System.Windows.Forms.ToolTip(this.components);
     this.bunifuGradientPanel1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.dctrRegBtn)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.dctrloginBtn)).BeginInit();
     this.SuspendLayout();
     //
     // bunifuElipse1
     //
     this.bunifuElipse1.ElipseRadius = 5;
     this.bunifuElipse1.TargetControl = this;
     //
     // bunifuGradientPanel1
     //
     this.bunifuGradientPanel1.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("bunifuGradientPanel1.BackgroundImage")));
     this.bunifuGradientPanel1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
     this.bunifuGradientPanel1.Controls.Add(this.bunifuCustomLabel2);
     this.bunifuGradientPanel1.Controls.Add(this.bunifuCustomLabel1);
     this.bunifuGradientPanel1.Controls.Add(this.dctrRegBtn);
     this.bunifuGradientPanel1.Controls.Add(this.dctrloginBtn);
     this.bunifuGradientPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
     this.bunifuGradientPanel1.GradientBottomLeft = System.Drawing.Color.MidnightBlue;
     this.bunifuGradientPanel1.GradientBottomRight = System.Drawing.Color.Firebrick;
     this.bunifuGradientPanel1.GradientTopLeft = System.Drawing.Color.MidnightBlue;
     this.bunifuGradientPanel1.GradientTopRight = System.Drawing.Color.Firebrick;
     this.bunifuGradientPanel1.Location = new System.Drawing.Point(0, 0);
     this.bunifuGradientPanel1.Name = "bunifuGradientPanel1";
     this.bunifuGradientPanel1.Quality = 10;
     this.bunifuGradientPanel1.Size = new System.Drawing.Size(797, 491);
     this.bunifuGradientPanel1.TabIndex = 0;
     //
     // bunifuCustomLabel2
     //
     this.bunifuCustomLabel2.AutoSize = true;
     this.bunifuCustomLabel2.BackColor = System.Drawing.Color.Transparent;
     this.bunifuCustomLabel2.Font = new System.Drawing.Font("Perpetua Titling MT", 18F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic))), System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.bunifuCustomLabel2.ForeColor = System.Drawing.Color.Gainsboro;
     this.bunifuCustomLabel2.Location = new System.Drawing.Point(361, 285);
     this.bunifuCustomLabel2.Name = "bunifuCustomLabel2";
     this.bunifuCustomLabel2.Size = new System.Drawing.Size(117, 29);
     this.bunifuCustomLabel2.TabIndex = 3;
     this.bunifuCustomLabel2.Text = "SIGN UP";
     //
     // bunifuCustomLabel1
     //
     this.bunifuCustomLabel1.AutoSize = true;
     this.bunifuCustomLabel1.BackColor = System.Drawing.Color.Transparent;
     this.bunifuCustomLabel1.Font = new System.Drawing.Font("Perpetua Titling MT", 18F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic))), System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.bunifuCustomLabel1.ForeColor = System.Drawing.Color.Gainsboro;
     this.bunifuCustomLabel1.Location = new System.Drawing.Point(134, 285);
     this.bunifuCustomLabel1.Name = "bunifuCustomLabel1";
     this.bunifuCustomLabel1.Size = new System.Drawing.Size(96, 29);
     this.bunifuCustomLabel1.TabIndex = 2;
     this.bunifuCustomLabel1.Text = "LOGIN";
     //
     // dctrRegBtn
     //
     this.dctrRegBtn.BackColor = System.Drawing.Color.Transparent;
     this.dctrRegBtn.Image = global::pmed.Properties.Resources.icons8_sign_up_50;
     this.dctrRegBtn.ImageActive = null;
     this.dctrRegBtn.Location = new System.Drawing.Point(366, 171);
     this.dctrRegBtn.Name = "dctrRegBtn";
     this.dctrRegBtn.Size = new System.Drawing.Size(118, 99);
     this.dctrRegBtn.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
     this.dctrRegBtn.TabIndex = 1;
     this.dctrRegBtn.TabStop = false;
     this.toolTip1.SetToolTip(this.dctrRegBtn, "Create account");
     this.dctrRegBtn.Zoom = 10;
     this.dctrRegBtn.Click += new System.EventHandler(this.dctrRegBtn_Click);
     //
     // dctrloginBtn
     //
     this.dctrloginBtn.BackColor = System.Drawing.Color.Transparent;
     this.dctrloginBtn.Image = global::pmed.Properties.Resources.icons8_lock_80;
     this.dctrloginBtn.ImageActive = null;
     this.dctrloginBtn.Location = new System.Drawing.Point(139, 171);
     this.dctrloginBtn.Name = "dctrloginBtn";
     this.dctrloginBtn.Size = new System.Drawing.Size(111, 99);
     this.dctrloginBtn.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
     this.dctrloginBtn.TabIndex = 0;
     this.dctrloginBtn.TabStop = false;
     this.toolTip1.SetToolTip(this.dctrloginBtn, "For registered users..");
     this.dctrloginBtn.Zoom = 10;
     this.dctrloginBtn.Click += new System.EventHandler(this.dctrloginBtn_Click);
     //
     // toolTip1
     //
     this.toolTip1.ToolTipIcon = System.Windows.Forms.ToolTipIcon.Info;
     this.toolTip1.ToolTipTitle = "Click!!";
     //
     // doctorlogin
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize = new System.Drawing.Size(797, 491);
     this.Controls.Add(this.bunifuGradientPanel1);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
     this.Name = "doctorlogin";
     this.Text = "doctorlogin";
     this.bunifuGradientPanel1.ResumeLayout(false);
     this.bunifuGradientPanel1.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.dctrRegBtn)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.dctrloginBtn)).EndInit();
     this.ResumeLayout(false);
 }
Exemplo n.º 20
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form13));
     this.label6 = new System.Windows.Forms.Label();
     this.bunifuImageButton2 = new Bunifu.Framework.UI.BunifuImageButton();
     this.label5 = new System.Windows.Forms.Label();
     this.label4 = new System.Windows.Forms.Label();
     this.bunifuImageButton3 = new Bunifu.Framework.UI.BunifuImageButton();
     this.textBox3 = new System.Windows.Forms.TextBox();
     this.bunifuFlatButton1 = new Bunifu.Framework.UI.BunifuFlatButton();
     this.textBox2 = new System.Windows.Forms.TextBox();
     this.label3 = new System.Windows.Forms.Label();
     this.textBox1 = new System.Windows.Forms.TextBox();
     this.label2 = new System.Windows.Forms.Label();
     this.bunifuImageButton1 = new Bunifu.Framework.UI.BunifuImageButton();
     this.panel1 = new System.Windows.Forms.Panel();
     this.label1 = new System.Windows.Forms.Label();
     ((System.ComponentModel.ISupportInitialize)(this.bunifuImageButton2)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.bunifuImageButton3)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.bunifuImageButton1)).BeginInit();
     this.panel1.SuspendLayout();
     this.SuspendLayout();
     //
     // label6
     //
     this.label6.AutoSize = true;
     this.label6.Location = new System.Drawing.Point(63, 377);
     this.label6.Name = "label6";
     this.label6.Size = new System.Drawing.Size(42, 13);
     this.label6.TabIndex = 30;
     this.label6.Text = "TOTAL";
     //
     // bunifuImageButton2
     //
     this.bunifuImageButton2.BackColor = System.Drawing.Color.SeaGreen;
     this.bunifuImageButton2.Image = ((System.Drawing.Image)(resources.GetObject("bunifuImageButton2.Image")));
     this.bunifuImageButton2.ImageActive = null;
     this.bunifuImageButton2.Location = new System.Drawing.Point(488, 320);
     this.bunifuImageButton2.Name = "bunifuImageButton2";
     this.bunifuImageButton2.Size = new System.Drawing.Size(185, 179);
     this.bunifuImageButton2.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
     this.bunifuImageButton2.TabIndex = 29;
     this.bunifuImageButton2.TabStop = false;
     this.bunifuImageButton2.Zoom = 10;
     this.bunifuImageButton2.Click += new System.EventHandler(this.bunifuImageButton2_Click);
     //
     // label5
     //
     this.label5.AutoSize = true;
     this.label5.Font = new System.Drawing.Font("Franklin Gothic Book", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label5.Location = new System.Drawing.Point(51, 121);
     this.label5.Name = "label5";
     this.label5.Size = new System.Drawing.Size(356, 51);
     this.label5.TabIndex = 28;
     this.label5.Text = "se emplea por lo general para ceñir, apretar o \r\ncomprimir fragmentos o piezas pe" +
     "queñas, \r\neste era común en el ámbito industrial y también en ña marina.";
     //
     // label4
     //
     this.label4.AutoSize = true;
     this.label4.Font = new System.Drawing.Font("Castellar", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label4.Location = new System.Drawing.Point(50, 63);
     this.label4.Name = "label4";
     this.label4.Size = new System.Drawing.Size(121, 19);
     this.label4.TabIndex = 27;
     this.label4.Text = "ENTENALLAS";
     //
     // bunifuImageButton3
     //
     this.bunifuImageButton3.BackColor = System.Drawing.Color.SeaGreen;
     this.bunifuImageButton3.Image = ((System.Drawing.Image)(resources.GetObject("bunifuImageButton3.Image")));
     this.bunifuImageButton3.ImageActive = null;
     this.bunifuImageButton3.Location = new System.Drawing.Point(447, 53);
     this.bunifuImageButton3.Name = "bunifuImageButton3";
     this.bunifuImageButton3.Size = new System.Drawing.Size(266, 233);
     this.bunifuImageButton3.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
     this.bunifuImageButton3.TabIndex = 26;
     this.bunifuImageButton3.TabStop = false;
     this.bunifuImageButton3.Zoom = 10;
     //
     // textBox3
     //
     this.textBox3.Location = new System.Drawing.Point(66, 393);
     this.textBox3.Name = "textBox3";
     this.textBox3.Size = new System.Drawing.Size(100, 20);
     this.textBox3.TabIndex = 25;
     //
     // bunifuFlatButton1
     //
     this.bunifuFlatButton1.Activecolor = System.Drawing.Color.FromArgb(((int)(((byte)(46)))), ((int)(((byte)(139)))), ((int)(((byte)(87)))));
     this.bunifuFlatButton1.BackColor = System.Drawing.Color.Yellow;
     this.bunifuFlatButton1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
     this.bunifuFlatButton1.BorderRadius = 0;
     this.bunifuFlatButton1.ButtonText = "TOTAL";
     this.bunifuFlatButton1.Cursor = System.Windows.Forms.Cursors.Hand;
     this.bunifuFlatButton1.DisabledColor = System.Drawing.Color.Gray;
     this.bunifuFlatButton1.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.bunifuFlatButton1.ForeColor = System.Drawing.SystemColors.ActiveCaptionText;
     this.bunifuFlatButton1.Iconcolor = System.Drawing.Color.Transparent;
     this.bunifuFlatButton1.Iconimage = ((System.Drawing.Image)(resources.GetObject("bunifuFlatButton1.Iconimage")));
     this.bunifuFlatButton1.Iconimage_right = null;
     this.bunifuFlatButton1.Iconimage_right_Selected = null;
     this.bunifuFlatButton1.Iconimage_Selected = null;
     this.bunifuFlatButton1.IconMarginLeft = 0;
     this.bunifuFlatButton1.IconMarginRight = 0;
     this.bunifuFlatButton1.IconRightVisible = true;
     this.bunifuFlatButton1.IconRightZoom = 0D;
     this.bunifuFlatButton1.IconVisible = true;
     this.bunifuFlatButton1.IconZoom = 90D;
     this.bunifuFlatButton1.IsTab = false;
     this.bunifuFlatButton1.Location = new System.Drawing.Point(66, 451);
     this.bunifuFlatButton1.Name = "bunifuFlatButton1";
     this.bunifuFlatButton1.Normalcolor = System.Drawing.Color.Yellow;
     this.bunifuFlatButton1.OnHovercolor = System.Drawing.Color.Yellow;
     this.bunifuFlatButton1.OnHoverTextColor = System.Drawing.Color.White;
     this.bunifuFlatButton1.selected = false;
     this.bunifuFlatButton1.Size = new System.Drawing.Size(135, 48);
     this.bunifuFlatButton1.TabIndex = 24;
     this.bunifuFlatButton1.Text = "TOTAL";
     this.bunifuFlatButton1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     this.bunifuFlatButton1.Textcolor = System.Drawing.Color.White;
     this.bunifuFlatButton1.TextFont = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.bunifuFlatButton1.Click += new System.EventHandler(this.bunifuFlatButton1_Click);
     //
     // textBox2
     //
     this.textBox2.Location = new System.Drawing.Point(127, 320);
     this.textBox2.Name = "textBox2";
     this.textBox2.Size = new System.Drawing.Size(88, 20);
     this.textBox2.TabIndex = 23;
     this.textBox2.Text = "25";
     //
     // label3
     //
     this.label3.AutoSize = true;
     this.label3.Location = new System.Drawing.Point(63, 323);
     this.label3.Name = "label3";
     this.label3.Size = new System.Drawing.Size(64, 13);
     this.label3.TabIndex = 22;
     this.label3.Text = "PRECIO Q: ";
     //
     // textBox1
     //
     this.textBox1.Location = new System.Drawing.Point(127, 272);
     this.textBox1.Name = "textBox1";
     this.textBox1.Size = new System.Drawing.Size(88, 20);
     this.textBox1.TabIndex = 21;
     //
     // label2
     //
     this.label2.AutoSize = true;
     this.label2.Location = new System.Drawing.Point(63, 275);
     this.label2.Name = "label2";
     this.label2.Size = new System.Drawing.Size(68, 13);
     this.label2.TabIndex = 20;
     this.label2.Text = "CANTIDAD: ";
     //
     // bunifuImageButton1
     //
     this.bunifuImageButton1.BackColor = System.Drawing.SystemColors.Highlight;
     this.bunifuImageButton1.Image = ((System.Drawing.Image)(resources.GetObject("bunifuImageButton1.Image")));
     this.bunifuImageButton1.ImageActive = null;
     this.bunifuImageButton1.Location = new System.Drawing.Point(764, 0);
     this.bunifuImageButton1.Name = "bunifuImageButton1";
     this.bunifuImageButton1.Size = new System.Drawing.Size(35, 35);
     this.bunifuImageButton1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
     this.bunifuImageButton1.TabIndex = 19;
     this.bunifuImageButton1.TabStop = false;
     this.bunifuImageButton1.Zoom = 10;
     this.bunifuImageButton1.Click += new System.EventHandler(this.bunifuImageButton1_Click);
     //
     // panel1
     //
     this.panel1.BackColor = System.Drawing.SystemColors.Highlight;
     this.panel1.Controls.Add(this.label1);
     this.panel1.Location = new System.Drawing.Point(0, 0);
     this.panel1.Name = "panel1";
     this.panel1.Size = new System.Drawing.Size(800, 35);
     this.panel1.TabIndex = 18;
     //
     // label1
     //
     this.label1.AutoSize = true;
     this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label1.ForeColor = System.Drawing.Color.DarkTurquoise;
     this.label1.Location = new System.Drawing.Point(300, 0);
     this.label1.Name = "label1";
     this.label1.Size = new System.Drawing.Size(217, 24);
     this.label1.TabIndex = 0;
     this.label1.Text = "BODEGA ORIGINAL´S";
     //
     // Form13
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize = new System.Drawing.Size(800, 600);
     this.Controls.Add(this.label6);
     this.Controls.Add(this.bunifuImageButton2);
     this.Controls.Add(this.label5);
     this.Controls.Add(this.label4);
     this.Controls.Add(this.bunifuImageButton3);
     this.Controls.Add(this.textBox3);
     this.Controls.Add(this.bunifuFlatButton1);
     this.Controls.Add(this.textBox2);
     this.Controls.Add(this.label3);
     this.Controls.Add(this.textBox1);
     this.Controls.Add(this.label2);
     this.Controls.Add(this.bunifuImageButton1);
     this.Controls.Add(this.panel1);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
     this.Name = "Form13";
     this.Text = "Form13";
     ((System.ComponentModel.ISupportInitialize)(this.bunifuImageButton2)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.bunifuImageButton3)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.bunifuImageButton1)).EndInit();
     this.panel1.ResumeLayout(false);
     this.panel1.PerformLayout();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
 /// <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.pakagename = new Bunifu.Framework.UI.BunifuMaterialTextbox();
     this.timer1 = new System.Windows.Forms.Timer(this.components);
     this.slidePic = new System.Windows.Forms.PictureBox();
     this.bunifuImageButton1 = new Bunifu.Framework.UI.BunifuImageButton();
     this.fname_txt = new Bunifu.Framework.UI.BunifuCustomLabel();
     this.ID_combo = new System.Windows.Forms.ComboBox();
     this.circularButton1 = new InventorySystem.supportiveClasses.CircularButton();
     ((System.ComponentModel.ISupportInitialize)(this.slidePic)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.bunifuImageButton1)).BeginInit();
     this.SuspendLayout();
     //
     // pakagename
     //
     this.pakagename.BackColor = System.Drawing.SystemColors.InactiveCaptionText;
     this.pakagename.Cursor = System.Windows.Forms.Cursors.IBeam;
     this.pakagename.Font = new System.Drawing.Font("Century Gothic", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.pakagename.ForeColor = System.Drawing.Color.White;
     this.pakagename.HintForeColor = System.Drawing.Color.Empty;
     this.pakagename.HintText = "";
     this.pakagename.isPassword = false;
     this.pakagename.LineFocusedColor = System.Drawing.Color.Blue;
     this.pakagename.LineIdleColor = System.Drawing.Color.FromArgb(((int)(((byte)(194)))), ((int)(((byte)(138)))), ((int)(((byte)(48)))));
     this.pakagename.LineMouseHoverColor = System.Drawing.Color.Blue;
     this.pakagename.LineThickness = 4;
     this.pakagename.Location = new System.Drawing.Point(440, 6);
     this.pakagename.Margin = new System.Windows.Forms.Padding(6, 6, 6, 6);
     this.pakagename.Name = "pakagename";
     this.pakagename.Size = new System.Drawing.Size(568, 47);
     this.pakagename.TabIndex = 0;
     this.pakagename.Text = "bunifuMaterialTextbox1";
     this.pakagename.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
     //
     // timer1
     //
     this.timer1.Enabled = true;
     this.timer1.Interval = 2000;
     this.timer1.Tick += new System.EventHandler(this.timer1_Tick);
     //
     // slidePic
     //
     this.slidePic.Image = global::InventorySystem.Properties.Resources.RB;
     this.slidePic.Location = new System.Drawing.Point(79, 186);
     this.slidePic.Name = "slidePic";
     this.slidePic.Size = new System.Drawing.Size(802, 535);
     this.slidePic.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
     this.slidePic.TabIndex = 1;
     this.slidePic.TabStop = false;
     //
     // bunifuImageButton1
     //
     this.bunifuImageButton1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(223)))), ((int)(((byte)(171)))), ((int)(((byte)(68)))));
     this.bunifuImageButton1.Image = global::InventorySystem.Properties.Resources.kisspng_brand_logo_black_and_white_triangle_arrow_symbol_5a76c6d1df2c13_8388288415177335859141;
     this.bunifuImageButton1.ImageActive = null;
     this.bunifuImageButton1.Location = new System.Drawing.Point(13, 24);
     this.bunifuImageButton1.Name = "bunifuImageButton1";
     this.bunifuImageButton1.Size = new System.Drawing.Size(71, 29);
     this.bunifuImageButton1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
     this.bunifuImageButton1.TabIndex = 2;
     this.bunifuImageButton1.TabStop = false;
     this.bunifuImageButton1.Zoom = 10;
     this.bunifuImageButton1.Click += new System.EventHandler(this.bunifuImageButton1_Click_1);
     //
     // fname_txt
     //
     this.fname_txt.AutoSize = true;
     this.fname_txt.BackColor = System.Drawing.Color.White;
     this.fname_txt.ForeColor = System.Drawing.Color.Black;
     this.fname_txt.Location = new System.Drawing.Point(1284, 122);
     this.fname_txt.Name = "fname_txt";
     this.fname_txt.Size = new System.Drawing.Size(36, 13);
     this.fname_txt.TabIndex = 12;
     this.fname_txt.Text = "CusID";
     //
     // ID_combo
     //
     this.ID_combo.FormattingEnabled = true;
     this.ID_combo.Location = new System.Drawing.Point(1287, 169);
     this.ID_combo.Name = "ID_combo";
     this.ID_combo.Size = new System.Drawing.Size(172, 21);
     this.ID_combo.TabIndex = 13;
     this.ID_combo.SelectedIndexChanged += new System.EventHandler(this.ID_combo_SelectedIndexChanged_1);
     //
     // circularButton1
     //
     this.circularButton1.AccessibleRole = System.Windows.Forms.AccessibleRole.None;
     this.circularButton1.AllowDrop = true;
     this.circularButton1.Location = new System.Drawing.Point(1101, 403);
     this.circularButton1.Name = "circularButton1";
     this.circularButton1.Size = new System.Drawing.Size(75, 23);
     this.circularButton1.TabIndex = 14;
     this.circularButton1.Text = "circularButton1";
     this.circularButton1.UseVisualStyleBackColor = true;
     this.circularButton1.Click += new System.EventHandler(this.circularButton1_Click);
     //
     // package_wedd_1
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.Controls.Add(this.circularButton1);
     this.Controls.Add(this.ID_combo);
     this.Controls.Add(this.fname_txt);
     this.Controls.Add(this.bunifuImageButton1);
     this.Controls.Add(this.slidePic);
     this.Controls.Add(this.pakagename);
     this.Name = "package_wedd_1";
     this.Size = new System.Drawing.Size(1489, 816);
     ((System.ComponentModel.ISupportInitialize)(this.slidePic)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.bunifuImageButton1)).EndInit();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
Exemplo n.º 22
0
        private void DynamicCreateTask(string rowtoname, string texttodisplay, string isHaveSavedID = "", string elapsedTime = "00:00:00")
        {
            ContextMenu cm = new ContextMenu();

            cm.MenuItems.Add("Edit", new EventHandler(Edit_Click));
            cm.MenuItems.Add("Delete", new EventHandler(Delete_Click));

            var TaskLabel = new System.Windows.Forms.Label()
            {
                Name      = "TaskName" + rowtoname,
                Text      = texttodisplay,
                Tag       = isHaveSavedID,
                ForeColor = Color.White,
                Font      = new System.Drawing.Font("Century Gothic", 11, FontStyle.Regular),
                BackColor = System.Drawing.Color.FromArgb(8, 11, 46),
                Cursor    = Cursors.Default,
                Anchor    = AnchorStyles.Left,
                AutoSize  = true
            };

            TaskLabel.ContextMenu = cm;
            //TaskLabel.Click += TaskLabel_Click;

            var TimerLabel = new System.Windows.Forms.Label()
            {
                Name      = "TimerLabel" + rowtoname,
                Text      = elapsedTime,
                Tag       = elapsedTime,
                ForeColor = Color.White,
                Font      = new System.Drawing.Font("Century Gothic", 10, FontStyle.Regular),
                BackColor = System.Drawing.Color.FromArgb(8, 11, 46),
                Cursor    = Cursors.Default,
                Anchor    = AnchorStyles.None,
                AutoSize  = true
            };

            var PlayPauseButton = new Bunifu.Framework.UI.BunifuImageButton()
            {
                Name      = "PlayPauseButton" + rowtoname,
                Tag       = "Stopped",
                ForeColor = Color.White,
                BackColor = System.Drawing.Color.FromArgb(8, 11, 46),
                Cursor    = Cursors.Hand,
                Anchor    = AnchorStyles.None,
                Image     = new Bitmap(Properties.Resources.CircledPlay_34px),
                Size      = new Size(34, 34)
            };

            PlayPauseButton.Click += PlayPauseButton_Click;

            var DoneButton = new Bunifu.Framework.UI.BunifuImageButton()
            {
                Name      = "DoneButton" + rowtoname,
                Tag       = isHaveSavedID,
                ForeColor = Color.White,
                BackColor = System.Drawing.Color.FromArgb(8, 11, 46),
                Cursor    = Cursors.Hand,
                Anchor    = AnchorStyles.None,
                Image     = new Bitmap(Properties.Resources.Ok_34px),
                Size      = new Size(34, 34)
            };

            DoneButton.Click += DoneButton_Click;

            int tableToPlaceIndex = TaskTable.RowCount - 2;

            TaskTable.Controls.Add(TaskLabel, 0, tableToPlaceIndex);
            TaskTable.Controls.Add(TimerLabel, 1, tableToPlaceIndex);
            TaskTable.Controls.Add(PlayPauseButton, 2, tableToPlaceIndex);
            TaskTable.Controls.Add(DoneButton, 3, tableToPlaceIndex);
            TaskTable.RowCount = TaskTable.RowCount + 1;
            TaskTable.RowStyles.Add(new RowStyle(SizeType.Absolute, 50F));
        }
Exemplo n.º 23
0
        private void PlayPauseButton_Click(object sender, EventArgs e)
        {
            Bunifu.Framework.UI.BunifuImageButton selectedplaypausebutton = (Bunifu.Framework.UI.BunifuImageButton)sender;

            if (selectedplaypausebutton.Tag.ToString() == "Stopped")
            {
                try
                {
                    using (var conn = new MySqlConnection(ConnectionString))
                    {
                        conn.Open();
                        using (MySqlCommand cmd = conn.CreateCommand())
                        {
                            int getRowPlayPause  = TaskTable.GetRow(selectedplaypausebutton);
                            var getTaskLabelText = (Label)TaskTable.GetControlFromPosition(0, getRowPlayPause);

                            cmd.CommandText = "INSERT INTO `tbl_taskslog` (`taskID`,`timestampStarted`) VALUES ((SELECT `taskID` FROM `tbl_tasks` WHERE `taskName` = @taskname AND `userID` = @userid),NOW());";
                            cmd.Parameters.AddWithValue("@userid", SetUser.Text);
                            cmd.Parameters.AddWithValue("@taskname", getTaskLabelText.Text);
                            if (cmd.ExecuteNonQuery() != 0)
                            {
                                selectedplaypausebutton.Tag   = "Played";
                                selectedplaypausebutton.Image = new Bitmap(Properties.Resources.PauseButtonLIGHt_34px);
                            }
                            else
                            {
                                MetroFramework.MetroMessageBox.Show(this, "Cannot resume tasks! Please check db connection and try again!", "Error!", MessageBoxButtons.OK, MessageBoxIcon.Error);
                            }
                        }
                    }
                }
                catch (Exception ex)
                {
                    MetroFramework.MetroMessageBox.Show(this, ex.ToString(), "Error!", MessageBoxButtons.OK, MessageBoxIcon.Error);
                }
            }
            else if (selectedplaypausebutton.Tag.ToString() == "Played")
            {
                try
                {
                    using (var conn = new MySqlConnection(ConnectionString))
                    {
                        conn.Open();
                        using (MySqlCommand cmd = conn.CreateCommand())
                        {
                            int getRowPlayPause  = TaskTable.GetRow(selectedplaypausebutton);
                            var getTaskLabelText = (Label)TaskTable.GetControlFromPosition(0, getRowPlayPause);
                            var SessionTime      = (Label)TaskTable.GetControlFromPosition(1, getRowPlayPause);

                            cmd.CommandText = "UPDATE `tbl_taskslog` SET `tasklogTime` = @tasklogtime, `timestampEnded` = NOW() WHERE `tasklogTime` IS NULL AND `timestampEnded` IS NULL AND `taskID` = (SELECT `taskID` FROM `tbl_tasks` WHERE `taskName` = @taskname AND `userID` = @userid);";
                            cmd.Parameters.AddWithValue("@tasklogtime", TimeSpan.Parse(SessionTime.Text).Subtract(TimeSpan.Parse(SessionTime.Tag.ToString())).ToString());
                            cmd.Parameters.AddWithValue("@userid", SetUser.Text);
                            cmd.Parameters.AddWithValue("@taskname", getTaskLabelText.Text);
                            if (cmd.ExecuteNonQuery() != 0)
                            {
                                using (MySqlCommand cmd1 = conn.CreateCommand())
                                {
                                    cmd1.CommandText = "UPDATE `tbl_tasks` SET `totalTime` = @tasklogtime, `timestampUpdated` = NOW() WHERE `taskName` = @taskname AND `userID` = @userid;";
                                    cmd1.Parameters.AddWithValue("@tasklogtime", SessionTime.Text);
                                    cmd1.Parameters.AddWithValue("@userid", SetUser.Text);
                                    cmd1.Parameters.AddWithValue("@taskname", getTaskLabelText.Text);
                                    if (cmd1.ExecuteNonQuery() != 0)
                                    {
                                        selectedplaypausebutton.Tag   = "Stopped";
                                        selectedplaypausebutton.Image = new Bitmap(Properties.Resources.CircledPlay_34px);
                                    }
                                    else
                                    {
                                        MetroFramework.MetroMessageBox.Show(this, "Cannot update parent task! Please check db connection and try again!", "Error!", MessageBoxButtons.OK, MessageBoxIcon.Error);
                                    }
                                }
                            }
                            else
                            {
                                MetroFramework.MetroMessageBox.Show(this, "Cannot pause tasks! Please check db connection and try again!", "Error!", MessageBoxButtons.OK, MessageBoxIcon.Error);
                            }
                        }
                    }
                }
                catch (Exception ex)
                {
                    MetroFramework.MetroMessageBox.Show(this, ex.ToString(), "Error!", MessageBoxButtons.OK, MessageBoxIcon.Error);
                }
            }
        }
Exemplo n.º 24
0
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmAbout));
     this.elipseBorder          = new Bunifu.Framework.UI.BunifuElipse(this.components);
     this.gradientpanelUpperBar = new Bunifu.Framework.UI.BunifuGradientPanel();
     this.buttonClose           = new Bunifu.Framework.UI.BunifuImageButton();
     this.dragcontrolUpperPanel = new Bunifu.Framework.UI.BunifuDragControl(this.components);
     this.panelInfor            = new System.Windows.Forms.Panel();
     this.panelImage            = new System.Windows.Forms.Panel();
     this.pictureboxImage       = new System.Windows.Forms.PictureBox();
     this.labelAuthor           = new Bunifu.Framework.UI.BunifuCustomLabel();
     this.labelContact          = new Bunifu.Framework.UI.BunifuCustomLabel();
     this.labelDescription      = new Bunifu.Framework.UI.BunifuCustomLabel();
     this.textboxAuthor         = new WindowsFormsControlLibrary1.BunifuCustomTextbox();
     this.bunifuCustomTextbox2  = new WindowsFormsControlLibrary1.BunifuCustomTextbox();
     this.textboxDescription    = new WindowsFormsControlLibrary1.BunifuCustomTextbox();
     this.separator2            = new Bunifu.Framework.UI.BunifuSeparator();
     this.separator1            = new Bunifu.Framework.UI.BunifuSeparator();
     this.gradientpanelUpperBar.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.buttonClose)).BeginInit();
     this.panelInfor.SuspendLayout();
     this.panelImage.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.pictureboxImage)).BeginInit();
     this.SuspendLayout();
     //
     // elipseBorder
     //
     this.elipseBorder.ElipseRadius  = 3;
     this.elipseBorder.TargetControl = this.gradientpanelUpperBar;
     //
     // gradientpanelUpperBar
     //
     this.gradientpanelUpperBar.BackgroundImage       = ((System.Drawing.Image)(resources.GetObject("gradientpanelUpperBar.BackgroundImage")));
     this.gradientpanelUpperBar.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
     this.gradientpanelUpperBar.Controls.Add(this.buttonClose);
     this.gradientpanelUpperBar.Dock = System.Windows.Forms.DockStyle.Top;
     this.gradientpanelUpperBar.GradientBottomLeft  = System.Drawing.Color.DeepSkyBlue;
     this.gradientpanelUpperBar.GradientBottomRight = System.Drawing.Color.LightSeaGreen;
     this.gradientpanelUpperBar.GradientTopLeft     = System.Drawing.Color.DeepSkyBlue;
     this.gradientpanelUpperBar.GradientTopRight    = System.Drawing.Color.LightSeaGreen;
     this.gradientpanelUpperBar.Location            = new System.Drawing.Point(0, 0);
     this.gradientpanelUpperBar.Name     = "gradientpanelUpperBar";
     this.gradientpanelUpperBar.Quality  = 10;
     this.gradientpanelUpperBar.Size     = new System.Drawing.Size(384, 32);
     this.gradientpanelUpperBar.TabIndex = 1;
     //
     // buttonClose
     //
     this.buttonClose.Anchor      = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.buttonClose.BackColor   = System.Drawing.Color.Transparent;
     this.buttonClose.Image       = global::UIDesign.Properties.Resources.button_close_background;
     this.buttonClose.ImageActive = null;
     this.buttonClose.Location    = new System.Drawing.Point(352, 0);
     this.buttonClose.Name        = "buttonClose";
     this.buttonClose.Size        = new System.Drawing.Size(32, 32);
     this.buttonClose.SizeMode    = System.Windows.Forms.PictureBoxSizeMode.Zoom;
     this.buttonClose.TabIndex    = 0;
     this.buttonClose.TabStop     = false;
     this.buttonClose.Zoom        = 0;
     this.buttonClose.Click      += new System.EventHandler(this.buttonClose_Click);
     this.buttonClose.MouseLeave += new System.EventHandler(this.buttonClose_MouseLeave);
     this.buttonClose.MouseMove  += new System.Windows.Forms.MouseEventHandler(this.buttonClose_MouseMove);
     //
     // dragcontrolUpperPanel
     //
     this.dragcontrolUpperPanel.Fixed         = true;
     this.dragcontrolUpperPanel.Horizontal    = true;
     this.dragcontrolUpperPanel.TargetControl = this.gradientpanelUpperBar;
     this.dragcontrolUpperPanel.Vertical      = true;
     //
     // panelInfor
     //
     this.panelInfor.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                     | System.Windows.Forms.AnchorStyles.Left)
                                                                    | System.Windows.Forms.AnchorStyles.Right)));
     this.panelInfor.BackColor = System.Drawing.Color.White;
     this.panelInfor.Controls.Add(this.separator1);
     this.panelInfor.Controls.Add(this.separator2);
     this.panelInfor.Controls.Add(this.textboxDescription);
     this.panelInfor.Controls.Add(this.bunifuCustomTextbox2);
     this.panelInfor.Controls.Add(this.textboxAuthor);
     this.panelInfor.Controls.Add(this.labelDescription);
     this.panelInfor.Controls.Add(this.labelContact);
     this.panelInfor.Controls.Add(this.labelAuthor);
     this.panelInfor.Location = new System.Drawing.Point(144, 31);
     this.panelInfor.Name     = "panelInfor";
     this.panelInfor.Size     = new System.Drawing.Size(239, 225);
     this.panelInfor.TabIndex = 5;
     //
     // panelImage
     //
     this.panelImage.BackColor = System.Drawing.Color.Transparent;
     this.panelImage.Controls.Add(this.pictureboxImage);
     this.panelImage.Location = new System.Drawing.Point(0, 32);
     this.panelImage.Name     = "panelImage";
     this.panelImage.Size     = new System.Drawing.Size(142, 224);
     this.panelImage.TabIndex = 6;
     //
     // pictureboxImage
     //
     this.pictureboxImage.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                          | System.Windows.Forms.AnchorStyles.Left)
                                                                         | System.Windows.Forms.AnchorStyles.Right)));
     this.pictureboxImage.Image    = global::UIDesign.Properties.Resources.form_about_background;
     this.pictureboxImage.Location = new System.Drawing.Point(1, 12);
     this.pictureboxImage.Name     = "pictureboxImage";
     this.pictureboxImage.Size     = new System.Drawing.Size(133, 212);
     this.pictureboxImage.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
     this.pictureboxImage.TabIndex = 0;
     this.pictureboxImage.TabStop  = false;
     //
     // labelAuthor
     //
     this.labelAuthor.Anchor    = System.Windows.Forms.AnchorStyles.Left;
     this.labelAuthor.AutoSize  = true;
     this.labelAuthor.ForeColor = System.Drawing.Color.Red;
     this.labelAuthor.Location  = new System.Drawing.Point(11, 25);
     this.labelAuthor.Name      = "labelAuthor";
     this.labelAuthor.Size      = new System.Drawing.Size(43, 14);
     this.labelAuthor.TabIndex  = 0;
     this.labelAuthor.Text      = "Author";
     //
     // labelContact
     //
     this.labelContact.Anchor    = System.Windows.Forms.AnchorStyles.Left;
     this.labelContact.AutoSize  = true;
     this.labelContact.ForeColor = System.Drawing.Color.Red;
     this.labelContact.Location  = new System.Drawing.Point(11, 59);
     this.labelContact.Name      = "labelContact";
     this.labelContact.Size      = new System.Drawing.Size(47, 14);
     this.labelContact.TabIndex  = 1;
     this.labelContact.Text      = "Contact";
     //
     // labelDescription
     //
     this.labelDescription.Anchor    = System.Windows.Forms.AnchorStyles.Left;
     this.labelDescription.AutoSize  = true;
     this.labelDescription.ForeColor = System.Drawing.Color.Red;
     this.labelDescription.Location  = new System.Drawing.Point(11, 102);
     this.labelDescription.Name      = "labelDescription";
     this.labelDescription.Size      = new System.Drawing.Size(69, 14);
     this.labelDescription.TabIndex  = 2;
     this.labelDescription.Text      = "Description";
     //
     // textboxAuthor
     //
     this.textboxAuthor.Anchor      = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
     this.textboxAuthor.BackColor   = System.Drawing.Color.White;
     this.textboxAuthor.BorderColor = System.Drawing.Color.Transparent;
     this.textboxAuthor.BorderStyle = System.Windows.Forms.BorderStyle.None;
     this.textboxAuthor.Font        = new System.Drawing.Font("Calibri", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.textboxAuthor.ForeColor   = System.Drawing.Color.FromArgb(((int)(((byte)(37)))), ((int)(((byte)(84)))), ((int)(((byte)(90)))));
     this.textboxAuthor.Location    = new System.Drawing.Point(83, 24);
     this.textboxAuthor.Name        = "textboxAuthor";
     this.textboxAuthor.ReadOnly    = true;
     this.textboxAuthor.Size        = new System.Drawing.Size(145, 16);
     this.textboxAuthor.TabIndex    = 3;
     this.textboxAuthor.TabStop     = false;
     this.textboxAuthor.Text        = "Trần   Văn   Sơn";
     //
     // bunifuCustomTextbox2
     //
     this.bunifuCustomTextbox2.Anchor      = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
     this.bunifuCustomTextbox2.BackColor   = System.Drawing.Color.White;
     this.bunifuCustomTextbox2.BorderColor = System.Drawing.Color.Transparent;
     this.bunifuCustomTextbox2.BorderStyle = System.Windows.Forms.BorderStyle.None;
     this.bunifuCustomTextbox2.Font        = new System.Drawing.Font("Calibri", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.bunifuCustomTextbox2.ForeColor   = System.Drawing.Color.FromArgb(((int)(((byte)(37)))), ((int)(((byte)(84)))), ((int)(((byte)(90)))));
     this.bunifuCustomTextbox2.Location    = new System.Drawing.Point(83, 54);
     this.bunifuCustomTextbox2.Multiline   = true;
     this.bunifuCustomTextbox2.Name        = "bunifuCustomTextbox2";
     this.bunifuCustomTextbox2.ReadOnly    = true;
     this.bunifuCustomTextbox2.Size        = new System.Drawing.Size(145, 48);
     this.bunifuCustomTextbox2.TabIndex    = 4;
     this.bunifuCustomTextbox2.TabStop     = false;
     this.bunifuCustomTextbox2.Text        = "[email protected]\r\nfb:transon1812\r\nskype:kingson1812";
     //
     // textboxDescription
     //
     this.textboxDescription.Anchor      = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
     this.textboxDescription.BackColor   = System.Drawing.Color.White;
     this.textboxDescription.BorderColor = System.Drawing.Color.Transparent;
     this.textboxDescription.BorderStyle = System.Windows.Forms.BorderStyle.None;
     this.textboxDescription.ForeColor   = System.Drawing.Color.FromArgb(((int)(((byte)(37)))), ((int)(((byte)(84)))), ((int)(((byte)(90)))));
     this.textboxDescription.Location    = new System.Drawing.Point(14, 124);
     this.textboxDescription.Multiline   = true;
     this.textboxDescription.Name        = "textboxDescription";
     this.textboxDescription.ReadOnly    = true;
     this.textboxDescription.Size        = new System.Drawing.Size(214, 89);
     this.textboxDescription.TabIndex    = 5;
     this.textboxDescription.TabStop     = false;
     this.textboxDescription.Text        = "Media Play     is      a      product     of    entertainment. Hope  you  loved  " +
                                           "it.\r\n\r\n\r\n\r\n>_< Copyright © 2017 -_- Tran V. Son ._.";
     //
     // separator2
     //
     this.separator2.Anchor        = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
     this.separator2.BackColor     = System.Drawing.Color.Transparent;
     this.separator2.LineColor     = System.Drawing.Color.BurlyWood;
     this.separator2.LineThickness = 1;
     this.separator2.Location      = new System.Drawing.Point(1, 101);
     this.separator2.Name          = "separator2";
     this.separator2.Size          = new System.Drawing.Size(236, 1);
     this.separator2.TabIndex      = 1;
     this.separator2.TabStop       = false;
     this.separator2.Transparency  = 255;
     this.separator2.Vertical      = false;
     //
     // separator1
     //
     this.separator1.Anchor        = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
     this.separator1.BackColor     = System.Drawing.Color.Transparent;
     this.separator1.LineColor     = System.Drawing.Color.FromArgb(((int)(((byte)(222)))), ((int)(((byte)(184)))), ((int)(((byte)(135)))));
     this.separator1.LineThickness = 1;
     this.separator1.Location      = new System.Drawing.Point(1, 44);
     this.separator1.Name          = "separator1";
     this.separator1.Size          = new System.Drawing.Size(236, 1);
     this.separator1.TabIndex      = 6;
     this.separator1.TabStop       = false;
     this.separator1.Transparency  = 255;
     this.separator1.Vertical      = false;
     //
     // frmAbout
     //
     this.BackColor  = System.Drawing.Color.Magenta;
     this.ClientSize = new System.Drawing.Size(384, 256);
     this.Controls.Add(this.panelImage);
     this.Controls.Add(this.panelInfor);
     this.Controls.Add(this.gradientpanelUpperBar);
     this.Font            = new System.Drawing.Font("Calibri", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
     this.MaximumSize     = new System.Drawing.Size(384, 256);
     this.Name            = "frmAbout";
     this.ShowIcon        = false;
     this.ShowInTaskbar   = false;
     this.StartPosition   = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.TransparencyKey = System.Drawing.Color.Magenta;
     this.gradientpanelUpperBar.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.buttonClose)).EndInit();
     this.panelInfor.ResumeLayout(false);
     this.panelInfor.PerformLayout();
     this.panelImage.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.pictureboxImage)).EndInit();
     this.ResumeLayout(false);
 }
Exemplo n.º 25
0
 public static void button_MouseLeave(object sender, EventArgs e)
 {
     Bunifu.Framework.UI.BunifuImageButton b = (Bunifu.Framework.UI.BunifuImageButton)sender;
     b.BackColor = Color.Transparent;
 }
Exemplo n.º 26
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();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Renegade));
     this.richTextBox1 = new System.Windows.Forms.RichTextBox();
     this.timer1 = new System.Windows.Forms.Timer(this.components);
     this.bunifuImageButton1 = new Bunifu.Framework.UI.BunifuImageButton();
     this.pictureBox1 = new System.Windows.Forms.PictureBox();
     ((System.ComponentModel.ISupportInitialize)(this.bunifuImageButton1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
     this.SuspendLayout();
     //
     // richTextBox1
     //
     this.richTextBox1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(21)))), ((int)(((byte)(34)))), ((int)(((byte)(56)))));
     this.richTextBox1.BorderStyle = System.Windows.Forms.BorderStyle.None;
     this.richTextBox1.ForeColor = System.Drawing.SystemColors.Window;
     this.richTextBox1.Location = new System.Drawing.Point(299, 20);
     this.richTextBox1.Name = "richTextBox1";
     this.richTextBox1.ReadOnly = true;
     this.richTextBox1.Size = new System.Drawing.Size(193, 145);
     this.richTextBox1.TabIndex = 25;
     this.richTextBox1.Text = "";
     //
     // bunifuImageButton1
     //
     this.bunifuImageButton1.BackColor = System.Drawing.Color.Transparent;
     this.bunifuImageButton1.Image = ((System.Drawing.Image)(resources.GetObject("bunifuImageButton1.Image")));
     this.bunifuImageButton1.ImageActive = null;
     this.bunifuImageButton1.Location = new System.Drawing.Point(33, 20);
     this.bunifuImageButton1.Name = "bunifuImageButton1";
     this.bunifuImageButton1.Size = new System.Drawing.Size(220, 201);
     this.bunifuImageButton1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
     this.bunifuImageButton1.TabIndex = 24;
     this.bunifuImageButton1.TabStop = false;
     this.bunifuImageButton1.Zoom = 10;
     this.bunifuImageButton1.Click += new System.EventHandler(this.bunifuImageButton1_Click);
     //
     // pictureBox1
     //
     this.pictureBox1.BackColor = System.Drawing.Color.Transparent;
     this.pictureBox1.BackgroundImage = global::ProjectPlatoV2.Properties.Resources.ConvertButton;
     this.pictureBox1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
     this.pictureBox1.Cursor = System.Windows.Forms.Cursors.Hand;
     this.pictureBox1.Location = new System.Drawing.Point(299, 180);
     this.pictureBox1.Name = "pictureBox1";
     this.pictureBox1.Size = new System.Drawing.Size(193, 64);
     this.pictureBox1.TabIndex = 23;
     this.pictureBox1.TabStop = false;
     this.pictureBox1.Click += new System.EventHandler(this.pictureBox1_Click);
     //
     // Renegade
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(21)))), ((int)(((byte)(34)))), ((int)(((byte)(56)))));
     this.ClientSize = new System.Drawing.Size(524, 265);
     this.Controls.Add(this.richTextBox1);
     this.Controls.Add(this.bunifuImageButton1);
     this.Controls.Add(this.pictureBox1);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
     this.Name = "Renegade";
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text = "Renegade";
     ((System.ComponentModel.ISupportInitialize)(this.bunifuImageButton1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
     this.ResumeLayout(false);
 }
Exemplo n.º 27
0
        private void InitializeComponent()
        {
            m_mediaManager = new MediaManager();

            this.components = new System.ComponentModel.Container();
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(formMainFrame));
            this.panelControl          = new System.Windows.Forms.Panel();
            this.sliderVolume          = new Bunifu.Framework.UI.BunifuSlider();
            this.buttonShuffle         = new Bunifu.Framework.UI.BunifuImageButton();
            this.buttonRepeat          = new Bunifu.Framework.UI.BunifuImageButton();
            this.buttonVolumeMax       = new Bunifu.Framework.UI.BunifuImageButton();
            this.buttonVolumeMin       = new Bunifu.Framework.UI.BunifuImageButton();
            this.buttonPre             = new Bunifu.Framework.UI.BunifuImageButton();
            this.buttonNext            = new Bunifu.Framework.UI.BunifuImageButton();
            this.buttonPlay            = new Bunifu.Framework.UI.BunifuImageButton();
            this.processbarPlayTime    = new Bunifu.Framework.UI.BunifuProgressBar();
            this.elipseBorder          = new Bunifu.Framework.UI.BunifuElipse(this.components);
            this.dragcontrolMainFrame  = new Bunifu.Framework.UI.BunifuDragControl(this.components);
            this.gradientpanelUpperBar = new Bunifu.Framework.UI.BunifuGradientPanel();
            this.buttonMinimize        = new Bunifu.Framework.UI.BunifuImageButton();
            this.buttonClose           = new Bunifu.Framework.UI.BunifuImageButton();
            this.panelLeft             = new System.Windows.Forms.Panel();
            this.separatorLeftMid      = new Bunifu.Framework.UI.BunifuSeparator();
            this.panelTrackList        = new System.Windows.Forms.Panel();
            this.panelTitle            = new System.Windows.Forms.Panel();
            this.buttonSlider          = new Bunifu.Framework.UI.BunifuImageButton();
            this.pictureboxTitle       = new System.Windows.Forms.PictureBox();
            this.panelMid           = new System.Windows.Forms.Panel();
            this.panelBlankTop      = new System.Windows.Forms.Panel();
            this.buttonClearList    = new Bunifu.Framework.UI.BunifuThinButton2();
            this.tooltipDescription = new System.Windows.Forms.ToolTip(this.components);
            this.panelControl.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.buttonShuffle)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.buttonRepeat)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.buttonVolumeMax)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.buttonVolumeMin)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.buttonPre)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.buttonNext)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.buttonPlay)).BeginInit();
            this.gradientpanelUpperBar.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.buttonMinimize)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.buttonClose)).BeginInit();
            this.panelLeft.SuspendLayout();
            this.panelTitle.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.buttonSlider)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.pictureboxTitle)).BeginInit();
            this.panelBlankTop.SuspendLayout();
            this.SuspendLayout();
            //
            // panelControl
            //
            this.panelControl.Controls.Add(this.sliderVolume);
            this.panelControl.Controls.Add(this.buttonShuffle);
            this.panelControl.Controls.Add(this.buttonRepeat);
            this.panelControl.Controls.Add(this.buttonVolumeMax);
            this.panelControl.Controls.Add(this.buttonVolumeMin);
            this.panelControl.Controls.Add(this.buttonPre);
            this.panelControl.Controls.Add(this.buttonNext);
            this.panelControl.Controls.Add(this.buttonPlay);
            this.panelControl.Controls.Add(this.processbarPlayTime);
            this.panelControl.Dock     = System.Windows.Forms.DockStyle.Bottom;
            this.panelControl.Location = new System.Drawing.Point(0, 416);
            this.panelControl.Name     = "panelControl";
            this.panelControl.Size     = new System.Drawing.Size(768, 96);
            this.panelControl.TabIndex = 2;
            //
            // sliderVolume
            //
            this.sliderVolume.Anchor         = System.Windows.Forms.AnchorStyles.Bottom;
            this.sliderVolume.BackColor      = System.Drawing.Color.Transparent;
            this.sliderVolume.BackgroudColor = System.Drawing.Color.SlateGray;
            this.sliderVolume.BorderRadius   = 2;
            this.sliderVolume.IndicatorColor = System.Drawing.Color.DarkSlateGray;
            this.sliderVolume.Location       = new System.Drawing.Point(559, 41);
            this.sliderVolume.MaximumValue   = 100;
            this.sliderVolume.Name           = "sliderVolume";
            this.sliderVolume.Size           = new System.Drawing.Size(148, 30);
            this.sliderVolume.TabIndex       = 13;
            this.tooltipDescription.SetToolTip(this.sliderVolume, "Adjust volume");
            this.sliderVolume.Value = 0;
            //
            // buttonShuffle
            //
            this.buttonShuffle.Anchor      = System.Windows.Forms.AnchorStyles.Bottom;
            this.buttonShuffle.BackColor   = System.Drawing.Color.Transparent;
            this.buttonShuffle.Image       = global::UIDesign.Properties.Resources.button_noneshuffle_background;
            this.buttonShuffle.ImageActive = null;
            this.buttonShuffle.Location    = new System.Drawing.Point(191, 35);
            this.buttonShuffle.Name        = "buttonShuffle";
            this.buttonShuffle.Size        = new System.Drawing.Size(40, 40);
            this.buttonShuffle.SizeMode    = System.Windows.Forms.PictureBoxSizeMode.CenterImage;
            this.buttonShuffle.TabIndex    = 10;
            this.buttonShuffle.TabStop     = false;
            this.tooltipDescription.SetToolTip(this.buttonShuffle, "Shuffle mode");
            this.buttonShuffle.Zoom        = 10;
            this.buttonShuffle.Click      += new System.EventHandler(this.buttonShuffle_Click);
            this.buttonShuffle.MouseLeave += new System.EventHandler(this.button_MouseLeave);
            this.buttonShuffle.MouseMove  += new System.Windows.Forms.MouseEventHandler(this.button_MouseMove);
            //
            // buttonRepeat
            //
            this.buttonRepeat.Anchor      = System.Windows.Forms.AnchorStyles.Bottom;
            this.buttonRepeat.BackColor   = System.Drawing.Color.Transparent;
            this.buttonRepeat.Image       = global::UIDesign.Properties.Resources.button_repeatnone_background;
            this.buttonRepeat.ImageActive = null;
            this.buttonRepeat.Location    = new System.Drawing.Point(111, 35);
            this.buttonRepeat.Name        = "buttonRepeat";
            this.buttonRepeat.Size        = new System.Drawing.Size(40, 40);
            this.buttonRepeat.SizeMode    = System.Windows.Forms.PictureBoxSizeMode.CenterImage;
            this.buttonRepeat.TabIndex    = 9;
            this.buttonRepeat.TabStop     = false;
            this.tooltipDescription.SetToolTip(this.buttonRepeat, "Repeat mode");
            this.buttonRepeat.Zoom        = 10;
            this.buttonRepeat.Click      += new System.EventHandler(this.buttonRepeat_Click);
            this.buttonRepeat.MouseLeave += new System.EventHandler(this.button_MouseLeave);
            this.buttonRepeat.MouseMove  += new System.Windows.Forms.MouseEventHandler(this.button_MouseMove);
            //
            // buttonVolumeMax
            //
            this.buttonVolumeMax.Anchor      = System.Windows.Forms.AnchorStyles.Bottom;
            this.buttonVolumeMax.BackColor   = System.Drawing.Color.Transparent;
            this.buttonVolumeMax.Image       = global::UIDesign.Properties.Resources.button_sound_background;
            this.buttonVolumeMax.ImageActive = null;
            this.buttonVolumeMax.Location    = new System.Drawing.Point(713, 35);
            this.buttonVolumeMax.Name        = "buttonVolumeMax";
            this.buttonVolumeMax.Size        = new System.Drawing.Size(40, 40);
            this.buttonVolumeMax.SizeMode    = System.Windows.Forms.PictureBoxSizeMode.CenterImage;
            this.buttonVolumeMax.TabIndex    = 6;
            this.buttonVolumeMax.TabStop     = false;
            this.tooltipDescription.SetToolTip(this.buttonVolumeMax, "Maximum volume");
            this.buttonVolumeMax.Zoom        = 10;
            this.buttonVolumeMax.Click      += new System.EventHandler(this.buttonVolumeMax_Click);
            this.buttonVolumeMax.MouseLeave += new System.EventHandler(this.button_MouseLeave);
            this.buttonVolumeMax.MouseMove  += new System.Windows.Forms.MouseEventHandler(this.button_MouseMove);
            //
            // buttonVolumeMin
            //
            this.buttonVolumeMin.Anchor      = System.Windows.Forms.AnchorStyles.Bottom;
            this.buttonVolumeMin.BackColor   = System.Drawing.Color.Transparent;
            this.buttonVolumeMin.Image       = global::UIDesign.Properties.Resources.button_mute_background;
            this.buttonVolumeMin.ImageActive = null;
            this.buttonVolumeMin.Location    = new System.Drawing.Point(513, 35);
            this.buttonVolumeMin.Name        = "buttonVolumeMin";
            this.buttonVolumeMin.Size        = new System.Drawing.Size(40, 40);
            this.buttonVolumeMin.SizeMode    = System.Windows.Forms.PictureBoxSizeMode.CenterImage;
            this.buttonVolumeMin.TabIndex    = 5;
            this.buttonVolumeMin.TabStop     = false;
            this.tooltipDescription.SetToolTip(this.buttonVolumeMin, "Mute volume");
            this.buttonVolumeMin.Zoom        = 10;
            this.buttonVolumeMin.Click      += new System.EventHandler(this.buttonVolumeMin_Click);
            this.buttonVolumeMin.MouseLeave += new System.EventHandler(this.button_MouseLeave);
            this.buttonVolumeMin.MouseMove  += new System.Windows.Forms.MouseEventHandler(this.button_MouseMove);
            //
            // buttonPre
            //
            this.buttonPre.Anchor      = System.Windows.Forms.AnchorStyles.Bottom;
            this.buttonPre.BackColor   = System.Drawing.Color.Transparent;
            this.buttonPre.Image       = global::UIDesign.Properties.Resources.button_previous_background;
            this.buttonPre.ImageActive = null;
            this.buttonPre.Location    = new System.Drawing.Point(298, 32);
            this.buttonPre.Name        = "buttonPre";
            this.buttonPre.Size        = new System.Drawing.Size(48, 48);
            this.buttonPre.SizeMode    = System.Windows.Forms.PictureBoxSizeMode.CenterImage;
            this.buttonPre.TabIndex    = 4;
            this.buttonPre.TabStop     = false;
            this.tooltipDescription.SetToolTip(this.buttonPre, "Previous");
            this.buttonPre.Zoom        = 10;
            this.buttonPre.MouseLeave += new System.EventHandler(this.button_MouseLeave);
            this.buttonPre.MouseMove  += new System.Windows.Forms.MouseEventHandler(this.button_MouseMove);
            //
            // buttonNext
            //
            this.buttonNext.Anchor      = System.Windows.Forms.AnchorStyles.Bottom;
            this.buttonNext.BackColor   = System.Drawing.Color.Transparent;
            this.buttonNext.Image       = global::UIDesign.Properties.Resources.button_forward_background;
            this.buttonNext.ImageActive = null;
            this.buttonNext.Location    = new System.Drawing.Point(406, 32);
            this.buttonNext.Name        = "buttonNext";
            this.buttonNext.Size        = new System.Drawing.Size(48, 48);
            this.buttonNext.SizeMode    = System.Windows.Forms.PictureBoxSizeMode.CenterImage;
            this.buttonNext.TabIndex    = 3;
            this.buttonNext.TabStop     = false;
            this.tooltipDescription.SetToolTip(this.buttonNext, "Next");
            this.buttonNext.Zoom        = 10;
            this.buttonNext.Click      += new System.EventHandler(this.buttonNext_Click);
            this.buttonNext.MouseLeave += new System.EventHandler(this.button_MouseLeave);
            this.buttonNext.MouseMove  += new System.Windows.Forms.MouseEventHandler(this.button_MouseMove);
            //
            // buttonPlay
            //
            this.buttonPlay.Anchor      = System.Windows.Forms.AnchorStyles.Bottom;
            this.buttonPlay.BackColor   = System.Drawing.Color.Transparent;
            this.buttonPlay.Image       = global::UIDesign.Properties.Resources.button_play_background;
            this.buttonPlay.ImageActive = null;
            this.buttonPlay.Location    = new System.Drawing.Point(352, 32);
            this.buttonPlay.Name        = "buttonPlay";
            this.buttonPlay.Size        = new System.Drawing.Size(48, 48);
            this.buttonPlay.SizeMode    = System.Windows.Forms.PictureBoxSizeMode.CenterImage;
            this.buttonPlay.TabIndex    = 2;
            this.buttonPlay.TabStop     = false;
            this.tooltipDescription.SetToolTip(this.buttonPlay, "Play/Pause");
            this.buttonPlay.Zoom        = 10;
            this.buttonPlay.Click      += new System.EventHandler(this.buttonPlay_Click);
            this.buttonPlay.MouseLeave += new System.EventHandler(this.button_MouseLeave);
            this.buttonPlay.MouseMove  += new System.Windows.Forms.MouseEventHandler(this.button_MouseMove);
            //
            // processbarPlayTime
            //
            this.processbarPlayTime.BackColor     = System.Drawing.Color.LightSlateGray;
            this.processbarPlayTime.BorderRadius  = 2;
            this.processbarPlayTime.Cursor        = System.Windows.Forms.Cursors.Hand;
            this.processbarPlayTime.Dock          = System.Windows.Forms.DockStyle.Top;
            this.processbarPlayTime.Location      = new System.Drawing.Point(0, 0);
            this.processbarPlayTime.MaximumValue  = 100;
            this.processbarPlayTime.Name          = "processbarPlayTime";
            this.processbarPlayTime.ProgressColor = System.Drawing.Color.DeepSkyBlue;
            this.processbarPlayTime.Size          = new System.Drawing.Size(768, 12);
            this.processbarPlayTime.TabIndex      = 1;
            this.processbarPlayTime.TabStop       = false;
            this.tooltipDescription.SetToolTip(this.processbarPlayTime, "Timer process");
            this.processbarPlayTime.Value = 0;
            //
            // elipseBorder
            //
            this.elipseBorder.ElipseRadius  = 3;
            this.elipseBorder.TargetControl = this;
            //
            // dragcontrolMainFrame
            //
            this.dragcontrolMainFrame.Fixed         = true;
            this.dragcontrolMainFrame.Horizontal    = true;
            this.dragcontrolMainFrame.TargetControl = this.gradientpanelUpperBar;
            this.dragcontrolMainFrame.Vertical      = true;
            //
            // gradientpanelUpperBar
            //
            this.gradientpanelUpperBar.BackgroundImage       = ((System.Drawing.Image)(resources.GetObject("gradientpanelUpperBar.BackgroundImage")));
            this.gradientpanelUpperBar.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
            this.gradientpanelUpperBar.Controls.Add(this.buttonMinimize);
            this.gradientpanelUpperBar.Controls.Add(this.buttonClose);
            this.gradientpanelUpperBar.Dock = System.Windows.Forms.DockStyle.Top;
            this.gradientpanelUpperBar.GradientBottomLeft  = System.Drawing.Color.DeepSkyBlue;
            this.gradientpanelUpperBar.GradientBottomRight = System.Drawing.Color.LightSeaGreen;
            this.gradientpanelUpperBar.GradientTopLeft     = System.Drawing.Color.DeepSkyBlue;
            this.gradientpanelUpperBar.GradientTopRight    = System.Drawing.Color.LightSeaGreen;
            this.gradientpanelUpperBar.Location            = new System.Drawing.Point(0, 0);
            this.gradientpanelUpperBar.Name         = "gradientpanelUpperBar";
            this.gradientpanelUpperBar.Quality      = 10;
            this.gradientpanelUpperBar.Size         = new System.Drawing.Size(768, 32);
            this.gradientpanelUpperBar.TabIndex     = 0;
            this.gradientpanelUpperBar.Paint       += new System.Windows.Forms.PaintEventHandler(this.gradientpanelUpperBar_Paint);
            this.gradientpanelUpperBar.DoubleClick += new System.EventHandler(this.gradientpanelUpperBar_DoubleClick);
            //
            // buttonMinimize
            //
            this.buttonMinimize.Anchor      = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.buttonMinimize.BackColor   = System.Drawing.Color.Transparent;
            this.buttonMinimize.Image       = global::UIDesign.Properties.Resources.button_minus_background;
            this.buttonMinimize.ImageActive = null;
            this.buttonMinimize.Location    = new System.Drawing.Point(703, 0);
            this.buttonMinimize.Name        = "buttonMinimize";
            this.buttonMinimize.Size        = new System.Drawing.Size(32, 32);
            this.buttonMinimize.SizeMode    = System.Windows.Forms.PictureBoxSizeMode.Zoom;
            this.buttonMinimize.TabIndex    = 1;
            this.buttonMinimize.TabStop     = false;
            this.tooltipDescription.SetToolTip(this.buttonMinimize, "Minimize to taskbar");
            this.buttonMinimize.Zoom        = 0;
            this.buttonMinimize.Click      += new System.EventHandler(this.buttonMinimize_Click);
            this.buttonMinimize.MouseLeave += new System.EventHandler(this.button_MouseLeave);
            this.buttonMinimize.MouseMove  += new System.Windows.Forms.MouseEventHandler(this.button_MouseMove);
            //
            // buttonClose
            //
            this.buttonClose.Anchor      = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.buttonClose.BackColor   = System.Drawing.Color.Transparent;
            this.buttonClose.Image       = global::UIDesign.Properties.Resources.button_close_background;
            this.buttonClose.ImageActive = null;
            this.buttonClose.Location    = new System.Drawing.Point(735, 0);
            this.buttonClose.Name        = "buttonClose";
            this.buttonClose.Size        = new System.Drawing.Size(32, 32);
            this.buttonClose.SizeMode    = System.Windows.Forms.PictureBoxSizeMode.Zoom;
            this.buttonClose.TabIndex    = 0;
            this.buttonClose.TabStop     = false;
            this.tooltipDescription.SetToolTip(this.buttonClose, "Close application");
            this.buttonClose.Zoom        = 0;
            this.buttonClose.Click      += new System.EventHandler(this.buttonClose_Click);
            this.buttonClose.MouseLeave += new System.EventHandler(this.button_MouseLeave);
            this.buttonClose.MouseMove  += new System.Windows.Forms.MouseEventHandler(this.button_MouseMove);
            //
            // panelLeft
            //
            this.panelLeft.BackColor = System.Drawing.Color.Transparent;
            this.panelLeft.Controls.Add(this.separatorLeftMid);
            this.panelLeft.Controls.Add(this.panelTrackList);
            this.panelLeft.Controls.Add(this.panelTitle);
            this.panelLeft.Dock      = System.Windows.Forms.DockStyle.Left;
            this.panelLeft.Font      = new System.Drawing.Font("Calibri", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.panelLeft.ForeColor = System.Drawing.Color.Black;
            this.panelLeft.Location  = new System.Drawing.Point(0, 32);
            this.panelLeft.Name      = "panelLeft";
            this.panelLeft.Size      = new System.Drawing.Size(240, 384);
            this.panelLeft.TabIndex  = 3;
            //
            // separatorLeftMid
            //
            this.separatorLeftMid.Anchor        = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)));
            this.separatorLeftMid.BackColor     = System.Drawing.Color.Transparent;
            this.separatorLeftMid.LineColor     = System.Drawing.Color.FromArgb(((int)(((byte)(70)))), ((int)(((byte)(130)))), ((int)(((byte)(180)))));
            this.separatorLeftMid.LineThickness = 1;
            this.separatorLeftMid.Location      = new System.Drawing.Point(238, 0);
            this.separatorLeftMid.Name          = "separatorLeftMid";
            this.separatorLeftMid.Size          = new System.Drawing.Size(2, 384);
            this.separatorLeftMid.TabIndex      = 2;
            this.separatorLeftMid.Transparency  = 255;
            this.separatorLeftMid.Vertical      = true;
            //
            // panelTrackList
            //
            this.panelTrackList.AllowDrop  = true;
            this.panelTrackList.AutoScroll = true;
            this.panelTrackList.BackColor  = System.Drawing.Color.Transparent;
            this.panelTrackList.Cursor     = System.Windows.Forms.Cursors.Cross;
            this.panelTrackList.Dock       = System.Windows.Forms.DockStyle.Fill;
            this.panelTrackList.Location   = new System.Drawing.Point(0, 32);
            this.panelTrackList.Name       = "panelTrackList";
            this.panelTrackList.Size       = new System.Drawing.Size(240, 352);
            this.panelTrackList.TabIndex   = 1;
            this.tooltipDescription.SetToolTip(this.panelTrackList, "Drag your files here to open them");
            this.panelTrackList.DragDrop  += new System.Windows.Forms.DragEventHandler(this.panelTrackList_DragDrop);
            this.panelTrackList.DragEnter += new System.Windows.Forms.DragEventHandler(this.panelTrackList_DragEnter);
            //
            // panelTitle
            //
            this.panelTitle.Controls.Add(this.buttonSlider);
            this.panelTitle.Controls.Add(this.pictureboxTitle);
            this.panelTitle.Dock     = System.Windows.Forms.DockStyle.Top;
            this.panelTitle.Location = new System.Drawing.Point(0, 0);
            this.panelTitle.Name     = "panelTitle";
            this.panelTitle.Size     = new System.Drawing.Size(240, 32);
            this.panelTitle.TabIndex = 0;
            //
            // buttonSlider
            //
            this.buttonSlider.BackColor   = System.Drawing.Color.Transparent;
            this.buttonSlider.Dock        = System.Windows.Forms.DockStyle.Left;
            this.buttonSlider.Image       = global::UIDesign.Properties.Resources.button_menu_background;
            this.buttonSlider.ImageActive = null;
            this.buttonSlider.Location    = new System.Drawing.Point(0, 0);
            this.buttonSlider.Name        = "buttonSlider";
            this.buttonSlider.Size        = new System.Drawing.Size(48, 32);
            this.buttonSlider.SizeMode    = System.Windows.Forms.PictureBoxSizeMode.CenterImage;
            this.buttonSlider.TabIndex    = 6;
            this.buttonSlider.TabStop     = false;
            this.tooltipDescription.SetToolTip(this.buttonSlider, "About me");
            this.buttonSlider.Zoom        = 10;
            this.buttonSlider.Click      += new System.EventHandler(this.buttonSlider_Click);
            this.buttonSlider.MouseLeave += new System.EventHandler(this.button_MouseLeave);
            this.buttonSlider.MouseMove  += new System.Windows.Forms.MouseEventHandler(this.button_MouseMove);
            //
            // pictureboxTitle
            //
            this.pictureboxTitle.Dock     = System.Windows.Forms.DockStyle.Right;
            this.pictureboxTitle.Image    = global::UIDesign.Properties.Resources.picture_title_background;
            this.pictureboxTitle.Location = new System.Drawing.Point(48, 0);
            this.pictureboxTitle.Name     = "pictureboxTitle";
            this.pictureboxTitle.Size     = new System.Drawing.Size(192, 32);
            this.pictureboxTitle.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
            this.pictureboxTitle.TabIndex = 0;
            this.pictureboxTitle.TabStop  = false;
            //
            // panelMid
            //
            this.panelMid.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                          | System.Windows.Forms.AnchorStyles.Left)
                                                                         | System.Windows.Forms.AnchorStyles.Right)));
            this.panelMid.BackColor = System.Drawing.Color.Transparent;
            this.panelMid.Location  = new System.Drawing.Point(240, 64);
            this.panelMid.Name      = "panelMid";
            this.panelMid.Size      = new System.Drawing.Size(528, 352);
            this.panelMid.TabIndex  = 4;
            //
            // panelBlankTop
            //
            this.panelBlankTop.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                              | System.Windows.Forms.AnchorStyles.Right)));
            this.panelBlankTop.BackColor = System.Drawing.Color.Transparent;
            this.panelBlankTop.Controls.Add(this.buttonClearList);
            this.panelBlankTop.Location = new System.Drawing.Point(240, 32);
            this.panelBlankTop.Name     = "panelBlankTop";
            this.panelBlankTop.Size     = new System.Drawing.Size(528, 32);
            this.panelBlankTop.TabIndex = 5;
            //
            // buttonClearList
            //
            this.buttonClearList.ActiveBorderThickness = 1;
            this.buttonClearList.ActiveCornerRadius    = 2;
            this.buttonClearList.ActiveFillColor       = System.Drawing.Color.DarkCyan;
            this.buttonClearList.ActiveForecolor       = System.Drawing.Color.White;
            this.buttonClearList.ActiveLineColor       = System.Drawing.Color.DarkCyan;
            this.buttonClearList.BackColor             = System.Drawing.Color.Transparent;
            this.buttonClearList.BackgroundImage       = ((System.Drawing.Image)(resources.GetObject("buttonClearList.BackgroundImage")));
            this.buttonClearList.ButtonText            = "Clear list";
            this.buttonClearList.Cursor              = System.Windows.Forms.Cursors.Default;
            this.buttonClearList.Font                = new System.Drawing.Font("Calibri", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.buttonClearList.ForeColor           = System.Drawing.Color.DarkSlateGray;
            this.buttonClearList.IdleBorderThickness = 1;
            this.buttonClearList.IdleCornerRadius    = 2;
            this.buttonClearList.IdleFillColor       = System.Drawing.Color.LightCyan;
            this.buttonClearList.IdleForecolor       = System.Drawing.Color.DarkCyan;
            this.buttonClearList.IdleLineColor       = System.Drawing.Color.DarkCyan;
            this.buttonClearList.Location            = new System.Drawing.Point(8, 0);
            this.buttonClearList.Margin              = new System.Windows.Forms.Padding(5);
            this.buttonClearList.Name                = "buttonClearList";
            this.buttonClearList.Size                = new System.Drawing.Size(64, 32);
            this.buttonClearList.TabIndex            = 0;
            this.buttonClearList.TextAlign           = System.Drawing.ContentAlignment.MiddleCenter;
            this.tooltipDescription.SetToolTip(this.buttonClearList, "Clear all loaded files");
            this.buttonClearList.Click += new System.EventHandler(this.buttonClearList_Click);
            //
            // tooltipDescription
            //
            this.tooltipDescription.AutoPopDelay = 3000;
            this.tooltipDescription.BackColor    = System.Drawing.Color.White;
            this.tooltipDescription.ForeColor    = System.Drawing.Color.DarkSlateGray;
            this.tooltipDescription.InitialDelay = 500;
            this.tooltipDescription.ReshowDelay  = 100;
            this.tooltipDescription.ToolTipTitle = "Hint";
            //
            // formMainFrame
            //
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Inherit;
            this.BackColor     = System.Drawing.Color.White;
            this.ClientSize    = new System.Drawing.Size(768, 512);
            this.Controls.Add(this.panelBlankTop);
            this.Controls.Add(this.panelMid);
            this.Controls.Add(this.panelLeft);
            this.Controls.Add(this.panelControl);
            this.Controls.Add(this.gradientpanelUpperBar);
            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
            this.Icon            = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
            this.MinimumSize     = new System.Drawing.Size(400, 300);
            this.Name            = "formMainFrame";
            this.StartPosition   = System.Windows.Forms.FormStartPosition.CenterScreen;
            this.Text            = "Media Play";
            this.Load           += new System.EventHandler(this.formMainFrame_Load);
            this.panelControl.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)(this.buttonShuffle)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.buttonRepeat)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.buttonVolumeMax)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.buttonVolumeMin)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.buttonPre)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.buttonNext)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.buttonPlay)).EndInit();
            this.gradientpanelUpperBar.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)(this.buttonMinimize)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.buttonClose)).EndInit();
            this.panelLeft.ResumeLayout(false);
            this.panelTitle.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)(this.buttonSlider)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.pictureboxTitle)).EndInit();
            this.panelBlankTop.ResumeLayout(false);
            this.ResumeLayout(false);
        }
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Emp_CustomerInfo));
     System.Windows.Forms.DataGridViewCellStyle     dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
     System.Windows.Forms.DataGridViewCellStyle     dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
     System.Windows.Forms.DataGridViewCellStyle     dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
     this.tableLayoutPanel1  = new System.Windows.Forms.TableLayoutPanel();
     this.tableLayoutPanel2  = new System.Windows.Forms.TableLayoutPanel();
     this.bunifuImageButton1 = new Bunifu.Framework.UI.BunifuImageButton();
     this.label1             = new System.Windows.Forms.Label();
     this.tableLayoutPanel3  = new System.Windows.Forms.TableLayoutPanel();
     this.dgvCustomerInfo    = new Bunifu.Framework.UI.BunifuCustomDataGrid();
     this.tableLayoutPanel4  = new System.Windows.Forms.TableLayoutPanel();
     this.btnSearch          = new Bunifu.Framework.UI.BunifuThinButton2();
     this.txtSearch          = new Bunifu.Framework.UI.BunifuTextbox();
     this.bunifuImageButton2 = new Bunifu.Framework.UI.BunifuImageButton();
     this.tableLayoutPanel1.SuspendLayout();
     this.tableLayoutPanel2.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.bunifuImageButton1)).BeginInit();
     this.tableLayoutPanel3.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.dgvCustomerInfo)).BeginInit();
     this.tableLayoutPanel4.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.bunifuImageButton2)).BeginInit();
     this.SuspendLayout();
     //
     // tableLayoutPanel1
     //
     this.tableLayoutPanel1.ColumnCount = 1;
     this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
     this.tableLayoutPanel1.Controls.Add(this.tableLayoutPanel2, 0, 0);
     this.tableLayoutPanel1.Controls.Add(this.tableLayoutPanel3, 0, 1);
     this.tableLayoutPanel1.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.tableLayoutPanel1.Location = new System.Drawing.Point(0, 0);
     this.tableLayoutPanel1.Name     = "tableLayoutPanel1";
     this.tableLayoutPanel1.RowCount = 2;
     this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 10.13616F));
     this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 89.86385F));
     this.tableLayoutPanel1.Size     = new System.Drawing.Size(1184, 661);
     this.tableLayoutPanel1.TabIndex = 0;
     //
     // tableLayoutPanel2
     //
     this.tableLayoutPanel2.ColumnCount = 2;
     this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
     this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
     this.tableLayoutPanel2.Controls.Add(this.bunifuImageButton1, 0, 0);
     this.tableLayoutPanel2.Controls.Add(this.label1, 1, 0);
     this.tableLayoutPanel2.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.tableLayoutPanel2.Location = new System.Drawing.Point(3, 3);
     this.tableLayoutPanel2.Name     = "tableLayoutPanel2";
     this.tableLayoutPanel2.RowCount = 1;
     this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
     this.tableLayoutPanel2.Size     = new System.Drawing.Size(1178, 61);
     this.tableLayoutPanel2.TabIndex = 0;
     //
     // bunifuImageButton1
     //
     this.bunifuImageButton1.Anchor      = System.Windows.Forms.AnchorStyles.Right;
     this.bunifuImageButton1.BackColor   = System.Drawing.Color.Transparent;
     this.bunifuImageButton1.Image       = ((System.Drawing.Image)(resources.GetObject("bunifuImageButton1.Image")));
     this.bunifuImageButton1.ImageActive = null;
     this.bunifuImageButton1.Location    = new System.Drawing.Point(515, 5);
     this.bunifuImageButton1.Name        = "bunifuImageButton1";
     this.bunifuImageButton1.Size        = new System.Drawing.Size(71, 50);
     this.bunifuImageButton1.SizeMode    = System.Windows.Forms.PictureBoxSizeMode.Zoom;
     this.bunifuImageButton1.TabIndex    = 2;
     this.bunifuImageButton1.TabStop     = false;
     this.bunifuImageButton1.Zoom        = 10;
     //
     // label1
     //
     this.label1.Anchor   = System.Windows.Forms.AnchorStyles.Left;
     this.label1.AutoSize = true;
     this.label1.Font     = new System.Drawing.Font("Sitka Small", 14.25F, ((System.Drawing.FontStyle)(((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic)
                                                                                                        | System.Drawing.FontStyle.Underline))), System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label1.Location = new System.Drawing.Point(592, 16);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(239, 28);
     this.label1.TabIndex = 3;
     this.label1.Text     = "Customer Information";
     //
     // tableLayoutPanel3
     //
     this.tableLayoutPanel3.ColumnCount = 1;
     this.tableLayoutPanel3.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
     this.tableLayoutPanel3.Controls.Add(this.dgvCustomerInfo, 0, 1);
     this.tableLayoutPanel3.Controls.Add(this.tableLayoutPanel4, 0, 0);
     this.tableLayoutPanel3.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.tableLayoutPanel3.Location = new System.Drawing.Point(3, 70);
     this.tableLayoutPanel3.Name     = "tableLayoutPanel3";
     this.tableLayoutPanel3.RowCount = 2;
     this.tableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 13.58234F));
     this.tableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 86.41766F));
     this.tableLayoutPanel3.Size     = new System.Drawing.Size(1178, 588);
     this.tableLayoutPanel3.TabIndex = 1;
     //
     // dgvCustomerInfo
     //
     this.dgvCustomerInfo.AllowUserToAddRows              = false;
     this.dgvCustomerInfo.AllowUserToDeleteRows           = false;
     dataGridViewCellStyle1.BackColor                     = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
     this.dgvCustomerInfo.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1;
     this.dgvCustomerInfo.AutoSizeColumnsMode             = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill;
     this.dgvCustomerInfo.BackgroundColor                 = System.Drawing.Color.White;
     this.dgvCustomerInfo.BorderStyle                     = System.Windows.Forms.BorderStyle.None;
     this.dgvCustomerInfo.CellBorderStyle                 = System.Windows.Forms.DataGridViewCellBorderStyle.RaisedHorizontal;
     this.dgvCustomerInfo.ColumnHeadersBorderStyle        = System.Windows.Forms.DataGridViewHeaderBorderStyle.None;
     dataGridViewCellStyle2.Alignment                     = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
     dataGridViewCellStyle2.BackColor                     = System.Drawing.Color.DarkSlateGray;
     dataGridViewCellStyle2.Font                        = new System.Drawing.Font("Segoe Print", 11F);
     dataGridViewCellStyle2.ForeColor                   = System.Drawing.Color.White;
     dataGridViewCellStyle2.SelectionBackColor          = System.Drawing.SystemColors.Highlight;
     dataGridViewCellStyle2.SelectionForeColor          = System.Drawing.SystemColors.HighlightText;
     dataGridViewCellStyle2.WrapMode                    = System.Windows.Forms.DataGridViewTriState.True;
     this.dgvCustomerInfo.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2;
     this.dgvCustomerInfo.ColumnHeadersHeightSizeMode   = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
     this.dgvCustomerInfo.Dock                      = System.Windows.Forms.DockStyle.Fill;
     this.dgvCustomerInfo.DoubleBuffered            = true;
     this.dgvCustomerInfo.EnableHeadersVisualStyles = false;
     this.dgvCustomerInfo.GridColor                 = System.Drawing.SystemColors.ActiveCaption;
     this.dgvCustomerInfo.HeaderBgColor             = System.Drawing.Color.DarkSlateGray;
     this.dgvCustomerInfo.HeaderForeColor           = System.Drawing.Color.White;
     this.dgvCustomerInfo.Location                  = new System.Drawing.Point(3, 82);
     this.dgvCustomerInfo.Name                      = "dgvCustomerInfo";
     this.dgvCustomerInfo.ReadOnly                  = true;
     this.dgvCustomerInfo.RowHeadersBorderStyle     = System.Windows.Forms.DataGridViewHeaderBorderStyle.None;
     this.dgvCustomerInfo.RowHeadersWidth           = 48;
     dataGridViewCellStyle3.Alignment               = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
     dataGridViewCellStyle3.Font                    = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     dataGridViewCellStyle3.SelectionBackColor      = System.Drawing.Color.Blue;
     dataGridViewCellStyle3.SelectionForeColor      = System.Drawing.Color.White;
     this.dgvCustomerInfo.RowsDefaultCellStyle      = dataGridViewCellStyle3;
     this.dgvCustomerInfo.Size                      = new System.Drawing.Size(1172, 503);
     this.dgvCustomerInfo.TabIndex                  = 1;
     //
     // tableLayoutPanel4
     //
     this.tableLayoutPanel4.ColumnCount = 3;
     this.tableLayoutPanel4.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 49.82935F));
     this.tableLayoutPanel4.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 16.12628F));
     this.tableLayoutPanel4.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 34.12969F));
     this.tableLayoutPanel4.Controls.Add(this.btnSearch, 0, 0);
     this.tableLayoutPanel4.Controls.Add(this.txtSearch, 0, 0);
     this.tableLayoutPanel4.Controls.Add(this.bunifuImageButton2, 2, 0);
     this.tableLayoutPanel4.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.tableLayoutPanel4.Location = new System.Drawing.Point(3, 3);
     this.tableLayoutPanel4.Name     = "tableLayoutPanel4";
     this.tableLayoutPanel4.RowCount = 1;
     this.tableLayoutPanel4.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
     this.tableLayoutPanel4.Size     = new System.Drawing.Size(1172, 73);
     this.tableLayoutPanel4.TabIndex = 2;
     //
     // btnSearch
     //
     this.btnSearch.ActiveBorderThickness = 1;
     this.btnSearch.ActiveCornerRadius    = 20;
     this.btnSearch.ActiveFillColor       = System.Drawing.Color.SeaGreen;
     this.btnSearch.ActiveForecolor       = System.Drawing.Color.White;
     this.btnSearch.ActiveLineColor       = System.Drawing.Color.SeaGreen;
     this.btnSearch.Anchor              = System.Windows.Forms.AnchorStyles.Left;
     this.btnSearch.BackColor           = System.Drawing.SystemColors.Control;
     this.btnSearch.BackgroundImage     = ((System.Drawing.Image)(resources.GetObject("btnSearch.BackgroundImage")));
     this.btnSearch.ButtonText          = "Search";
     this.btnSearch.Cursor              = System.Windows.Forms.Cursors.Hand;
     this.btnSearch.Font                = new System.Drawing.Font("Century Gothic", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.btnSearch.ForeColor           = System.Drawing.Color.SeaGreen;
     this.btnSearch.IdleBorderThickness = 1;
     this.btnSearch.IdleCornerRadius    = 20;
     this.btnSearch.IdleFillColor       = System.Drawing.Color.White;
     this.btnSearch.IdleForecolor       = System.Drawing.Color.SeaGreen;
     this.btnSearch.IdleLineColor       = System.Drawing.Color.SeaGreen;
     this.btnSearch.Location            = new System.Drawing.Point(588, 6);
     this.btnSearch.Margin              = new System.Windows.Forms.Padding(5);
     this.btnSearch.Name                = "btnSearch";
     this.btnSearch.Size                = new System.Drawing.Size(178, 60);
     this.btnSearch.TabIndex            = 6;
     this.btnSearch.TextAlign           = System.Drawing.ContentAlignment.MiddleCenter;
     this.btnSearch.Click              += new System.EventHandler(this.btnSearch_Click);
     //
     // txtSearch
     //
     this.txtSearch.Anchor                = System.Windows.Forms.AnchorStyles.Right;
     this.txtSearch.BackColor             = System.Drawing.Color.White;
     this.txtSearch.BackgroundImage       = ((System.Drawing.Image)(resources.GetObject("txtSearch.BackgroundImage")));
     this.txtSearch.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
     this.txtSearch.ForeColor             = System.Drawing.Color.SeaGreen;
     this.txtSearch.Icon     = ((System.Drawing.Image)(resources.GetObject("txtSearch.Icon")));
     this.txtSearch.Location = new System.Drawing.Point(133, 15);
     this.txtSearch.Name     = "txtSearch";
     this.txtSearch.Size     = new System.Drawing.Size(447, 42);
     this.txtSearch.TabIndex = 4;
     this.txtSearch.text     = "";
     //
     // bunifuImageButton2
     //
     this.bunifuImageButton2.Anchor      = System.Windows.Forms.AnchorStyles.Left;
     this.bunifuImageButton2.BackColor   = System.Drawing.Color.Transparent;
     this.bunifuImageButton2.Image       = ((System.Drawing.Image)(resources.GetObject("bunifuImageButton2.Image")));
     this.bunifuImageButton2.ImageActive = null;
     this.bunifuImageButton2.Location    = new System.Drawing.Point(774, 14);
     this.bunifuImageButton2.Name        = "bunifuImageButton2";
     this.bunifuImageButton2.Size        = new System.Drawing.Size(48, 45);
     this.bunifuImageButton2.SizeMode    = System.Windows.Forms.PictureBoxSizeMode.Zoom;
     this.bunifuImageButton2.TabIndex    = 7;
     this.bunifuImageButton2.TabStop     = false;
     this.bunifuImageButton2.Zoom        = 10;
     this.bunifuImageButton2.Click      += new System.EventHandler(this.bunifuImageButton2_Click);
     //
     // Emp_CustomerInfo
     //
     this.ClientSize = new System.Drawing.Size(1184, 661);
     this.Controls.Add(this.tableLayoutPanel1);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Fixed3D;
     this.Icon            = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.Name            = "Emp_CustomerInfo";
     this.Load           += new System.EventHandler(this.Emp_CustomerInfo_Load);
     this.tableLayoutPanel1.ResumeLayout(false);
     this.tableLayoutPanel2.ResumeLayout(false);
     this.tableLayoutPanel2.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.bunifuImageButton1)).EndInit();
     this.tableLayoutPanel3.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.dgvCustomerInfo)).EndInit();
     this.tableLayoutPanel4.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.bunifuImageButton2)).EndInit();
     this.ResumeLayout(false);
 }
 /// <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();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(agrergarcasa));
     this.metroLabel1 = new MetroFramework.Controls.MetroLabel();
     this.metroLink1 = new MetroFramework.Controls.MetroLink();
     this.metroComboBox1 = new MetroFramework.Controls.MetroComboBox();
     this.metroButton1 = new MetroFramework.Controls.MetroButton();
     this.metroStyleManager1 = new MetroFramework.Components.MetroStyleManager(this.components);
     this.bunifuImageButton1 = new Bunifu.Framework.UI.BunifuImageButton();
     ((System.ComponentModel.ISupportInitialize)(this.metroStyleManager1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.bunifuImageButton1)).BeginInit();
     this.SuspendLayout();
     //
     // metroLabel1
     //
     this.metroLabel1.AutoSize = true;
     this.metroLabel1.Location = new System.Drawing.Point(37, 69);
     this.metroLabel1.Name = "metroLabel1";
     this.metroLabel1.Size = new System.Drawing.Size(115, 19);
     this.metroLabel1.TabIndex = 0;
     this.metroLabel1.Text = "Seleccione Lugar: ";
     //
     // metroLink1
     //
     this.metroLink1.Location = new System.Drawing.Point(113, 113);
     this.metroLink1.Name = "metroLink1";
     this.metroLink1.Size = new System.Drawing.Size(224, 23);
     this.metroLink1.TabIndex = 2;
     this.metroLink1.Text = "¿La casa no esta? Registrala AQUI!!";
     this.metroLink1.UseSelectable = true;
     this.metroLink1.Click += new System.EventHandler(this.metroLink1_Click);
     //
     // metroComboBox1
     //
     this.metroComboBox1.FormattingEnabled = true;
     this.metroComboBox1.ItemHeight = 23;
     this.metroComboBox1.Location = new System.Drawing.Point(158, 69);
     this.metroComboBox1.Name = "metroComboBox1";
     this.metroComboBox1.Size = new System.Drawing.Size(121, 29);
     this.metroComboBox1.TabIndex = 3;
     this.metroComboBox1.UseSelectable = true;
     //
     // metroButton1
     //
     this.metroButton1.Location = new System.Drawing.Point(177, 153);
     this.metroButton1.Name = "metroButton1";
     this.metroButton1.Size = new System.Drawing.Size(75, 23);
     this.metroButton1.TabIndex = 4;
     this.metroButton1.Text = "Agregar";
     this.metroButton1.UseSelectable = true;
     this.metroButton1.Click += new System.EventHandler(this.metroButton1_Click);
     //
     // metroStyleManager1
     //
     this.metroStyleManager1.Owner = this;
     this.metroStyleManager1.Style = MetroFramework.MetroColorStyle.Orange;
     this.metroStyleManager1.Theme = MetroFramework.MetroThemeStyle.Dark;
     //
     // bunifuImageButton1
     //
     this.bunifuImageButton1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17)))));
     this.bunifuImageButton1.Cursor = System.Windows.Forms.Cursors.Hand;
     this.bunifuImageButton1.Image = ((System.Drawing.Image)(resources.GetObject("bunifuImageButton1.Image")));
     this.bunifuImageButton1.ImageActive = null;
     this.bunifuImageButton1.Location = new System.Drawing.Point(361, 28);
     this.bunifuImageButton1.Name = "bunifuImageButton1";
     this.bunifuImageButton1.Size = new System.Drawing.Size(46, 33);
     this.bunifuImageButton1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
     this.bunifuImageButton1.TabIndex = 41;
     this.bunifuImageButton1.TabStop = false;
     this.bunifuImageButton1.Zoom = 10;
     this.bunifuImageButton1.Click += new System.EventHandler(this.bunifuImageButton1_Click);
     //
     // agrergarcasa
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize = new System.Drawing.Size(414, 199);
     this.Controls.Add(this.bunifuImageButton1);
     this.Controls.Add(this.metroButton1);
     this.Controls.Add(this.metroComboBox1);
     this.Controls.Add(this.metroLink1);
     this.Controls.Add(this.metroLabel1);
     this.Name = "agrergarcasa";
     this.Text = "agrergar casa";
     this.Theme = MetroFramework.MetroThemeStyle.Dark;
     this.Load += new System.EventHandler(this.agrergarcasa_Load);
     ((System.ComponentModel.ISupportInitialize)(this.metroStyleManager1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.bunifuImageButton1)).EndInit();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
Exemplo n.º 30
0
        public void addbot(object socketConnection, int os)
        {
            Socket sock = socketConnection as Socket;
            //addr = sock.RemoteEndPoint.ToString();
            //string[] splitip = Regex.Split(addr, ":");
            string            ip             = sock.RemoteEndPoint.ToString();
            ToolStripMenuItem _commandPrompt = new ToolStripMenuItem();

            _commandPrompt.Text   = "Process List";
            _commandPrompt.Click += new EventHandler(_cmdmenustrip);

            ToolStripMenuItem _rdpmenu = new ToolStripMenuItem();

            _rdpmenu.Text   = "Remote Desktop";
            _rdpmenu.Click += new EventHandler(_rdpmenustrip);

            ToolStripMenuItem _camMenu = new ToolStripMenuItem();

            _camMenu.Text   = "Remote WebCam";
            _camMenu.Click += new EventHandler(_camMenustrip);
            ContextMenuStrip _menu = new ContextMenuStrip();

            _menu.Items.Add(_commandPrompt);
            _menu.Items.Add(_rdpmenu);
            _menu.Items.Add(_camMenu);

            if (this.InvokeRequired)
            {
                this.BeginInvoke((MethodInvoker) delegate()
                {
                    if (os == 10)
                    {
                        _panel = new Bunifu.Framework.UI.BunifuImageButton()
                        {
                            Name                  = ip,
                            BackColor             = Color.White,
                            ForeColor             = Color.DimGray,
                            BackgroundImage       = Properties.Resources.win10,
                            BackgroundImageLayout = ImageLayout.Center,
                            Size                  = new Size(200, 120),
                            Zoom                  = 3
                        };
                    }
                    if (os == 7)
                    {
                        _panel = new Bunifu.Framework.UI.BunifuImageButton()
                        {
                            Name                  = ip,
                            BackColor             = Color.White,
                            ForeColor             = Color.DimGray,
                            BackgroundImage       = Properties.Resources.win7,
                            BackgroundImageLayout = ImageLayout.Center,
                            Size                  = new Size(200, 120),
                            Zoom                  = 3
                        };
                    }
                    if (os == 2)//2 is a windows xp
                    {
                        _panel = new Bunifu.Framework.UI.BunifuImageButton()
                        {
                            Name                  = ip,
                            BackColor             = Color.White,
                            ForeColor             = Color.DimGray,
                            BackgroundImage       = Properties.Resources.microsoft_windows_logo,
                            BackgroundImageLayout = ImageLayout.Center,
                            Size                  = new Size(200, 120),
                            Zoom                  = 3
                        };
                    }
                    _btn = new MetroFramework.Controls.MetroButton()
                    {
                        Text = ip,
                        Dock = DockStyle.Bottom,
                        Size = new Size(144, 18),
                    };
                    _btn.Click += new EventHandler(ip_click);
                    _panel.Controls.Add(_btn);
                    _panel.ContextMenuStrip = _menu;
                    flowLayoutPanel1.Controls.Add(_panel);
                });
            }
        }