Ejemplo n.º 1
0
        private void timer1_Tick(object sender, EventArgs e)
        {
            MetroFramework.Controls.MetroLink pinglabel = (panel3.Visible)?metroLink5:pinglb;


            try
            {
                procs = Process.GetProcessesByName("League of Legends");
                if (procs.Length == 0)
                {
                    if (Program.MainFormInstance.Visible)
                    {
                        long ping = RiotTool.PingServer(Program.MainFormInstance.SelectedAccount.Region);
                        pinglabel.BeginInvoke(new MethodInvoker(delegate
                        {
                            if (ping != -1)
                            {
                                if (ping >= 150 && ping <= 300)
                                {
                                    pinglabel.Style = MetroColorStyle.Yellow;
                                }
                                else if (ping > 300)
                                {
                                    pinglabel.Style = MetroColorStyle.Red;
                                }
                                else
                                {
                                    pinglabel.Style = MetroColorStyle.Green;
                                }
                                pinglabel.Text = ping.ToString() + " ms";
                            }
                            else
                            {
                                pinglabel.Text  = ping.ToString() + " ms";
                                pinglabel.Style = MetroColorStyle.Purple;
                            }
                        }));
                    }
                }
                else if (RiotTool.Instance.NeedsToCheckLol(procs[0]))
                {
                    RiotTool.Instance.LolStarted(this, EventArgs.Empty);
                }

                procs = null;
                if (!CollectorThread.IsAlive)
                {
                    GCStack++;
                    if (GCStack >= 5)
                    {
                        CollectorThread.Start();
                    }
                }
            }
            catch
            {
                pinglabel.Style = MetroColorStyle.Magenta;
            }
        }
Ejemplo n.º 2
0
        private void lnkOptions_Click(object sender, EventArgs e)
        {
            MetroFramework.Controls.MetroLink lnkMenu = (MetroFramework.Controls.MetroLink)sender;
            Point ptLowerLeft = new Point(-125, -50);

            ptLowerLeft = lnkMenu.PointToScreen(ptLowerLeft);
            mnstpMas.Show(ptLowerLeft);
        }
 private void LnkRuta_Click(object sender, EventArgs e)
 {
     pgbCarga.Visible = true;
     MetroFramework.Controls.MetroLink lnkRuta = sender as MetroFramework.Controls.MetroLink;
     string[] PathL = sRutaActual.Split(new[] { lnkRuta.Text }, StringSplitOptions.None);
     sRutaLink = string.Format("{0}{1}/", PathL[0], lnkRuta.Text);
     lvCarpetas.Items.Clear();
     bgwLinks.RunWorkerAsync();
 }
Ejemplo n.º 4
0
 private void LnkComision_Click(object sender, EventArgs e)
 {
     //CAMBIA EL ESTADO DE PAGO DE UNA COMISIÓN Y ACTUALIZA LA LISTA DE COMISIONES PARA REFLEJAR LOS CAMBIOS
     MetroFramework.Controls.MetroLink Link = sender as MetroFramework.Controls.MetroLink;
     if (FlatMessageBox.Show("¿Está seguro de cambiar el estado de pago de esta comisión?", "SI", "NO", FlatMessageBoxIcon.Warning) == DialogResult.Yes)
     {
         Comision comision = new Comision();
         new Comision().marcarPagada(int.Parse(Link.Name));
         btnMostrarPagadas_Click(sender, e);
     }
 }
Ejemplo n.º 5
0
 private void InitializeControls()
 {
     metroLink                = new MetroFramework.Controls.MetroLink();
     metroLink.Image          = Properties.Resources.TriangleDown16;
     metroLink.NoFocusImage   = Properties.Resources.TriangleDown16g;
     metroLink.UseStyleColors = true;
     metroLink.Size           = new Size(16, 16);
     metroLink.Location       = new Point(Width - 16, 0);
     metroLink.Click         += MetroLink_Click;
     metroLink.Visible        = collapseDirection != CollapseDirectionStyle.None;
     metroLink.TabStop        = false;
     Controls.Add(metroLink);
 }
        public void ShowPaths()
        {
            flowLayoutPanel2.Controls.Clear();
            string[] PathL = sRutaActual.Split(new[] { txtCliente.Text }, StringSplitOptions.None);

            string[] PathLS = PathL[1].Split('/');

            for (int i = 1; i < PathLS.Length; i++)
            {
                MetroFramework.Controls.MetroLink lnkRuta = new MetroFramework.Controls.MetroLink();
                lnkRuta.AutoSize     = true;
                lnkRuta.AutoSizeMode = AutoSizeMode.GrowOnly;
                lnkRuta.Text         = PathLS[i];
                lnkRuta.FontSize     = MetroFramework.MetroLinkSize.Tall;
                lnkRuta.FontWeight   = MetroFramework.MetroLinkWeight.Regular;
                metroToolTip1.SetToolTip(lnkRuta, PathLS[i]);
                lnkRuta.Click += LnkRuta_Click;
                if (i == PathLS.Length - 2)
                {
                    lnkRuta.Enabled = false;
                }

                MaterialSkin.Controls.MaterialLabel lblSeparator = new MaterialSkin.Controls.MaterialLabel();
                lblSeparator.AutoSize  = false;
                lblSeparator.Size      = new Size(14, 27);
                lblSeparator.TextAlign = ContentAlignment.BottomLeft;
                lblSeparator.Text      = "➤";// "→";



                flowLayoutPanel2.Controls.Add(lnkRuta);
                if (i < (PathLS.Length - 2))
                {
                    flowLayoutPanel2.Controls.Add(lblSeparator);
                }
                else
                {
                    break;
                }
            }
        }
Ejemplo n.º 7
0
        private void lnkLlamar_Click(object sender, EventArgs e)
        {
            if (iIdEtapa == 7)
            {
                MakeCall(lblTelefono.Text.Replace(" ", string.Empty), sender, e);
            }
            else if (iIdEtapa == 8)
            {
                if (!string.IsNullOrEmpty(gridView2.GetFocusedRowCellValue("sTelOpcional").ToString().Replace(" ", string.Empty)))
                {
                    MetroFramework.Controls.MetroLink lnkMenu = (MetroFramework.Controls.MetroLink)sender;
                    Point ptLowerLeft = new Point(0, 0);
                    ptLowerLeft = lnkMenu.PointToScreen(ptLowerLeft);

                    btnTel1.Text = gridView2.GetFocusedRowCellValue("sTelefono").ToString();
                    btnTel2.Text = gridView2.GetFocusedRowCellValue("sTelOpcional").ToString();
                    mnstpMas.Show(ptLowerLeft);
                }
                else
                {
                    MakeCall(lblTelefono.Text.Replace(" ", string.Empty), sender, e);
                }
            }
        }
 /// <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();
 }
