Esempio n. 1
0
 public ucBusyPhoneContainer()
 {
     this.Height                      = 1080;
     this.Width                       = 1920;
     pnBusiness                       = new VirtualControlContainer();
     pnBusiness.BackColor             = Color.Transparent;
     pnBusiness.Size                  = new Size(1652, 740);
     pnBusiness.Location              = new Point(xpos, 90);
     pnBusiness.BackgroundImageLayout = ImageLayout.Stretch;
     //
     // pbPrevious
     //
     this.pbPrevious            = new PictureBox();
     this.pbPrevious.BackColor  = Color.Transparent;
     this.pbPrevious.Image      = global::QueueClient.Properties.Resources.部门下一页;
     this.pbPrevious.Location   = new System.Drawing.Point(131, 831);
     this.pbPrevious.Name       = "pbPrevious";
     this.pbPrevious.Size       = new System.Drawing.Size(144, 52);
     this.pbPrevious.TabIndex   = 24;
     this.pbPrevious.TabStop    = false;
     this.pbPrevious.Click     += new System.EventHandler(this.pbPrevious_Click);
     this.pbPrevious.Paint     += new System.Windows.Forms.PaintEventHandler(this.pbPrevious_Paint);
     this.pbPrevious.MouseDown += new System.Windows.Forms.MouseEventHandler(this.pbPrevious_MouseDown);
     this.pbPrevious.MouseUp   += new System.Windows.Forms.MouseEventHandler(this.pbPrevious_MouseUp);
     //
     // pbNext
     //
     this.pbNext            = new PictureBox();
     this.pbNext.BackColor  = Color.Transparent;
     this.pbNext.Image      = global::QueueClient.Properties.Resources.部门下一页;
     this.pbNext.Location   = new System.Drawing.Point(1630, 831);
     this.pbNext.Name       = "pbNext";
     this.pbNext.Size       = new System.Drawing.Size(144, 52);
     this.pbNext.TabIndex   = 25;
     this.pbNext.TabStop    = false;
     this.pbNext.Click     += new System.EventHandler(this.pbNext_Click);
     this.pbNext.Paint     += new System.Windows.Forms.PaintEventHandler(this.pbPrevious_Paint);
     this.pbNext.MouseDown += new System.Windows.Forms.MouseEventHandler(this.pbPrevious_MouseDown);
     this.pbNext.MouseUp   += new System.Windows.Forms.MouseEventHandler(this.pbPrevious_MouseUp);
     this.Controls.Add(pnBusiness);
     this.Controls.Add(pbPrevious);
     this.Controls.Add(pbNext);
     this.Draw();
 }
Esempio n. 2
0
 public ucUnitContainer()
 {
     this.Height = 1080;
     this.Width  = 1920;
     pnUnits     = new VirtualControlContainer();
     //pnUnits.BackColor = Color.Transparent;
     pnUnits.Size     = new Size(1652, 740);
     pnUnits.Location = new Point(xpos, 90);
     //
     // pbPrevious
     //
     this.pbPrevious            = new PictureBox();
     this.pbPrevious.BackColor  = Color.Transparent;
     this.pbPrevious.Image      = global::QueueClient.Properties.Resources.部门下一页;
     this.pbPrevious.Location   = new System.Drawing.Point(131, 831);
     this.pbPrevious.Name       = "pbPrevious";
     this.pbPrevious.Size       = new System.Drawing.Size(144, 52);
     this.pbPrevious.TabIndex   = 24;
     this.pbPrevious.TabStop    = false;
     this.pbPrevious.Click     += new System.EventHandler(this.pbPrevious_Click);
     this.pbPrevious.Paint     += new System.Windows.Forms.PaintEventHandler(this.pbPrevious_Paint);
     this.pbPrevious.MouseDown += new System.Windows.Forms.MouseEventHandler(this.pbPrevious_MouseDown);
     this.pbPrevious.MouseUp   += new System.Windows.Forms.MouseEventHandler(this.pbPrevious_MouseUp);
     //
     // pbNext
     //
     this.pbNext            = new PictureBox();
     this.pbNext.BackColor  = Color.Transparent;
     this.pbNext.Image      = global::QueueClient.Properties.Resources.部门下一页;
     this.pbNext.Location   = new System.Drawing.Point(1630, 831);
     this.pbNext.Name       = "pbNext";
     this.pbNext.Size       = new System.Drawing.Size(144, 52);
     this.pbNext.TabIndex   = 25;
     this.pbNext.TabStop    = false;
     this.pbNext.Click     += new System.EventHandler(this.pbNext_Click);
     this.pbNext.Paint     += new System.Windows.Forms.PaintEventHandler(this.pbPrevious_Paint);
     this.pbNext.MouseDown += new System.Windows.Forms.MouseEventHandler(this.pbPrevious_MouseDown);
     this.pbNext.MouseUp   += new System.Windows.Forms.MouseEventHandler(this.pbPrevious_MouseUp);
     this.Controls.Add(pnUnits);
     this.Controls.Add(pbPrevious);
     this.Controls.Add(pbNext);
     try
     {
         string        path  = AppDomain.CurrentDomain.BaseDirectory + "img\\FloorDistribution";
         DirectoryInfo root  = new DirectoryInfo(path);
         FileInfo[]    files = root.GetFiles();
         imgList = new Image[files.Count()];
         int index = 0;
         foreach (var f in files)
         {
             Image img = Image.FromFile(f.FullName);
             if (img != null)
             {
                 imgList[index] = img;
                 index++;
             }
         }
     }
     catch
     {
     }
     this.Draw();
 }