private void SetDisplay()
        {
            l         = new Accessor.AtlanticCanvasLenght();
            l         = cmbLengthMaterial.SelectedItem as Accessor.AtlanticCanvasLenght;
            this.Size = new System.Drawing.Size(600, 450);
            string id = l.MaterialID;
            tblAtlanticCanvasLength o   = DataEngine.GetAtlanticLength(1, id);
            tblMaterial             mat = DataEngine.GetMaterial(id);



            cmbLengthMaterial.Hide();
            tabAtlanticCosting.Show();
        }
        /// <summary>
        /// Sets the inititial display populating all the fields with the selection
        /// </summary>
        public void SetDisplay()
        {
            int frameTyepID = 1; //Default

            switch (frameType)
            {
            case myFrameType.SquareTwoFifty:
                frameTyepID = 1;
                break;

            case myFrameType.Atwo:
                frameTyepID = 2;
                break;

            case myFrameType.SquareFourFifty:
                frameTyepID = 3;
                break;

            case myFrameType.FourFifty:
                frameTyepID = 4;
                break;

            case myFrameType.FiveFifty:
                frameTyepID = 5;
                break;

            case myFrameType.Pane:
                frameTyepID = 6;
                break;

            default:
                break;
            }

            tblAtlanticCanvasLength o      = DataEngine.GetAtlanticLength(frameTyepID, materialID);
            tblMaterial             mat    = DataEngine.GetMaterial(materialID);
            tblLengthCost           length = DataEngine.GetLengthPricePerMeter(materialID);

            //Top Frame
            lblFrame.Text      = mat.Name;
            lblMaterialID.Text = materialID;
            string pricePerMeter = string.Format("{0:C}", length.PricePerMeter);

            lblPricePerMeter.Text = pricePerMeter;

            // Details

            string frameLength = string.Format("{0:0.00}", o.FrameLenght);

            lblFrameLength.Text = frameLength;

            string frameWidth = string.Format("{0:0.00}", o.FrameWidth);

            lblFrameWidth.Text = frameWidth;

            string noFrames = string.Format("{0:0.00}", o.NoOfFrames);

            lblNoFrames.Text = noFrames;

            string TotalUsedFrmCost = string.Format("{0:C}", o.TotalUsedFrameCost);

            lblTotalUsedFrameCost.Text = TotalUsedFrmCost;

            string frameArea = string.Format("{0:0.00}", o.FrameArea);

            lblFrameArea.Text = frameArea;

            string canvasOverlap = string.Format("{0:0.00}", o.CanvasOverlap);

            lblCanvasOveralap.Text = canvasOverlap;

            string totalCanvasArea = string.Format("{0:0.00}", o.TotalCanvasArea);

            lblTotalCanvasArea.Text = totalCanvasArea;

            string frameTotalArea = string.Format("{0:0.00}", o.TotalFrameLength);

            lblTotalFrameArea.Text = o.TotalFrameLength.ToString();

            atlanticID = o.AtlanticCanvasLenID;
        }