예제 #1
0
 private void button_Refresh_Click(object sender, EventArgs e)
 {
     if (CMDBInterFace.GetAllCrawlerMonitor(CInfoManager.Instance.DB()) == true)
     {
         MainForm pMainForm = (MainForm)this.ParentForm;
         pMainForm.RefreshCrawerInfo();
     }
 }
예제 #2
0
        void DBConnection_Worker(object sender, DoWorkEventArgs e)
        {
            MainForm pMainForm = (MainForm)this.ParentForm;

            bool bResult = CInfoManager.Instance.ConnectDB();

            if (bResult == true)
            {
                bResult = CMDBInterFace.LoginManager(CInfoManager.Instance.DB(), textBox_ID.Text, textBox_PW.Text);
            }

            if (bResult == true)
            {
                bResult = CMDBInterFace.GetAllCrawlerMonitor(CInfoManager.Instance.DB());
            }

            if (bResult == true)
            {
                bResult = CMDBInterFace.GetAuthorityList(CInfoManager.Instance.DB());
            }

            if (bResult == true)
            {
                bResult = CMDBInterFace.GetAuthorityLoginList(CInfoManager.Instance.DB());
            }

            //if (bResult == true)
            //    bResult = CMDBInterFace.GetChannelList(CInfoManager.Instance.DB());

            if (bResult == true)
            {
                bResult = CMDBInterFace.GetGoodsTable(CInfoManager.Instance.DB());
            }

            if (bResult == true)
            {
                pMainForm.RefreshAdmInfo();
                pMainForm.RemakeComboBox();
                pMainForm.RefreshGoodsTable();
                pMainForm.RefreshCrawerInfo();
            }

            bLoginSucceed_ = bResult;
        }