示例#1
0
        public bool SetOneContainer(string width1, string height1, string width2, string height2, InputParameters inpPar)
        {
            bool ifSet       = false;
            bool ifFirstSet  = false;
            bool ifSecondSet = false;

            ifFirstSet  = inpPar.SetEnvelopeParams(true, width1, height1);
            ifSecondSet = inpPar.SetEnvelopeParams(false, width2, height2);

            if (ifFirstSet && ifSecondSet)
            {
                _containers.Add(new Container(new Envelope(inpPar.FirstWidth, inpPar.FirstHeight), new Envelope(inpPar.SecondWidth, inpPar.SecondHeight)));

                ifSet = true;
            }
            return(ifSet);
        }