private void CreateWorkstation() { for (int i = 0; i < Para.OPNUM; i++) { WorkStation ws = new WorkStation(i + 1); ws.TopLevel = false; ws.Parent = this; this.pnlBody.Controls.Add(ws); ws.Show(); int r = i / 6; int c = i % 6; ws.Left = c * ws.Width; ws.Top = 20 + r * ws.Height; if (i == 18) { ws.Left = wslist[0].Width * 6 + 50; ws.Top = 100; ws.Scale((float)1.6); //SizeF x = new SizeF((float)(ws.Width * 1), (float)(ws.Height * 1)); //ws.Scale(x); } wslist.Add(ws); } }
public void CreateWorkstation() { for (int i = 0; i < 18; i++) { WorkStation ws = new WorkStation(i + 1); ws.TopLevel = false; ws.Parent = this; //ws.MdiParent = this; this.pnlBody.Controls.Add(ws); ws.Show(); int r = i / 6; int c = i % 6; ws.Left = c * ws.Width; ws.Top = r * ws.Height; wslist.Add(ws); } }