Ejemplo n.º 9
0
        private void BtnFolio_Click(object sender, EventArgs e)
        {
            Button btnFolio = sender as Button;

            StopPlayer();
            scFoliosAbiertos.Panel2.Controls.Clear();

            Caso caso = new Caso().InformacionCaso(int.Parse(btnFolio.Name));

            Panel pnlTitulo = new Panel();

            pnlTitulo.Height    = 2;
            pnlTitulo.Dock      = DockStyle.Top;
            pnlTitulo.BackColor = Color.FromArgb(174, 213, 129);

            PictureBox pctInfo = new PictureBox();

            pctInfo.BackgroundImage       = Properties.Resources.info_25px;
            pctInfo.Location              = new Point(30, 17);
            pctInfo.BackgroundImageLayout = ImageLayout.None;
            pctInfo.Height = 26;
            pctInfo.Width  = 26;

            Label lblTitulo = new Label();

            lblTitulo.Text      = "Detalles Folio " + caso.iIdCaso;
            lblTitulo.Location  = new Point(53, 18);             //29, 8
            lblTitulo.Font      = new Font("Calibri Light", 14); //122,23
            lblTitulo.Anchor    = AnchorStyles.Left | AnchorStyles.Top;
            lblTitulo.TextAlign = ContentAlignment.TopLeft;
            lblTitulo.Width     = 220;
            lblTitulo.ForeColor = Color.FromArgb(7, 22, 127);

            Label lblMotivo = new Label();

            lblMotivo.Text      = string.Format("Tipo de Llamada{0}{1}", Environment.NewLine, caso.sMotivo);
            lblMotivo.Location  = new Point(30, 55);             //480, 8
            lblMotivo.Font      = new Font("Calibri Light", 13); //122,23
            lblMotivo.Anchor    = AnchorStyles.Right | AnchorStyles.Top | AnchorStyles.Left;
            lblMotivo.TextAlign = ContentAlignment.TopLeft;
            lblMotivo.Width     = 150;
            lblMotivo.Height    = 45;

            Label lblFechaCreacion = new Label();

            lblFechaCreacion.Text      = string.Format("Fecha Solicitud{0}{1}", Environment.NewLine, caso.dtFechaCreacion);
            lblFechaCreacion.Location  = new Point(570, 55);            //30, 44 657, 55
            lblFechaCreacion.Font      = new Font("Calibri Light", 12); //122,23
            lblFechaCreacion.Anchor    = AnchorStyles.Left | AnchorStyles.Top;
            lblFechaCreacion.TextAlign = ContentAlignment.TopLeft;
            lblFechaCreacion.Width     = 220;
            lblFechaCreacion.Height    = 45;

            Label lblContador = new Label();

            lblContador.Text      = string.Format("Contador{0}{1} {2} {3}", Environment.NewLine, caso.sContadorNombre, caso.sContadorAPaterno, caso.sContadorAMaterno);
            lblContador.Location  = new Point(260, 55);            //29, 8
            lblContador.Font      = new Font("Calibri Light", 13); //122,23
            lblContador.Anchor    = AnchorStyles.Left | AnchorStyles.Top;
            lblContador.TextAlign = ContentAlignment.TopLeft;
            lblContador.Width     = 320;
            lblContador.Height    = 45;

            LollipopTextBox txtComentario = new LollipopTextBox();

            txtComentario.Multiline    = true;
            txtComentario.Text         = string.Format("Comentario{0}{1}", Environment.NewLine, caso.sDescripcion);
            txtComentario.Location     = new Point(33, 120);            //29, 8
            txtComentario.Font         = new Font("Calibri Light", 13); //122,23
            txtComentario.Width        = 750;                           //845
            txtComentario.Height       = 65;
            txtComentario.Anchor       = AnchorStyles.Left | AnchorStyles.Right | AnchorStyles.Top | AnchorStyles.Bottom;
            txtComentario.FocusedColor = "#FFA300";
            txtComentario.ReadOnly     = true;


            SplitContainer sCHistorial = new SplitContainer();

            sCHistorial.Location         = new Point(30, 200); //162
            sCHistorial.Width            = 385;                //450
            sCHistorial.Height           = 120;                //120
            sCHistorial.Anchor           = AnchorStyles.Left | AnchorStyles.Right | AnchorStyles.Bottom;
            sCHistorial.BackColor        = Color.FromArgb(227, 227, 227);
            sCHistorial.Panel1.BackColor = Color.FromArgb(236, 240, 241);   // Color.White;
            sCHistorial.Panel2.BackColor = Color.White;
            sCHistorial.SplitterWidth    = 1;
            sCHistorial.SplitterDistance = 180;


            //CONTROL SPLITCONTAINER DONDE SE MOSTRARAN LAS GRABACIONES
            SplitContainer sCGrabaciones = new SplitContainer();

            sCGrabaciones.Name             = "sCGrabaciones";
            sCGrabaciones.Location         = new Point(430, 200); //490, 200
            sCGrabaciones.Width            = 385;                 //385
            sCGrabaciones.Height           = 120;                 //94
            sCGrabaciones.Anchor           = AnchorStyles.Right | AnchorStyles.Bottom;
            sCGrabaciones.BackColor        = Color.FromArgb(236, 240, 241);
            sCGrabaciones.Panel1.BackColor = Color.FromArgb(236, 240, 241);
            sCGrabaciones.Panel2.BackColor = Color.White;
            sCGrabaciones.SplitterWidth    = 2;
            sCGrabaciones.SplitterDistance = 180; //170



            CasoHistorial casoHistorial = new CasoHistorial();

            LCasoHistorial = casoHistorial.GetListCasoHistorial(caso.iIdCaso);
            for (int i = 0; i < LCasoHistorial.Count; i++)
            {
                Button btnHistorial = new Button();
                btnHistorial.Location  = new Point(0, 24 * i + 0);                 //new Point(12, 24 * i + 0);
                btnHistorial.Name      = LCasoHistorial[i].iIdCasoHistorial.ToString();
                btnHistorial.Text      = "  " + LCasoHistorial[i].dtFechaCreacion.ToString();
                btnHistorial.Font      = new Font("Segoe UI", 9);
                btnHistorial.ForeColor = Color.FromArgb(105, 105, 105);
                btnHistorial.Width     = 180;                 //225//160
                btnHistorial.Height    = 24;
                btnHistorial.FlatStyle = FlatStyle.Flat;
                btnHistorial.FlatAppearance.BorderSize = 0;
                btnHistorial.Anchor            = AnchorStyles.Left | AnchorStyles.Right;
                btnHistorial.TextAlign         = ContentAlignment.MiddleLeft;
                btnHistorial.Cursor            = Cursors.Hand;
                btnHistorial.Image             = Properties.Resources.clock_16px1;
                btnHistorial.ImageAlign        = ContentAlignment.TopLeft;
                btnHistorial.TextImageRelation = TextImageRelation.ImageBeforeText;

                btnHistorial.Click += (s, ev) =>
                {
                    sCHistorial.Panel2.Controls.Clear();
                    CasoHistorial casoH             = new CasoHistorial().GetInfoCasoHistorial(int.Parse(btnHistorial.Name));
                    Label         lblFechaCreacionH = new Label();
                    lblFechaCreacionH.Width    = 200;
                    lblFechaCreacionH.Height   = 45;
                    lblFechaCreacionH.Location = new Point(10, 5);
                    lblFechaCreacionH.Text     = string.Format("Por: {0}{1}Fecha {2}", casoH.sUsuario, Environment.NewLine, casoH.dtFechaCreacion);

                    RichTextBox txtComentarioH = new RichTextBox();
                    txtComentarioH.Text        = string.Format("Comentario{0}{1}", Environment.NewLine, casoH.sComentario);
                    txtComentarioH.Location    = new Point(10, 65);             //29, 8//10, 35
                    txtComentarioH.Font        = new Font("Calibri Light", 11); //122,23
                    txtComentarioH.Width       = 180;                           //270
                    txtComentarioH.Height      = 58;
                    txtComentarioH.Anchor      = AnchorStyles.Left | AnchorStyles.Right;
                    txtComentarioH.BorderStyle = BorderStyle.None;
                    txtComentarioH.ReadOnly    = true;
                    txtComentarioH.BackColor   = Color.White;

                    sCHistorial.Panel2.Controls.Add(txtComentarioH);
                    sCHistorial.Panel2.Controls.Add(lblFechaCreacionH);
                };

                sCHistorial.Panel1.Controls.Add(btnHistorial);
            }

            //using (new NetworkConnection(PathFolderShared, _NetworkCredential))
            //{
            //OBTIENE UNA LISTA DE ARCHIVOS CON EXTENCIÓN DESDE UN DIRECTORIO Y SE AGREGAN A UNA LISTA
            //DirectoryInfo _DirectoryInfo   = new DirectoryInfo(@"\\192.169.143.34\\MiPyme_Files\\Documentos\\Grabaciones\\");
            DirectoryInfo          _DirectoryInfo = new DirectoryInfo(@"\\192.168.1.34\\Documentos\\" + LogicaCC.ConnectionString.FolderConnection + "\\Documentos\\Grabaciones\\");
            IEnumerable <FileInfo> fileList       = _DirectoryInfo.GetFiles("*.WAV", SearchOption.AllDirectories);

            sCGrabaciones.Panel1.Controls.Clear();
            int g = 0;

            foreach (FileInfo fi in fileList.Where(fi => fi.Name.Contains("Folio-" + caso.iIdCaso + "-")).OrderByDescending(fi => fi.Name))
            {
                g++;
                //BOTON QUE SE GENERA POR CADA ARCHIVO ENCONTRADO DE LA LISTA DE DOCUMENTPS FILTRADOS
                Button btnGrabacion = new Button();
                btnGrabacion.Location  = new Point(0, 24 * g + -23);                     //(0, 24 * g + 0);//0, 24 * g + -23
                btnGrabacion.Name      = fi.FullName;
                btnGrabacion.Text      = " " + fi.Name;
                btnGrabacion.Font      = new Font("Segoe UI", 9);
                btnGrabacion.ForeColor = Color.FromArgb(105, 105, 105);
                btnGrabacion.Width     = 180;                     //225
                btnGrabacion.Height    = 24;
                btnGrabacion.TextAlign = ContentAlignment.MiddleLeft;
                btnGrabacion.Cursor    = Cursors.Hand;
                btnGrabacion.FlatStyle = FlatStyle.Flat;
                btnGrabacion.FlatAppearance.BorderSize = 0;
                btnGrabacion.Image             = Properties.Resources.microphone_16px1;
                btnGrabacion.ImageAlign        = ContentAlignment.TopLeft;
                btnGrabacion.TextImageRelation = TextImageRelation.ImageBeforeText;
                btnGrabacion.AutoEllipsis      = true;

                //EVENTO CLICK DEL BOTON GRANACIÓN
                btnGrabacion.Click += (s, ev) =>
                {
                    StopPlayer();
                    sCGrabaciones.Panel2.Controls.Clear();
                    //TITULO DE LA GRABACIÓN
                    Label lblGrabacion = new Label();
                    lblGrabacion.Location  = new Point(65, 30);
                    lblGrabacion.Text      = "Grabación";
                    lblGrabacion.Font      = new Font("Calibri Light", 10);
                    lblGrabacion.ForeColor = Color.FromArgb(105, 105, 105);

                    //NOMBRE DE LA GRABACIÓN
                    Label lblNombreGrabacion = new Label();
                    lblNombreGrabacion.Location  = new Point(5, 4);
                    lblNombreGrabacion.Text      = fi.Name;
                    lblNombreGrabacion.Font      = new Font("Calibri Light", 10);
                    lblNombreGrabacion.ForeColor = Color.FromArgb(105, 105, 105);
                    lblNombreGrabacion.Width     = 180;
                    lblNombreGrabacion.Height    = 20;

                    //CONTROL LINK PARA REPRODUCIR LAS GRABACIONES
                    Bitmap play_25px = Properties.Resources.play_25px1;
                    Bitmap stop_25px = Properties.Resources.stop_25px1;
                    MetroFramework.Controls.MetroLink lnkPlayer = new MetroFramework.Controls.MetroLink();
                    lnkPlayer.Image     = play_25px;
                    lnkPlayer.Location  = new Point(85, 50);
                    lnkPlayer.ImageSize = 25;
                    lnkPlayer.Width     = 25;
                    lnkPlayer.Height    = 25;
                    lnkPlayer.Cursor    = Cursors.Hand;

                    //CONTROL PARA REPRODUCIR AUDIO
                    AxWindowsMediaPlayer axWindowsMediaPlayer1 = new AxWindowsMediaPlayer();
                    axWindowsMediaPlayer1.Location = new Point(30, 85);    //(30, 85);
                    axWindowsMediaPlayer1.Width    = 140;
                    axWindowsMediaPlayer1.Height   = 50;

                    axWindowsMediaPlayer1.PlayStateChange += (object senderr, _WMPOCXEvents_PlayStateChangeEvent es) =>
                    {
                        if (es.newState == 8)
                        {
                            lnkPlayer.Image = play_25px;
                            lnkPlayer.Refresh();
                        }
                    };

                    Panel pnl1 = new Panel();
                    pnl1.BackColor = Color.White;
                    pnl1.Location  = new Point(30, 83);
                    pnl1.Width     = 140;
                    pnl1.Height    = 10;

                    Panel pnl2 = new Panel();
                    pnl2.BackColor = Color.White;
                    pnl2.Location  = new Point(30, 103);
                    pnl2.Width     = 140;
                    pnl2.Height    = 34;

                    Panel pnl3 = new Panel();
                    pnl3.BackColor = Color.White;
                    pnl3.Location  = new Point(30, 83);
                    pnl3.Width     = 28;
                    pnl3.Height    = 50;

                    Panel pnl4 = new Panel();
                    pnl4.BackColor = Color.White;
                    pnl4.Location  = new Point(142, 83);
                    pnl4.Width     = 28;
                    pnl4.Height    = 50;

                    //EVENTO CLICK DEL CONTROL METROLINK
                    lnkPlayer.Click += (se, eva) =>
                    {
                        string path = btnGrabacion.Name;

                        axWindowsMediaPlayer1.URL = path;

                        if (lnkPlayer.Image == play_25px)
                        {
                            lnkPlayer.Image = stop_25px;
                            axWindowsMediaPlayer1.Ctlcontrols.play();
                        }
                        else
                        {
                            lnkPlayer.Image = play_25px;
                            axWindowsMediaPlayer1.Ctlcontrols.stop();
                        }
                    };
                    sCGrabaciones.Panel2.Controls.Add(lnkPlayer);
                    sCGrabaciones.Panel2.Controls.Add(lblNombreGrabacion);
                    sCGrabaciones.Panel2.Controls.Add(lblGrabacion);
                    sCGrabaciones.Panel2.Controls.Add(pnl1);
                    sCGrabaciones.Panel2.Controls.Add(pnl2);
                    sCGrabaciones.Panel2.Controls.Add(pnl3);
                    sCGrabaciones.Panel2.Controls.Add(pnl4);
                    sCGrabaciones.Panel2.Controls.Add(axWindowsMediaPlayer1);
                };
                sCGrabaciones.Panel1.Controls.Add(btnGrabacion);
            }
            //}

            LollipopButton btnSeguimiento = new LollipopButton();

            btnSeguimiento.Location = new Point(620, 18);
            btnSeguimiento.Name     = caso.iIdCaso.ToString();
            btnSeguimiento.Text     = "Dar Seguimiento";
            btnSeguimiento.Width    = 126;
            btnSeguimiento.Height   = 24;
            btnSeguimiento.Anchor   = AnchorStyles.Right | AnchorStyles.Top;
            btnSeguimiento.Cursor   = Cursors.Hand;
            btnSeguimiento.Tag      = caso.sMotivo;
            btnSeguimiento.BGColor  = "#2196F3";
            btnSeguimiento.Click   += BtnSeguimiento_Click;

            //AGREGAMOS LOS CONTROLES AL PANEL 2
            scFoliosAbiertos.Panel2.Controls.Add(pnlTitulo);
            scFoliosAbiertos.Panel2.Controls.Add(pctInfo);
            scFoliosAbiertos.Panel2.Controls.Add(lblTitulo);
            scFoliosAbiertos.Panel2.Controls.Add(lblMotivo);
            scFoliosAbiertos.Panel2.Controls.Add(lblFechaCreacion);
            scFoliosAbiertos.Panel2.Controls.Add(lblContador);
            scFoliosAbiertos.Panel2.Controls.Add(txtComentario);
            scFoliosAbiertos.Panel2.Controls.Add(sCHistorial);
            scFoliosAbiertos.Panel2.Controls.Add(sCGrabaciones);
            scFoliosAbiertos.Panel2.Controls.Add(btnSeguimiento);
        }
