private bool tariffPlanInit = true, createIndexTable = true, createIndexTableGPRS = true; //, printGPRS = true;

        #endregion Fields

        #region Constructors

        public MainWindow()
        {
            Thread.CurrentThread.CurrentCulture = System.Globalization.CultureInfo.InvariantCulture;
            InitializeComponent();

            //init IndexTables
            RatingItems rating = new RatingItemsCommon(createIndexTable);
            RatingItems ratingGPRS = new RatingItemsCommon(false, createIndexTableGPRS);
        }
Exemple #2
0
        public static int CalculateIndex(string destParam, string locParam, DateTime timeParam)
        {
            RatingItems rating = new RatingItemsCommon();
            RatingItems timeInv = new TimeInterval();

            var resultTime = timeInv.Index(new string[] { timeParam.ToString() });
            var resultRating = rating.Index(destParam, locParam, resultTime);

            return int.Parse(resultRating);
        }