示例#1
0
        public void AddPinMap(int PartID, int TestBoardID, String DeviceName, int DUTPin, int GCIPin)
        {
            TestPinMap PinToAdd = new TestPinMap(PartID, TestBoardID, DeviceName, DUTPin, GCIPin);

            PinToAdd.Margin = new Thickness(0, 5, 0, 0);

            //this.AutoScrollMinSize = new Size(513, TotalPins * 30 + ExtraSpace);
            CurrentPinMap.Add(PinToAdd);
            // this.Controls.Add(PinToAdd);
            TestBoardListGrid.Children.Add(PinToAdd);

            //TestBoardListGrid.UpdateLayout();
        }
示例#2
0
        public void AddPinMap(TestPinEntity PinMap)
        {
            int        colCount;
            TestPinMap PinToAdd = new TestPinMap(PinMap.PartID, PinMap.TestBoardID, PinMap.SocketName, PinMap.DUTPin, PinMap.GCIPin);

            PinToAdd.Margin = new Thickness(0, 5, 0, 0);
            // PinToAdd = new Size(513, TotalPins * 30 + ExtraSpace);
            // PinToAdd.Visibility = (TotalPins * 30) + 5 + ExtraSpace;
            // PinToAdd.Content = (TotalPins * 30) + 5 + ExtraSpace;
            //PinToAdd.AutoScrollMinSize = new Size(513, TotalPins * 30 + ExtraSpace);
            CurrentPinMap.Add(PinToAdd);
            // this.Controls.Add(PinToAdd);
            TestBoardListGrid.Children.Add(PinToAdd);
            // colCount += colCount;
            // TestBoardListGrid.Columns.Equals(colCount);
            // TestBoardListGrid.Rows.Equals(4);
        }