Beispiel #1
0
        //private string _file = null;

        public static PrintTitleInfo GetPrintTitleInfo(PrintTitleManager printTitleManager, string title, bool splitTitle, Date? expectedDate)
        {
            PrintTitle printTitle = new PrintTitle();
            printTitle._printTitleManager = printTitleManager;
            printTitle._title = title;
            printTitle._splitTitle = splitTitle;
            printTitle._expectedDate = expectedDate;
            printTitle.GetInfo();
            return printTitle.GetResult();
        }
Beispiel #2
0
        //private string _file = null;

        public static PrintTitleInfo GetPrintTitleInfo(PrintTitleManager printTitleManager, string title, bool splitTitle, Date?expectedDate)
        {
            PrintTitle printTitle = new PrintTitle();

            printTitle._printTitleManager = printTitleManager;
            printTitle._title             = title;
            printTitle._splitTitle        = splitTitle;
            printTitle._expectedDate      = expectedDate;
            printTitle.GetInfo();
            return(printTitle.GetResult());
        }
Beispiel #3
0
        public PrintTitleInfo GetPrintTitleInfo(string title, Date?expectedDate = null, bool?splitTitle = null)
        {
            bool splitTitle2 = splitTitle != null ? (bool)splitTitle : _splitTitle;

            if (_version == 1)
            {
                //return _GetPrintTitleInfo(title, _splitTitle, expectedDate);
                return(_GetPrintTitleInfo(title, splitTitle2, expectedDate));
            }
            else if (_version == 2)
            {
                //return PrintTitle.GetPrintTitleInfo(this, title, _splitTitle, expectedDate);
                return(PrintTitle.GetPrintTitleInfo(this, title, splitTitle2, expectedDate));
            }
            else
            {
                throw new PBException("unknow version {0}", _version);
            }
        }