Example #1
0
        private List <Parm> Decide()
        {
            Control.ControlCollection CC = flpPages.Controls;
            List <Parm> parms            = new List <Parm>();

            parms.Add(new Parm());
            for (int i = 0; i < CC.Count; i++)
            {
                Pane pane = CC[i] as Pane;
                if (pane.SplitFirst)
                {
                    parms.Add(new Parm());
                }
                if (pane.DeleteMe)
                {
                    continue;
                }
                Parm   parm = parms[parms.Count - 1];
                String k    = parm.AddPDF(pane.fpSrc);
                parm.cat += String.Format(" {0}{1}{2}", k, pane.iPage, ",right,down,left".Split(',')[pane.RRot]);
                parm.frm.Add(pane.iPage);
            }

            return(parms);
        }