Ejemplo n.º 10
0
        public void btnMostrarPagadas_Click(object sender, EventArgs e)
        {
            _frmPrincipal.btnVerDetallesFactura.Enabled          = false;
            _frmPrincipal.btnExportarConcentradoFacturas.Enabled = false;
            btnMostrarPagadas.Enabled = false;
            btnExportar.Enabled       = false;
            grdComisionistas.Enabled  = false;
            pblImportes.Enabled       = false;
            txtBuscar.Enabled         = false;
            label1.Enabled            = false;
            pnlComisiones.Controls.Clear();
            pnlPagoComisiones.Visible = true;

            var rowHandle = gridView1.FocusedRowHandle;
            var c1        = gridView1.GetRowCellValue(rowHandle, "iIdOperacion");
            var c2        = gridView1.GetRowCellValue(rowHandle, "PorcentajeTotal");

            //LSOSPS_Seleccionar_Operacion

            LogicaCC.LexaSIOOperLogica.OperacionComisionista Operacion = new LogicaCC.LexaSIOOperLogica.OperacionComisionista().OperacionInf(new LogicaCC.LexaSIOOperLogica.OperacionComisionista()
            {
                iIdOperacion = int.Parse(c1.ToString())
            });
            lblCliente.Name      = Operacion.iIdCliente.ToString();
            lblNoOperacion.Name  = c1.ToString();
            lblNoFactura.Text    = Operacion.sNoFactura;
            lblImporteTotal.Text = string.Format("{0:C}", Operacion.dImporte + (Operacion.dImporte * decimal.Parse("0.16")));
            lblCliente.Text      = Operacion.sNombre;
            //CARGA FECHA FACTURA
            if (!string.IsNullOrEmpty(Operacion.sFechaFactura))
            {
                dtFechaFactura.Value   = DateTime.Parse(Operacion.sFechaFactura);
                dtFechaFactura.Enabled = false;
                dtFechaFactura.Visible = true;
            }
            else
            {
                dtFechaFactura.Value = DateTime.Now;
                //dtFechaFactura.Enabled = true;
                dtFechaFactura.Visible = false;
            }
            //CARGA FECHA DEPOSITO
            if (!string.IsNullOrEmpty(Operacion.sFechaDeposito))
            {
                dtFechaDeposito.Value   = DateTime.Parse(Operacion.sFechaDeposito);
                dtFechaDeposito.Enabled = false;
                dtFechaDeposito.Visible = true;
            }
            else
            {
                dtFechaDeposito.Value = DateTime.Now;
                //dtFechaDeposito.Enabled = true;
                dtFechaDeposito.Visible = false;
            }
            ////ACTIVAR BOTON DE ACUERDO AL ESTADO DE LA FACTURA
            //if (!string.IsNullOrEmpty(Operacion.sFechaDeposito))
            //{
            //    btnFacturaPagada.Visible = false;
            //    //lnkCancelarFactura.Visible = false;
            //}
            //else
            //{
            //    btnFacturaPagada.Visible = true;
            //    //lnkCancelarFactura.Visible = true;
            //}
            btnFacturaPagada.Visible = false;



            Comision comision = new Comision();

            comisiones = comision.listaComisiones(int.Parse(c1.ToString()));
            for (int i = 0; i < comisiones.Count; i++)
            {
                //CREAMOS CONTROLES
                Panel      pnlComision = new Panel();
                PictureBox ptbMarca    = new PictureBox();
                MetroFramework.Controls.MetroLink lnkComision = new MetroFramework.Controls.MetroLink();
                Label lblNombre      = new Label();
                Label lblNoOperacion = new Label();
                Label lblImporte     = new Label();
                Panel pnlLinea       = new Panel();


                //PANEL
                pnlComision.Location = new Point(10, 70 * i + 10);
                pnlComision.Name     = comisiones[i].iIdOperacionComisionista.ToString();
                pnlComision.Width    = 480;
                pnlComision.Height   = 65;
                //pnlComision.BackColor = Color.Gray;
                //IMAGEN: MARCA
                ptbMarca.Image    = Properties.Resources.Check_01;
                ptbMarca.Location = new Point(0, 16);
                ptbMarca.SizeMode = PictureBoxSizeMode.AutoSize;
                //LABEL: NOMBRE
                lblNombre.Location = new Point(15, 10);
                //lblNombre.Text          = comisiones[i].sNombreComisionista.ToString();
                lblNombre.Text     = comisiones[i].sNombreComisionista;
                lblNombre.Font     = new Font("Segoe UI", 13);
                lblNombre.AutoSize = true;
                //LABEL: NOOPERACION
                lblNoOperacion.Location = new Point(18, 33);
                lblNoOperacion.Text     = "Operación No. " + comisiones[i].sNoOperacion.ToString();
                lblNoOperacion.Font     = new Font("Segoe UI", 9);
                lblNoOperacion.AutoSize = true;
                //LABEL: IMPORTE
                lblImporte.Location = new Point(300, 18);
                //lblImporte.Text         = String.Format("{0:C}", comisiones[i].dImporte);
                if (comisiones[i].iIdTipoUsuario == 20010)
                {
                    lblImporte.Text = String.Format("{0:C}", (Operacion.dImporte + (Operacion.dImporte * decimal.Parse("0.16"))) * decimal.Parse(c2.ToString()));
                }
                else
                {
                    lblImporte.Text = String.Format("{0:C}", (Operacion.dImporte + (Operacion.dImporte * decimal.Parse("0.16"))) * decimal.Parse("0.01"));
                }
                lblImporte.Font = new Font("Segoe UI", 15);
                //lblImporte.AutoSize   = true;
                lblImporte.TextAlign = ContentAlignment.MiddleRight;
                lblImporte.Width     = 170;
                lblImporte.Height    = 28;
                //lblImporte.BackColor  = Color.Gray;
                //LINK: PAGAR
                //lnkComision.Location  = new Point(118, 35);
                //lnkComision.Location  = new Point(305, 45);
                lnkComision.Name      = comisiones[i].iIdOperacionComisionista.ToString();
                lnkComision.Location  = new Point(18, 48);
                lnkComision.Text      = "Marcar como pagada";
                lnkComision.Width     = 125;
                lnkComision.Height    = 16;
                lnkComision.TextAlign = ContentAlignment.TopLeft;
                lnkComision.ForeColor = Color.FromArgb(0, 176, 240);
                lnkComision.Cursor    = Cursors.Hand;
                lnkComision.Click    += LnkComision_Click;
                //PANEL: LINEA
                pnlLinea.BackColor = Color.FromArgb(225, 225, 225);
                pnlLinea.Location  = new Point(50, 64);
                pnlLinea.Width     = 380;
                pnlLinea.Height    = 1;

                if (comisiones[i].bPagada)
                {
                    pnlComision.Controls.Add(ptbMarca);
                }
                pnlComision.Controls.Add(lblNombre);
                pnlComision.Controls.Add(lblNoOperacion);
                pnlComision.Controls.Add(lblImporte);
                //if(!comisiones[i].bPagada)
                //    pnlComision.Controls.Add(lnkComision);
                pnlComision.Controls.Add(pnlLinea);
                pnlComisiones.Controls.Add(pnlComision);
            }
        }
 /// <summary>
 /// 设计器支持所需的方法 - 不要修改
 /// 使用代码编辑器修改此方法的内容。
 /// </summary>
 private void InitializeComponent()
 {
     MetroFramework.Controls.MetroLink metroLink1;
     this.metroStyleManager = new MetroFramework.Components.MetroStyleManager();
     this.metroTabControl1  = new MetroFramework.Controls.MetroTabControl();
     this.metroToggle1      = new MetroFramework.Controls.MetroToggle();
     this.metroTabControl2  = new MetroFramework.Controls.MetroTabControl();
     this.系部信息Tile          = new MetroFramework.Controls.MetroTile();
     this.班级信息Tile          = new MetroFramework.Controls.MetroTile();
     this.学生信息Tile          = new MetroFramework.Controls.MetroTile();
     this.课程信息Tile          = new MetroFramework.Controls.MetroTile();
     this.学生选课表Tile         = new MetroFramework.Controls.MetroTile();
     this.LINQTile          = new MetroFramework.Controls.MetroTile();
     this.关于Tile            = new MetroFramework.Controls.MetroTile();
     this.退出Tile            = new MetroFramework.Controls.MetroTile();
     this.metroTile1        = new MetroFramework.Controls.MetroTile();
     this.metroTile2        = new MetroFramework.Controls.MetroTile();
     metroLink1             = new MetroFramework.Controls.MetroLink();
     this.SuspendLayout();
     //
     // metroLink1
     //
     metroLink1.CustomBackground = false;
     metroLink1.FontSize         = MetroFramework.MetroLinkSize.Small;
     metroLink1.FontWeight       = MetroFramework.MetroLinkWeight.Bold;
     metroLink1.Location         = new System.Drawing.Point(0, 653);
     metroLink1.Name             = "metroLink1";
     metroLink1.Size             = new System.Drawing.Size(625, 23);
     metroLink1.Style            = MetroFramework.MetroColorStyle.Blue;
     metroLink1.StyleManager     = this.metroStyleManager;
     metroLink1.TabIndex         = 4;
     metroLink1.Text             = "项目设计:许程远 西北工业大学";
     metroLink1.TextAlign        = System.Drawing.ContentAlignment.MiddleLeft;
     metroLink1.Theme            = MetroFramework.MetroThemeStyle.Light;
     metroLink1.UseStyleColors   = true;
     metroLink1.Click           += new System.EventHandler(this.metroLink1_Click);
     //
     // metroStyleManager
     //
     this.metroStyleManager.OwnerForm = this;
     this.metroStyleManager.Style     = MetroFramework.MetroColorStyle.Blue;
     this.metroStyleManager.Theme     = MetroFramework.MetroThemeStyle.Light;
     //
     // metroTabControl1
     //
     this.metroTabControl1.CustomBackground = false;
     this.metroTabControl1.FontSize         = MetroFramework.MetroTabControlSize.Medium;
     this.metroTabControl1.FontWeight       = MetroFramework.MetroTabControlWeight.Light;
     this.metroTabControl1.Location         = new System.Drawing.Point(0, 0);
     this.metroTabControl1.Name             = "metroTabControl1";
     this.metroTabControl1.Size             = new System.Drawing.Size(200, 100);
     this.metroTabControl1.Style            = MetroFramework.MetroColorStyle.Blue;
     this.metroTabControl1.StyleManager     = null;
     this.metroTabControl1.TabIndex         = 0;
     this.metroTabControl1.TextAlign        = System.Drawing.ContentAlignment.MiddleLeft;
     this.metroTabControl1.Theme            = MetroFramework.MetroThemeStyle.Light;
     this.metroTabControl1.UseStyleColors   = false;
     //
     // metroToggle1
     //
     this.metroToggle1.AutoSize         = true;
     this.metroToggle1.CustomBackground = false;
     this.metroToggle1.DisplayStatus    = true;
     this.metroToggle1.FontSize         = MetroFramework.MetroLinkSize.Small;
     this.metroToggle1.FontWeight       = MetroFramework.MetroLinkWeight.Regular;
     this.metroToggle1.Location         = new System.Drawing.Point(0, 0);
     this.metroToggle1.Name             = "metroToggle1";
     this.metroToggle1.Size             = new System.Drawing.Size(104, 24);
     this.metroToggle1.Style            = MetroFramework.MetroColorStyle.Blue;
     this.metroToggle1.StyleManager     = null;
     this.metroToggle1.TabIndex         = 0;
     this.metroToggle1.Text             = "Off";
     this.metroToggle1.Theme            = MetroFramework.MetroThemeStyle.Light;
     this.metroToggle1.UseStyleColors   = false;
     //
     // metroTabControl2
     //
     this.metroTabControl2.CustomBackground = false;
     this.metroTabControl2.FontSize         = MetroFramework.MetroTabControlSize.Medium;
     this.metroTabControl2.FontWeight       = MetroFramework.MetroTabControlWeight.Light;
     this.metroTabControl2.ItemSize         = new System.Drawing.Size(131, 36);
     this.metroTabControl2.Location         = new System.Drawing.Point(0, 0);
     this.metroTabControl2.Name             = "metroTabControl2";
     this.metroTabControl2.Size             = new System.Drawing.Size(200, 100);
     this.metroTabControl2.Style            = MetroFramework.MetroColorStyle.Blue;
     this.metroTabControl2.StyleManager     = null;
     this.metroTabControl2.TabIndex         = 0;
     this.metroTabControl2.TextAlign        = System.Drawing.ContentAlignment.MiddleLeft;
     this.metroTabControl2.Theme            = MetroFramework.MetroThemeStyle.Light;
     this.metroTabControl2.UseStyleColors   = false;
     //
     // 系部信息Tile
     //
     this.系部信息Tile.ActiveControl = null;
     this.系部信息Tile.Location      = new System.Drawing.Point(78, 154);
     this.系部信息Tile.Name          = "系部信息Tile";
     this.系部信息Tile.Size          = new System.Drawing.Size(128, 128);
     this.系部信息Tile.Style         = MetroFramework.MetroColorStyle.Blue;
     this.系部信息Tile.StyleManager  = this.metroStyleManager;
     this.系部信息Tile.TabIndex      = 5;
     this.系部信息Tile.TabStop       = false;
     this.系部信息Tile.Text          = "系部信息";
     this.系部信息Tile.Theme         = MetroFramework.MetroThemeStyle.Light;
     this.系部信息Tile.TileCount     = 0;
     this.系部信息Tile.Click        += new System.EventHandler(this.metroTile1_Click);
     //
     // 班级信息Tile
     //
     this.班级信息Tile.ActiveControl = null;
     this.班级信息Tile.Location      = new System.Drawing.Point(230, 154);
     this.班级信息Tile.Name          = "班级信息Tile";
     this.班级信息Tile.Size          = new System.Drawing.Size(128, 128);
     this.班级信息Tile.Style         = MetroFramework.MetroColorStyle.Blue;
     this.班级信息Tile.StyleManager  = this.metroStyleManager;
     this.班级信息Tile.TabIndex      = 6;
     this.班级信息Tile.Text          = "班级信息";
     this.班级信息Tile.Theme         = MetroFramework.MetroThemeStyle.Light;
     this.班级信息Tile.TileCount     = 0;
     this.班级信息Tile.Click        += new System.EventHandler(this.metroTile2_Click);
     //
     // 学生信息Tile
     //
     this.学生信息Tile.ActiveControl = null;
     this.学生信息Tile.DialogResult  = System.Windows.Forms.DialogResult.OK;
     this.学生信息Tile.Location      = new System.Drawing.Point(382, 154);
     this.学生信息Tile.Name          = "学生信息Tile";
     this.学生信息Tile.Size          = new System.Drawing.Size(128, 128);
     this.学生信息Tile.Style         = MetroFramework.MetroColorStyle.Blue;
     this.学生信息Tile.StyleManager  = this.metroStyleManager;
     this.学生信息Tile.TabIndex      = 7;
     this.学生信息Tile.Text          = "学生信息";
     this.学生信息Tile.Theme         = MetroFramework.MetroThemeStyle.Light;
     this.学生信息Tile.TileCount     = 0;
     this.学生信息Tile.Click        += new System.EventHandler(this.metroTile3_Click);
     //
     // 课程信息Tile
     //
     this.课程信息Tile.ActiveControl = null;
     this.课程信息Tile.Location      = new System.Drawing.Point(542, 154);
     this.课程信息Tile.Name          = "课程信息Tile";
     this.课程信息Tile.Size          = new System.Drawing.Size(128, 128);
     this.课程信息Tile.Style         = MetroFramework.MetroColorStyle.Blue;
     this.课程信息Tile.StyleManager  = this.metroStyleManager;
     this.课程信息Tile.TabIndex      = 8;
     this.课程信息Tile.Text          = "课程信息";
     this.课程信息Tile.Theme         = MetroFramework.MetroThemeStyle.Light;
     this.课程信息Tile.TileCount     = 0;
     this.课程信息Tile.Click        += new System.EventHandler(this.metroTile4_Click);
     //
     // 学生选课表Tile
     //
     this.学生选课表Tile.ActiveControl = null;
     this.学生选课表Tile.Location      = new System.Drawing.Point(78, 304);
     this.学生选课表Tile.Name          = "学生选课表Tile";
     this.学生选课表Tile.Size          = new System.Drawing.Size(128, 128);
     this.学生选课表Tile.Style         = MetroFramework.MetroColorStyle.Blue;
     this.学生选课表Tile.StyleManager  = this.metroStyleManager;
     this.学生选课表Tile.TabIndex      = 9;
     this.学生选课表Tile.Text          = "学生选课表";
     this.学生选课表Tile.Theme         = MetroFramework.MetroThemeStyle.Light;
     this.学生选课表Tile.TileCount     = 0;
     this.学生选课表Tile.Click        += new System.EventHandler(this.学生选课表Tile_Click);
     //
     // LINQTile
     //
     this.LINQTile.ActiveControl = null;
     this.LINQTile.Location      = new System.Drawing.Point(230, 304);
     this.LINQTile.Name          = "LINQTile";
     this.LINQTile.Size          = new System.Drawing.Size(128, 128);
     this.LINQTile.Style         = MetroFramework.MetroColorStyle.Blue;
     this.LINQTile.StyleManager  = this.metroStyleManager;
     this.LINQTile.TabIndex      = 10;
     this.LINQTile.Text          = "查询信息";
     this.LINQTile.Theme         = MetroFramework.MetroThemeStyle.Light;
     this.LINQTile.TileCount     = 0;
     this.LINQTile.Click        += new System.EventHandler(this.LINQTile_Click);
     //
     // 关于Tile
     //
     this.关于Tile.ActiveControl = null;
     this.关于Tile.Location      = new System.Drawing.Point(382, 457);
     this.关于Tile.Name          = "关于Tile";
     this.关于Tile.Size          = new System.Drawing.Size(128, 128);
     this.关于Tile.Style         = MetroFramework.MetroColorStyle.Blue;
     this.关于Tile.StyleManager  = this.metroStyleManager;
     this.关于Tile.TabIndex      = 11;
     this.关于Tile.Text          = "关于";
     this.关于Tile.Theme         = MetroFramework.MetroThemeStyle.Light;
     this.关于Tile.TileCount     = 0;
     this.关于Tile.Click        += new System.EventHandler(this.metroTile7_Click);
     //
     // 退出Tile
     //
     this.退出Tile.ActiveControl = null;
     this.退出Tile.Location      = new System.Drawing.Point(542, 457);
     this.退出Tile.Name          = "退出Tile";
     this.退出Tile.Size          = new System.Drawing.Size(128, 128);
     this.退出Tile.Style         = MetroFramework.MetroColorStyle.Blue;
     this.退出Tile.StyleManager  = this.metroStyleManager;
     this.退出Tile.TabIndex      = 12;
     this.退出Tile.Text          = "退出";
     this.退出Tile.Theme         = MetroFramework.MetroThemeStyle.Light;
     this.退出Tile.TileCount     = 0;
     this.退出Tile.Click        += new System.EventHandler(this.metroTile8_Click);
     //
     // metroTile1
     //
     this.metroTile1.ActiveControl = null;
     this.metroTile1.Location      = new System.Drawing.Point(78, 457);
     this.metroTile1.Name          = "metroTile1";
     this.metroTile1.Size          = new System.Drawing.Size(128, 128);
     this.metroTile1.Style         = MetroFramework.MetroColorStyle.Blue;
     this.metroTile1.StyleManager  = this.metroStyleManager;
     this.metroTile1.TabIndex      = 13;
     this.metroTile1.Text          = "界面主题";
     this.metroTile1.Theme         = MetroFramework.MetroThemeStyle.Light;
     this.metroTile1.TileCount     = 0;
     this.metroTile1.Click        += new System.EventHandler(this.metroTile1_Click_1);
     //
     // metroTile2
     //
     this.metroTile2.ActiveControl = null;
     this.metroTile2.Location      = new System.Drawing.Point(542, 304);
     this.metroTile2.Name          = "metroTile2";
     this.metroTile2.Size          = new System.Drawing.Size(128, 128);
     this.metroTile2.Style         = MetroFramework.MetroColorStyle.Blue;
     this.metroTile2.StyleManager  = this.metroStyleManager;
     this.metroTile2.TabIndex      = 14;
     this.metroTile2.Text          = "界面风格";
     this.metroTile2.Theme         = MetroFramework.MetroThemeStyle.Light;
     this.metroTile2.TileCount     = 0;
     this.metroTile2.Click        += new System.EventHandler(this.metroTile2_Click_1);
     //
     // frmMain
     //
     this.AutoScaleDimensions   = new System.Drawing.SizeF(8F, 15F);
     this.AutoScaleMode         = System.Windows.Forms.AutoScaleMode.Font;
     this.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
     this.ClientSize            = new System.Drawing.Size(794, 681);
     this.Controls.Add(this.metroTile2);
     this.Controls.Add(this.metroTile1);
     this.Controls.Add(this.退出Tile);
     this.Controls.Add(this.关于Tile);
     this.Controls.Add(this.LINQTile);
     this.Controls.Add(this.学生选课表Tile);
     this.Controls.Add(this.课程信息Tile);
     this.Controls.Add(this.学生信息Tile);
     this.Controls.Add(this.班级信息Tile);
     this.Controls.Add(this.系部信息Tile);
     this.Controls.Add(metroLink1);
     this.ForeColor    = System.Drawing.SystemColors.ControlText;
     this.Location     = new System.Drawing.Point(0, 0);
     this.Name         = "frmMain";
     this.Opacity      = 0.8D;
     this.StyleManager = this.metroStyleManager;
     this.Text         = "学生学籍管理系统";
     this.Load        += new System.EventHandler(this.frmMain_Load);
     this.Resize      += new System.EventHandler(this.frnMain_Resize);
     this.ResumeLayout(false);
 }
