예제 #1
0
        /// <summary>
        /// Set up the calculator with the initial parameters that everyone needs
        /// </summary>
        /// <param name="ACalculator"></param>
        /// <param name="AXMLFiles"></param>
        /// <param name="AIsolationLevel"></param>
        /// <param name="ACurrentReport"></param>
        public static void InitialiseCalculator(TRptCalculator ACalculator, string AXMLFiles, string AIsolationLevel, string ACurrentReport)
        {
            ACalculator.ResetParameters();

            if (AXMLFiles.Length > 0)
            {
                ACalculator.AddParameter("xmlfiles", AXMLFiles);
            }

            if (AIsolationLevel.Length > 0)
            {
                ACalculator.AddParameter("IsolationLevel", AIsolationLevel);
            }

            ACalculator.AddParameter("currentReport", ACurrentReport);
        }