示例#1
0
        private void Form1_Load(object sender, EventArgs e)
        {
            Application.ApplicationExit += new EventHandler(Application_ApplicationExit);

            srchWrd    = objUtil.getAppCfg("srchWrd");
            captureWrd = objUtil.getAppCfg("captureWrd");
            exceptWrd  = objUtil.getAppCfg("exceptWrd");

            if (srchWrd == null || captureWrd == null || exceptWrd == null)
            {
                MessageBox.Show("검색어 오류");
                this.Close();
            }
            else
            {
                srchWrd_arr    = objUtil.Split(srchWrd, "|");
                captureWrd_arr = objUtil.Split(captureWrd, "|");
                exceptWrd_arr  = objUtil.Split(exceptWrd, "|");
            }

            myNotify = new NotifyIcon();
            myNotify.BalloonTipText  = "최소화...";
            myNotify.BalloonTipTitle = "자게캡쳐";
            myNotify.BalloonTipIcon  = ToolTipIcon.Info;
            myNotify.Icon            = this.Icon;
            myNotify.MouseClick     += new MouseEventHandler(myNotify_MouseClick);

            radioButton1.Checked = true;
        }
示例#2
0
        public Form1()
        {
            InitializeComponent();

            objUtil = new libCommon.clsUtil();

            user_id = objUtil.getAppCfg("user_id");
            user_pw = objUtil.getAppCfg("password");

            if (user_id.Trim().Length == 0 || user_pw.Trim().Length == 0)
            {
                MessageBox.Show("로그인 정보 없음");
                Application.Exit();
            }

            mainURL       = "http://www.slrclub.com";
            myArticleURL  = "http://www.slrclub.com/mypage/myarticle.php?";
            delArticleURL = "http://www.slrclub.com/bbs/delete.php?";
            articleURL    = "http://www.slrclub.com/bbs/vx2.php?";

            articleList = new System.Collections.ArrayList();

            wc = new System.Net.WebClient();
            wb = new WebBrowser();
            wb.ScriptErrorsSuppressed = true;
            wb.DocumentCompleted     += new WebBrowserDocumentCompletedEventHandler(wb_DocumentCompleted);
            wb.DocumentText           = "";
            doc = wb.Document.OpenNew(true);

            nStep = "start";

            progressFlag    = 0;
            used_marketFlag = 0;
            myarticlePage   = 1;

            lastItem = "";

            this.label1.Text = "";
        }
示例#3
0
        private int rcvTimeOut;        //큐 대기시간

        private void Form1_Load(object sender, EventArgs e)
        {
            objUtil = new libCommon.clsUtil();

            this.objType     = new Type[] { typeof(libMyUtil.pageCallingInfo) };
            this.qPath       = objUtil.getAppCfg("queuePath");
            this.qPath_retry = objUtil.getAppCfg("queuePath_retry");
            this.encodeType  = objUtil.getAppCfg("encodeType").ToUpper();



            this.sleep = objUtil.ToInt32(objUtil.getAppCfg("sleep")) * 1000;
            if (this.sleep == 0)
            {
                this.sleep = 1000;
            }

            this.MaxCallingFailCnt = objUtil.ToInt32(objUtil.getAppCfg("MaxCallingFailCnt"));
            if (this.MaxCallingFailCnt == 0)
            {
                this.MaxCallingFailCnt = 10;
            }

            this.rcvTimeOut = objUtil.ToInt32(objUtil.getAppCfg("rcvTimeout"));
            if (this.rcvTimeOut == 0)
            {
                this.rcvTimeOut = 1;
            }

            this.retryInterval = objUtil.ToInt32(objUtil.getAppCfg("retryInterval")) * 1000;
            if (this.retryInterval == 0)
            {
                this.retryInterval = 60 * 1000;
            }



            Application.ApplicationExit += new EventHandler(Application_ApplicationExit);

            MainCallerState.Text  = "정지됨";
            RetryCallerState.Text = "정지됨";

            button1.PerformClick();
        }
示例#4
0
 /// <summary>
 /// 로그 파일 기록
 /// </summary>
 public static void writeLog(string str)
 {
     WriteLog(objUtil.getAppCfg("logFile"), str);
 }
示例#5
0
 public static string GetAppCfg(string key)
 {
     return(objUtil.getAppCfg(key));
 }