Пример #1
0
        public MSNTestSend(string path)
        {
            setPath(path);
            Msg = new TTwaitMsg(this.path);

            cc.ControlEvent += new ConsoleCtrl.ControlEventHandler(cc_ControlEvent);
            AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(CurrentDomain_UnhandledException);
        }
Пример #2
0
        public MSNBulk(string p)
        {
            setPath(p);

            Msg = new TTwaitMsg(path);
            senders = new AccountText(path);
            senders.Once = false;
            names = new AccountText("names");
            names.Once = false;
            if (ConfigurationManager.AppSettings["order"] == "1")
            {
                this.senders.Order = true;
            }

            if (ConfigurationManager.AppSettings["autoReLoad"] == "1")
            {
                this.senders.Once = false;
            }

            if (ConfigurationManager.AppSettings["online"] == "1")
            {
                this.online = true;
            }

            if (ConfigurationManager.AppSettings["autoReload"] == "1")
            {
                this.autoReload = true;
            }

            if (ConfigurationManager.AppSettings["trace"] == "1")
            {
                string tracefile = string.Format("had/trace_{0}.txt", this.path);
                if (File.Exists(tracefile))
                {
                    File.Delete(tracefile);
                }
                filetrace = new FileTraceListener(tracefile);
                Trace.Listeners.Add(filetrace);
            }
            //Settings.SavePath = "mcl";
            Settings.NoSave = true;//ConfigurationManager.AppSettings["nosave"] == "1";

            cc.ControlEvent += new ConsoleCtrl.ControlEventHandler(cc_ControlEvent);
            AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(CurrentDomain_UnhandledException);

            setFileName();
        }