public void Init(CSApplication csa, XmlNode node)
        {
            foreach (XmlNode child in node.ChildNodes)
            {
                if (child.Name.Equals("AffiliateKey"))
                {
                    _affiliateKey = child.Attributes["Value"].Value;
                }
                else if (child.Name.Equals("AffiliateCode"))
                {
                    _affiliateCode = child.Attributes["Value"].Value;
                }
                else if (child.Name.Equals("Trace"))
                {
                    _trace = Convert.ToBoolean(child.Attributes["Value"].Value);
                }
            }

            if (_trace && !traceInitialized)
            {
                string AppPath = Path.GetDirectoryName(Assembly.GetExecutingAssembly().GetName().CodeBase);
                AppPath = AppPath.Substring(6);
                Trace.AutoFlush = true;
                Trace.Listeners.Add(new TextWriterTraceListener(new StreamWriter(AppPath + @"\CommCreditSubmissionModule.txt", true)));
                traceInitialized = true;
            }

            csa.PostPostUpdate += csa_PostPostUpdate;
        }
Пример #2
0
        static void Main(string[] args)
        {
            CSApplication application = new CSApplication();

            application.Start();
            Console.ReadLine();
        }
Пример #3
0
        public void Init(CSApplication csa, XmlNode node)
        {
            _borderColor    = GetValueFrom(node, "borderColor");
            _textBackColor  = GetValueFrom(node, "textBackColor");
            _textForeColor  = GetValueFrom(node, "textForeColor");
            _countBackColor = GetValueFrom(node, "countBackColor");
            _countForeColor = GetValueFrom(node, "countForeColor");

            csa.PreRenderPost += OnPreRenderPost;
        }