Ejemplo n.º 12
0
        /*Metodo para pasar las credenciales y tener acceso a la carpeta MiPyme_Files*/
        //NetworkCredential _NetworkCredential = new NetworkCredential(AccessFiles.sUsuario, AccessFiles.sContraseña);
        //string PathFolderShared = @"\\192.169.143.34\Data_Files";

        //public FSeguimientoFolios(int iFolio)
        //{
        //    InitializeComponent();
        //    informacion(iFolio);
        //}

        /*Función para consultar si existen grabaciones del folio*/
        public void informacion(int ifolio)
        {
            scFoliosAbiertos.Controls.Clear();
            Llamada caso = new Llamada().InformacionCaso(ifolio);

            //LABEL QUE MUESTRA EL FOLIO QUE SE ESTA MOSTRANDO DETALLADAMENTE
            Label lblTitulo = new Label();

            lblTitulo.Text      = "Detalles Folio " + caso.iIdFolio;
            lblTitulo.Location  = new Point(14, 18);             //29, 8
            lblTitulo.Font      = new Font("Calibri Light", 14); //122,23
            lblTitulo.Anchor    = AnchorStyles.Left | AnchorStyles.Top;
            lblTitulo.TextAlign = ContentAlignment.TopLeft;
            lblTitulo.Width     = 150;

            //LABEL QUE MUESTRA EL MOTIVO DE LA LLAMADA
            Label lblMotivo = new Label();

            lblMotivo.Text      = string.Format("Tipo de Llamada{0}{1}", Environment.NewLine, caso.sMotivo);
            lblMotivo.Location  = new Point(30, 55);             //480, 8
            lblMotivo.Font      = new Font("Calibri Light", 13); //122,23
            lblMotivo.Anchor    = AnchorStyles.Right | AnchorStyles.Top | AnchorStyles.Left;
            lblMotivo.TextAlign = ContentAlignment.TopLeft;
            lblMotivo.Width     = 150;
            lblMotivo.Height    = 45;

            //LABEL QUE MUESTRA LA FECHA DE SOLICITUD DEL FOLIO
            Label lblFechaCreacion = new Label();

            lblFechaCreacion.Text      = string.Format("Fecha de Solicitud{0}{1}", Environment.NewLine, caso.dtFechaCreacion);
            lblFechaCreacion.Location  = new Point(657, 55);            //657, 8
            lblFechaCreacion.Font      = new Font("Calibri Light", 13); //122,23
            lblFechaCreacion.Anchor    = AnchorStyles.Left | AnchorStyles.Top;
            lblFechaCreacion.TextAlign = ContentAlignment.TopLeft;
            lblFechaCreacion.Width     = 220;
            lblFechaCreacion.Height    = 45;

            //LABEL QUE MUESTRA LA FECHA DE CIERRE DEL FOLIO
            Label lblFechaCierre = new Label();

            lblFechaCierre.Text      = string.Format("Fecha de Cierre{0}{1}", Environment.NewLine, caso.sFechaCierre);
            lblFechaCierre.Location  = new Point(657, 120);           //657, 8
            lblFechaCierre.Font      = new Font("Calibri Light", 13); //122,23
            lblFechaCierre.Anchor    = AnchorStyles.Left | AnchorStyles.Top;
            lblFechaCierre.TextAlign = ContentAlignment.TopLeft;
            lblFechaCierre.Width     = 220;
            lblFechaCierre.Height    = 45;

            //LABEL QUE MUESTRA EL NÚMERO DE CLIENTE
            Label lblCliente = new Label();

            lblCliente.Text     = string.Format("No. cliente{0}{1}", Environment.NewLine, caso.sCliente);
            lblCliente.Location = new Point(30, 120);
            lblCliente.Font     = new Font("Calibri Light", 13);            //122,23
            lblCliente.Width    = 150;
            lblCliente.Height   = 45;

            //LABEL QUE MUESTRA EL NOMBRE DEL CLIENTE
            Label lblClienteNombre = new Label();

            lblClienteNombre.Text     = string.Format("Cliente{0}{1} {2}  {3}", Environment.NewLine, caso.sNombre, caso.sAPaterno, caso.sAMaterno);
            lblClienteNombre.Location = new Point(260, 120);
            lblClienteNombre.Font     = new Font("Calibri Light", 13);      //122,23
            lblClienteNombre.Width    = 320;
            lblClienteNombre.Height   = 45;

            //LABEL QUE MUESTRA EL NOMBRE DEL CONTADOR ASIGNADO
            Label lblContador = new Label();

            lblContador.Text      = string.Format("Contador{0}{1} {2} {3}", Environment.NewLine, caso.sContadorNombre, caso.sContadorAPaterno, caso.sContadorAMaterno);
            lblContador.Location  = new Point(260, 55);            //29, 8
            lblContador.Font      = new Font("Calibri Light", 13); //122,23
            lblContador.Anchor    = AnchorStyles.Left | AnchorStyles.Top;
            lblContador.TextAlign = ContentAlignment.TopLeft;
            lblContador.Width     = 320;
            lblContador.Height    = 45;

            //CONTROL RICHTEXTBOX DONDE SE MUESTRA LA DESCRIPCIÓN DEL FOLIO
            RichTextBox txtComentario = new RichTextBox();

            txtComentario.Text        = string.Format("Comentario{0}{1}", Environment.NewLine, caso.sDescripcion);
            txtComentario.Location    = new Point(30, 194);            //29, 8
            txtComentario.Font        = new Font("Calibri Light", 13); //122,23
            txtComentario.Width       = 845;                           //845
            txtComentario.Height      = 65;
            txtComentario.Anchor      = AnchorStyles.Left | AnchorStyles.Right;
            txtComentario.BorderStyle = BorderStyle.None;
            txtComentario.ReadOnly    = true;
            txtComentario.BackColor   = Color.White;
            txtComentario.Enabled     = false;

            Label lblHistorial = new Label();

            lblHistorial.Location  = new Point(30, 260);
            lblHistorial.Text      = "Llamadas";
            lblHistorial.Font      = new Font("Calibri Light", 14);
            lblHistorial.ForeColor = Color.FromArgb(105, 105, 105);

            Panel pnlLinea = new Panel();

            pnlLinea.Location    = new Point(30, 285);
            pnlLinea.BackColor   = Color.FromArgb(236, 240, 241);
            pnlLinea.Width       = 900;           //620
            pnlLinea.Height      = 1;
            pnlLinea.BorderStyle = BorderStyle.None;


            //CONTROL SPLITCONTAINER DONDE SE MOSTRARAN LAS GRABACIONES
            SplitContainer sCGrabaciones = new SplitContainer();

            sCGrabaciones.Name             = "sCGrabaciones";
            sCGrabaciones.Location         = new Point(30, 295);
            sCGrabaciones.Width            = 410; //620//845
            sCGrabaciones.Height           = 180;
            sCGrabaciones.Anchor           = AnchorStyles.Left | AnchorStyles.Right;
            sCGrabaciones.BackColor        = Color.FromArgb(236, 240, 241);
            sCGrabaciones.BackColor        = Color.FromArgb(236, 240, 241);
            sCGrabaciones.BackColor        = Color.White;
            sCGrabaciones.SplitterWidth    = 2;
            sCGrabaciones.SplitterDistance = 180;


            //using (new NetworkConnection(PathFolderShared, _NetworkCredential))
            //{
            //OBTIENE UNA LISTA DE ARCHIVOS CON EXTENCIÓN DESDE UN DIRECTORIO Y SE AGREGAN A UNA LISTA

            DirectoryInfo          _DirectoryInfo = new DirectoryInfo(@"\\192.168.1.34\Documentos\" + LogicaCC.ConnectionString.FolderConnection + @"\Documentos\Grabaciones");
            IEnumerable <FileInfo> fileList       = _DirectoryInfo.GetFiles("*.WAV", SearchOption.AllDirectories);

            sCGrabaciones.Panel1.Controls.Clear();
            // StopPlayer();
            int g = 0;

            foreach (FileInfo fi in fileList.Where(fi => fi.Name.Contains("Folio-" + caso.iIdFolio + "-")).OrderByDescending(fi => fi.Name))
            {
                // StopPlayer();
                g++;
                //BOTON QUE SE GENERA POR CADA ARCHIVO ENCONTRADO DE LA LISTA DE DOCUMENTPS FILTRADOS
                Button btnGrabacion = new Button();
                btnGrabacion.Location  = new Point(0, 24 * g + -23);                     //(0, 24 * g + 0);
                btnGrabacion.Name      = fi.FullName;
                btnGrabacion.Text      = " " + fi.Name;
                btnGrabacion.Font      = new Font("Segoe UI", 9);
                btnGrabacion.ForeColor = Color.FromArgb(105, 105, 105);
                btnGrabacion.Width     = 180;                     //225
                btnGrabacion.Height    = 24;
                btnGrabacion.TextAlign = ContentAlignment.MiddleLeft;
                btnGrabacion.Cursor    = Cursors.Hand;
                btnGrabacion.FlatStyle = FlatStyle.Flat;
                btnGrabacion.FlatAppearance.BorderSize = 0;
                btnGrabacion.Image             = Properties.Resources.microphone_16px;
                btnGrabacion.ImageAlign        = ContentAlignment.TopLeft;
                btnGrabacion.TextImageRelation = TextImageRelation.ImageBeforeText;
                btnGrabacion.AutoEllipsis      = true;

                //EVENTO CLICK DEL BOTON GRABACIÓN
                btnGrabacion.Click += (s, ev) =>
                {
                    StopPlayer();
                    sCGrabaciones.Panel2.Controls.Clear();
                    //TITULO DE LA GRABACIÓN
                    Label lblGrabacion = new Label();
                    lblGrabacion.Location  = new Point(100, 30);
                    lblGrabacion.Text      = "Grabación";
                    lblGrabacion.Font      = new Font("Calibri Light", 10);
                    lblGrabacion.ForeColor = Color.FromArgb(105, 105, 105);

                    //NOMBRE DE LA GRABACIÓN
                    Label lblNombreGrabacion = new Label();
                    lblNombreGrabacion.Location  = new Point(45, 4);
                    lblNombreGrabacion.Text      = fi.Name;
                    lblNombreGrabacion.Font      = new Font("Calibri Light", 10);
                    lblNombreGrabacion.ForeColor = Color.FromArgb(105, 105, 105);
                    lblNombreGrabacion.Width     = 220;
                    lblNombreGrabacion.Height    = 20;

                    //CONTROL LINK PARA REPRODUCIR LAS GRABACIONES
                    Bitmap play_25px = Properties.Resources.play_25px;
                    Bitmap stop_25px = Properties.Resources.stop_25px;
                    MetroFramework.Controls.MetroLink lnkPlayer = new MetroFramework.Controls.MetroLink();
                    lnkPlayer.Image     = play_25px;
                    lnkPlayer.Location  = new Point(120, 50);
                    lnkPlayer.ImageSize = 25;
                    lnkPlayer.Width     = 25;
                    lnkPlayer.Height    = 25;
                    lnkPlayer.Cursor    = Cursors.Hand;

                    //CONTROL PARA REPRODUCIR AUDIO
                    AxWindowsMediaPlayer axWindowsMediaPlayer1 = new AxWindowsMediaPlayer();
                    axWindowsMediaPlayer1.Location = new Point(30, 85);                 //(485, 85);
                    axWindowsMediaPlayer1.Width    = 190;
                    axWindowsMediaPlayer1.Height   = 50;

                    //ACTUALIZAR EL ICONO AL TERMINAR LA REPRODUCCION
                    axWindowsMediaPlayer1.PlayStateChange += (object senderr, _WMPOCXEvents_PlayStateChangeEvent es) =>
                    {
                        if (es.newState == 8)
                        {
                            lnkPlayer.Image = play_25px;
                            lnkPlayer.Refresh();
                        }
                    };

                    Panel pnl1 = new Panel();
                    pnl1.BackColor = Color.White;
                    pnl1.Location  = new Point(30, 83);
                    pnl1.Width     = 170;
                    pnl1.Height    = 10;

                    Panel pnl2 = new Panel();
                    pnl2.BackColor = Color.White;
                    pnl2.Location  = new Point(30, 103);
                    pnl2.Width     = 170;
                    pnl2.Height    = 34;

                    Panel pnl3 = new Panel();
                    pnl3.BackColor = Color.White;
                    pnl3.Location  = new Point(30, 83);
                    pnl3.Width     = 28;
                    pnl3.Height    = 50;

                    Panel pnl4 = new Panel();
                    pnl4.BackColor = Color.White;
                    pnl4.Location  = new Point(195, 83);     //420, 37
                    pnl4.Width     = 28;
                    pnl4.Height    = 50;

                    //EVENTO CLICK DEL CONTROL METROLINK
                    lnkPlayer.Click += (se, eva) =>
                    {
                        string path = btnGrabacion.Name;

                        axWindowsMediaPlayer1.URL = path;

                        if (lnkPlayer.Image == play_25px)
                        {
                            lnkPlayer.Image = stop_25px;
                            axWindowsMediaPlayer1.Ctlcontrols.play();
                        }
                        else
                        {
                            lnkPlayer.Image = play_25px;
                            axWindowsMediaPlayer1.Ctlcontrols.stop();
                        }
                    };

                    sCGrabaciones.Panel2.Controls.Add(lnkPlayer);
                    sCGrabaciones.Panel2.Controls.Add(lblNombreGrabacion);
                    sCGrabaciones.Panel2.Controls.Add(lblGrabacion);
                    sCGrabaciones.Panel2.Controls.Add(pnl1);
                    sCGrabaciones.Panel2.Controls.Add(pnl2);
                    sCGrabaciones.Panel2.Controls.Add(pnl3);
                    sCGrabaciones.Panel2.Controls.Add(pnl4);
                    sCGrabaciones.Panel2.Controls.Add(axWindowsMediaPlayer1);
                };
                sCGrabaciones.Panel1.Controls.Add(btnGrabacion);
            }
            //}
            //AGREGAMOS LOS CONTROLES AL PANEL 2
            scFoliosAbiertos.Controls.Add(lblTitulo);
            scFoliosAbiertos.Controls.Add(lblMotivo);
            scFoliosAbiertos.Controls.Add(lblFechaCreacion);
            scFoliosAbiertos.Controls.Add(lblFechaCierre);
            scFoliosAbiertos.Controls.Add(lblCliente);
            scFoliosAbiertos.Controls.Add(lblClienteNombre);
            scFoliosAbiertos.Controls.Add(lblContador);
            scFoliosAbiertos.Controls.Add(txtComentario);
            scFoliosAbiertos.Controls.Add(lblHistorial);
            scFoliosAbiertos.Controls.Add(pnlLinea);
            //scFoliosAbiertos.Panel2.Controls.Add(sCHistorial);
            scFoliosAbiertos.Controls.Add(sCGrabaciones);
        }
Ejemplo n.º 13
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     MetroFramework.Controls.MetroLink btnOkey;
     MetroFramework.Controls.MetroLink metroLink9;
     this.metroLink1  = new MetroFramework.Controls.MetroLink();
     this.metroLink2  = new MetroFramework.Controls.MetroLink();
     this.metroLink3  = new MetroFramework.Controls.MetroLink();
     this.metroLink4  = new MetroFramework.Controls.MetroLink();
     this.metroLink5  = new MetroFramework.Controls.MetroLink();
     this.metroLink6  = new MetroFramework.Controls.MetroLink();
     this.metroLink7  = new MetroFramework.Controls.MetroLink();
     this.metroLink8  = new MetroFramework.Controls.MetroLink();
     this.UpDownTuoi  = new System.Windows.Forms.NumericUpDown();
     this.UpDownThang = new System.Windows.Forms.NumericUpDown();
     this.UpDownQuyen = new System.Windows.Forms.NumericUpDown();
     this.UpDownNgay  = new System.Windows.Forms.NumericUpDown();
     btnOkey          = new MetroFramework.Controls.MetroLink();
     metroLink9       = new MetroFramework.Controls.MetroLink();
     ((System.ComponentModel.ISupportInitialize)(this.UpDownTuoi)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.UpDownThang)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.UpDownQuyen)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.UpDownNgay)).BeginInit();
     this.SuspendLayout();
     //
     // btnOkey
     //
     btnOkey.Anchor             = System.Windows.Forms.AnchorStyles.None;
     btnOkey.BackColor          = System.Drawing.Color.Snow;
     btnOkey.ForeColor          = System.Drawing.SystemColors.HotTrack;
     btnOkey.Image              = global::LTUDQL.Properties.Resources.i_but;
     btnOkey.ImageAlign         = System.Drawing.ContentAlignment.MiddleLeft;
     btnOkey.ImageSize          = 24;
     btnOkey.Location           = new System.Drawing.Point(35, 221);
     btnOkey.Name               = "btnOkey";
     btnOkey.Size               = new System.Drawing.Size(59, 29);
     btnOkey.TabIndex           = 87;
     btnOkey.Text               = "Okey";
     btnOkey.TextAlign          = System.Drawing.ContentAlignment.MiddleRight;
     btnOkey.UseCustomBackColor = true;
     btnOkey.UseCustomForeColor = true;
     btnOkey.UseSelectable      = true;
     btnOkey.Click             += new System.EventHandler(this.btnOkey_Click);
     //
     // metroLink9
     //
     metroLink9.Anchor             = System.Windows.Forms.AnchorStyles.None;
     metroLink9.BackColor          = System.Drawing.Color.Snow;
     metroLink9.ForeColor          = System.Drawing.SystemColors.HotTrack;
     metroLink9.Image              = global::LTUDQL.Properties.Resources.close;
     metroLink9.ImageAlign         = System.Drawing.ContentAlignment.MiddleLeft;
     metroLink9.ImageSize          = 24;
     metroLink9.Location           = new System.Drawing.Point(266, 221);
     metroLink9.Name               = "metroLink9";
     metroLink9.Size               = new System.Drawing.Size(68, 29);
     metroLink9.TabIndex           = 88;
     metroLink9.Text               = "Cancel";
     metroLink9.TextAlign          = System.Drawing.ContentAlignment.MiddleRight;
     metroLink9.UseCustomBackColor = true;
     metroLink9.UseCustomForeColor = true;
     metroLink9.UseSelectable      = true;
     metroLink9.Click             += new System.EventHandler(this.metroLink9_Click);
     //
     // metroLink1
     //
     this.metroLink1.Anchor             = System.Windows.Forms.AnchorStyles.None;
     this.metroLink1.FontSize           = MetroFramework.MetroLinkSize.Medium;
     this.metroLink1.FontWeight         = MetroFramework.MetroLinkWeight.Regular;
     this.metroLink1.ForeColor          = System.Drawing.Color.Snow;
     this.metroLink1.Location           = new System.Drawing.Point(35, 64);
     this.metroLink1.Name               = "metroLink1";
     this.metroLink1.Size               = new System.Drawing.Size(97, 23);
     this.metroLink1.TabIndex           = 0;
     this.metroLink1.Text               = "Tuổi Tối Thiểu";
     this.metroLink1.Theme              = MetroFramework.MetroThemeStyle.Dark;
     this.metroLink1.UseCustomForeColor = true;
     this.metroLink1.UseSelectable      = true;
     //
     // metroLink2
     //
     this.metroLink2.Anchor             = System.Windows.Forms.AnchorStyles.None;
     this.metroLink2.FontSize           = MetroFramework.MetroLinkSize.Medium;
     this.metroLink2.FontWeight         = MetroFramework.MetroLinkWeight.Regular;
     this.metroLink2.ForeColor          = System.Drawing.Color.Snow;
     this.metroLink2.Location           = new System.Drawing.Point(269, 63);
     this.metroLink2.Name               = "metroLink2";
     this.metroLink2.Size               = new System.Drawing.Size(56, 23);
     this.metroLink2.TabIndex           = 2;
     this.metroLink2.Text               = "Tuổi";
     this.metroLink2.Theme              = MetroFramework.MetroThemeStyle.Dark;
     this.metroLink2.UseCustomForeColor = true;
     this.metroLink2.UseSelectable      = true;
     //
     // metroLink3
     //
     this.metroLink3.Anchor             = System.Windows.Forms.AnchorStyles.None;
     this.metroLink3.FontSize           = MetroFramework.MetroLinkSize.Medium;
     this.metroLink3.FontWeight         = MetroFramework.MetroLinkWeight.Regular;
     this.metroLink3.ForeColor          = System.Drawing.Color.Snow;
     this.metroLink3.Location           = new System.Drawing.Point(269, 104);
     this.metroLink3.Name               = "metroLink3";
     this.metroLink3.Size               = new System.Drawing.Size(56, 23);
     this.metroLink3.TabIndex           = 5;
     this.metroLink3.Text               = "Tháng";
     this.metroLink3.Theme              = MetroFramework.MetroThemeStyle.Dark;
     this.metroLink3.UseCustomForeColor = true;
     this.metroLink3.UseSelectable      = true;
     //
     // metroLink4
     //
     this.metroLink4.Anchor             = System.Windows.Forms.AnchorStyles.None;
     this.metroLink4.FontSize           = MetroFramework.MetroLinkSize.Medium;
     this.metroLink4.FontWeight         = MetroFramework.MetroLinkWeight.Regular;
     this.metroLink4.ForeColor          = System.Drawing.Color.Snow;
     this.metroLink4.Location           = new System.Drawing.Point(35, 105);
     this.metroLink4.Name               = "metroLink4";
     this.metroLink4.Size               = new System.Drawing.Size(120, 23);
     this.metroLink4.TabIndex           = 3;
     this.metroLink4.Text               = "Hạn Sử Dụng Thẻ";
     this.metroLink4.Theme              = MetroFramework.MetroThemeStyle.Dark;
     this.metroLink4.UseCustomForeColor = true;
     this.metroLink4.UseSelectable      = true;
     //
     // metroLink5
     //
     this.metroLink5.Anchor             = System.Windows.Forms.AnchorStyles.None;
     this.metroLink5.FontSize           = MetroFramework.MetroLinkSize.Medium;
     this.metroLink5.FontWeight         = MetroFramework.MetroLinkWeight.Regular;
     this.metroLink5.ForeColor          = System.Drawing.Color.Snow;
     this.metroLink5.Location           = new System.Drawing.Point(269, 143);
     this.metroLink5.Name               = "metroLink5";
     this.metroLink5.Size               = new System.Drawing.Size(56, 23);
     this.metroLink5.TabIndex           = 8;
     this.metroLink5.Text               = "Quyển";
     this.metroLink5.Theme              = MetroFramework.MetroThemeStyle.Dark;
     this.metroLink5.UseCustomForeColor = true;
     this.metroLink5.UseSelectable      = true;
     //
     // metroLink6
     //
     this.metroLink6.Anchor             = System.Windows.Forms.AnchorStyles.None;
     this.metroLink6.FontSize           = MetroFramework.MetroLinkSize.Medium;
     this.metroLink6.FontWeight         = MetroFramework.MetroLinkWeight.Regular;
     this.metroLink6.ForeColor          = System.Drawing.Color.Snow;
     this.metroLink6.Location           = new System.Drawing.Point(35, 144);
     this.metroLink6.Name               = "metroLink6";
     this.metroLink6.Size               = new System.Drawing.Size(141, 23);
     this.metroLink6.TabIndex           = 6;
     this.metroLink6.Text               = "Số Lượng Sách Mượn";
     this.metroLink6.Theme              = MetroFramework.MetroThemeStyle.Dark;
     this.metroLink6.UseCustomForeColor = true;
     this.metroLink6.UseSelectable      = true;
     //
     // metroLink7
     //
     this.metroLink7.Anchor             = System.Windows.Forms.AnchorStyles.None;
     this.metroLink7.FontSize           = MetroFramework.MetroLinkSize.Medium;
     this.metroLink7.FontWeight         = MetroFramework.MetroLinkWeight.Regular;
     this.metroLink7.ForeColor          = System.Drawing.Color.Snow;
     this.metroLink7.Location           = new System.Drawing.Point(269, 180);
     this.metroLink7.Name               = "metroLink7";
     this.metroLink7.Size               = new System.Drawing.Size(56, 23);
     this.metroLink7.TabIndex           = 11;
     this.metroLink7.Text               = "Ngày";
     this.metroLink7.Theme              = MetroFramework.MetroThemeStyle.Dark;
     this.metroLink7.UseCustomForeColor = true;
     this.metroLink7.UseSelectable      = true;
     //
     // metroLink8
     //
     this.metroLink8.Anchor             = System.Windows.Forms.AnchorStyles.None;
     this.metroLink8.FontSize           = MetroFramework.MetroLinkSize.Medium;
     this.metroLink8.FontWeight         = MetroFramework.MetroLinkWeight.Regular;
     this.metroLink8.ForeColor          = System.Drawing.Color.Snow;
     this.metroLink8.Location           = new System.Drawing.Point(35, 181);
     this.metroLink8.Name               = "metroLink8";
     this.metroLink8.Size               = new System.Drawing.Size(129, 23);
     this.metroLink8.TabIndex           = 9;
     this.metroLink8.Text               = "Ngày Mượn Tối Đa";
     this.metroLink8.Theme              = MetroFramework.MetroThemeStyle.Dark;
     this.metroLink8.UseCustomForeColor = true;
     this.metroLink8.UseSelectable      = true;
     //
     // UpDownTuoi
     //
     this.UpDownTuoi.Anchor      = System.Windows.Forms.AnchorStyles.None;
     this.UpDownTuoi.BackColor   = System.Drawing.SystemColors.Desktop;
     this.UpDownTuoi.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.UpDownTuoi.Font        = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.UpDownTuoi.ForeColor   = System.Drawing.SystemColors.Info;
     this.UpDownTuoi.Location    = new System.Drawing.Point(194, 67);
     this.UpDownTuoi.Minimum     = new decimal(new int[] {
         1,
         0,
         0,
         0
     });
     this.UpDownTuoi.Name     = "UpDownTuoi";
     this.UpDownTuoi.Size     = new System.Drawing.Size(51, 21);
     this.UpDownTuoi.TabIndex = 12;
     this.UpDownTuoi.Value    = new decimal(new int[] {
         6,
         0,
         0,
         0
     });
     //
     // UpDownThang
     //
     this.UpDownThang.Anchor      = System.Windows.Forms.AnchorStyles.None;
     this.UpDownThang.BackColor   = System.Drawing.SystemColors.Desktop;
     this.UpDownThang.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.UpDownThang.Font        = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.UpDownThang.ForeColor   = System.Drawing.SystemColors.Info;
     this.UpDownThang.Location    = new System.Drawing.Point(194, 107);
     this.UpDownThang.Minimum     = new decimal(new int[] {
         1,
         0,
         0,
         0
     });
     this.UpDownThang.Name     = "UpDownThang";
     this.UpDownThang.Size     = new System.Drawing.Size(51, 21);
     this.UpDownThang.TabIndex = 13;
     this.UpDownThang.Value    = new decimal(new int[] {
         6,
         0,
         0,
         0
     });
     //
     // UpDownQuyen
     //
     this.UpDownQuyen.Anchor      = System.Windows.Forms.AnchorStyles.None;
     this.UpDownQuyen.BackColor   = System.Drawing.SystemColors.Desktop;
     this.UpDownQuyen.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.UpDownQuyen.Font        = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.UpDownQuyen.ForeColor   = System.Drawing.SystemColors.Info;
     this.UpDownQuyen.Location    = new System.Drawing.Point(194, 146);
     this.UpDownQuyen.Minimum     = new decimal(new int[] {
         1,
         0,
         0,
         0
     });
     this.UpDownQuyen.Name     = "UpDownQuyen";
     this.UpDownQuyen.Size     = new System.Drawing.Size(51, 21);
     this.UpDownQuyen.TabIndex = 14;
     this.UpDownQuyen.Value    = new decimal(new int[] {
         5,
         0,
         0,
         0
     });
     //
     // UpDownNgay
     //
     this.UpDownNgay.Anchor      = System.Windows.Forms.AnchorStyles.None;
     this.UpDownNgay.BackColor   = System.Drawing.SystemColors.Desktop;
     this.UpDownNgay.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.UpDownNgay.Font        = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.UpDownNgay.ForeColor   = System.Drawing.SystemColors.Info;
     this.UpDownNgay.Location    = new System.Drawing.Point(194, 181);
     this.UpDownNgay.Minimum     = new decimal(new int[] {
         1,
         0,
         0,
         0
     });
     this.UpDownNgay.Name     = "UpDownNgay";
     this.UpDownNgay.Size     = new System.Drawing.Size(51, 21);
     this.UpDownNgay.TabIndex = 15;
     this.UpDownNgay.Value    = new decimal(new int[] {
         4,
         0,
         0,
         0
     });
     //
     // Setting
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize          = new System.Drawing.Size(357, 261);
     this.Controls.Add(metroLink9);
     this.Controls.Add(btnOkey);
     this.Controls.Add(this.UpDownNgay);
     this.Controls.Add(this.UpDownQuyen);
     this.Controls.Add(this.UpDownThang);
     this.Controls.Add(this.UpDownTuoi);
     this.Controls.Add(this.metroLink7);
     this.Controls.Add(this.metroLink8);
     this.Controls.Add(this.metroLink5);
     this.Controls.Add(this.metroLink6);
     this.Controls.Add(this.metroLink3);
     this.Controls.Add(this.metroLink4);
     this.Controls.Add(this.metroLink2);
     this.Controls.Add(this.metroLink1);
     this.Name      = "Setting";
     this.Text      = "Settings";
     this.TextAlign = MetroFramework.Forms.MetroFormTextAlign.Center;
     this.Theme     = MetroFramework.MetroThemeStyle.Dark;
     this.Load     += new System.EventHandler(this.Setting_Load);
     ((System.ComponentModel.ISupportInitialize)(this.UpDownTuoi)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.UpDownThang)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.UpDownQuyen)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.UpDownNgay)).EndInit();
     this.ResumeLayout(false);
 }