当前位置: 首页>>代码示例>>C#>>正文


C# clsDBQueryManager.SelectSettingData方法代码示例

本文整理汇总了C#中BaseLib.clsDBQueryManager.SelectSettingData方法的典型用法代码示例。如果您正苦于以下问题:C# clsDBQueryManager.SelectSettingData方法的具体用法?C# clsDBQueryManager.SelectSettingData怎么用?C# clsDBQueryManager.SelectSettingData使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在BaseLib.clsDBQueryManager的用法示例。


在下文中一共展示了clsDBQueryManager.SelectSettingData方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: LoadDecaptchaSettings

        public static void LoadDecaptchaSettings()
        {
            try
            {
                Globals.CapchaTag = true;

                clsDBQueryManager DataBase = new clsDBQueryManager();
                DataTable dt = DataBase.SelectSettingData();
                foreach (DataRow dRow in dt.Rows)
                {
                    if ("Captcha_ID" == dRow[1].ToString())
                    {
                        Globals.CapchaLoginID = StringEncoderDecoder.Decode(dRow[2].ToString());
                    }
                    if ("Captcha_Password" == dRow[1].ToString())
                    {
                        Globals.CapchaLoginPassword = StringEncoderDecoder.Decode(dRow[2].ToString());
                    }
                }

            }
            catch
            {
            }
        }
开发者ID:brentscheidt,项目名称:inboard,代码行数:25,代码来源:FrmCaptchaLogin.cs

示例2: LoadDBCSettings

        private void LoadDBCSettings()
        {
            clsDBQueryManager objclsSettingDB = new clsDBQueryManager();

            try
            {
                DataTable dt = objclsSettingDB.SelectSettingData();
                foreach (DataRow row in dt.Rows)
                {
                    if ("DeathByCaptcha" == row[1].ToString())
                    {
                        txtDBCUsername.Text = StringEncoderDecoder.Decode(row[0].ToString());
                        txtDBCPassword.Text = StringEncoderDecoder.Decode(row[2].ToString());
                        BaseLib.Globals.DBCUsername = StringEncoderDecoder.Decode(txtDBCUsername.Text);
                        BaseLib.Globals.DBCPassword = StringEncoderDecoder.Decode(txtDBCPassword.Text);
                    }
                }
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.StackTrace);
            }
        }
开发者ID:prog-moh,项目名称:twtboard,代码行数:23,代码来源:FrmSettings.cs

示例3: btnSaveDBC_Click

        private void btnSaveDBC_Click(object sender, EventArgs e)
        {
            
            if (!string.IsNullOrEmpty(txtDBCUsername.Text.Trim()) && !string.IsNullOrEmpty(txtDBCPassword.Text.Trim()))
            {
                BaseLib.Globals.DBCUsername = txtDBCUsername.Text;
                BaseLib.Globals.DBCPassword = txtDBCPassword.Text;

                //***  Save tb_Setting**************************///////

                clsDBQueryManager objclsSettingDB = new clsDBQueryManager();

                try
                {
                    DataTable dt = objclsSettingDB.SelectSettingData();
                    foreach (DataRow row in dt.Rows)
                    {
                        if ("DeathByCaptcha" == row[1].ToString())
                        {
                            objclsSettingDB.DeleteDBCDecaptcherData("DeathByCaptcha");
                        }
                    }
                    objclsSettingDB.InsertDBCData(StringEncoderDecoder.Encode(txtDBCUsername.Text), "DeathByCaptcha", StringEncoderDecoder.Encode(txtDBCPassword.Text));
                    MessageBox.Show("Settings Saved");
                    this.Close();
                }
                catch (Exception ex)
                {
                    Console.WriteLine(ex.StackTrace);
                }
            }
            else
            {
                MessageBox.Show("Please fill all Death By Captcha Details");
            }
        }
开发者ID:prog-moh,项目名称:twtboard,代码行数:36,代码来源:FrmSettings.cs

示例4: FrmCapchaLogin_Load

        private void FrmCapchaLogin_Load(object sender, EventArgs e)
        {
            try
            {
                Globals.CapchaTag = true;
                image = Properties.Resources.background;
                txtDBpath.Text = Globals.path_AppDataFolder;

                clsDBQueryManager DataBase = new clsDBQueryManager();
                DataTable dt = DataBase.SelectSettingData();
                foreach (DataRow dRow in dt.Rows)
                {

                    if ("Captcha_ID" == dRow[1].ToString())
                    {
                        txtCapchaID.Text = StringEncoderDecoder.Decode(dRow[2].ToString());
                    }
                    if ("Captcha_Password" == dRow[1].ToString())
                    {
                        txtCapchaPaswrd.Text = StringEncoderDecoder.Decode(dRow[2].ToString());
                    }

                    Globals.CapchaLoginID = txtCapchaID.Text;
                    Globals.CapchaLoginPassword = txtCapchaPaswrd.Text;
                }

                //string[] arr1 = new string[] { BaseLib.Globals.CapchaLoginID, BaseLib.Globals.CapchaLoginPassword};
                //DeathByCaptcha.Client clnt = null;
                //string capcthaResponse = DecodeDBC(arr1, out clnt);
            }
            catch
            {
            }
        }
开发者ID:brentscheidt,项目名称:inboard,代码行数:34,代码来源:FrmCaptchaLogin.cs

示例5: copyGroupCreator

        public void copyGroupCreator()
        {
            listGroupName = new List<string>();
            listWebsite = new List<string>();
            listSummary = new List<string>();
            listDesciption = new List<string>();

            string groupNameSettings = string.Empty;
            string groupWebsiteSettings = string.Empty;
            string groupSummarySettings = string.Empty;
            string groupDescriptionSetting = string.Empty;

            clsDBQueryManager DataBase = new clsDBQueryManager();
            DataTable dt = DataBase.SelectSettingData();
            foreach (DataRow row in dt.Rows)
            {
                if ("GroupName" == row[1].ToString())
                {
                    groupNameSettings = StringEncoderDecoder.Decode(row[2].ToString());
                }
                if ("GroupSummary" == row[1].ToString())
                {
                    groupSummarySettings = StringEncoderDecoder.Decode(row[2].ToString());
                }
                if ("GroupDescription" == row[1].ToString())
                {
                    groupDescriptionSetting = StringEncoderDecoder.Decode(row[2].ToString());
                }
                if ("GroupWebsite" == row[1].ToString())
                {
                    groupWebsiteSettings = StringEncoderDecoder.Decode(row[2].ToString());
                }
            }

            if (File.Exists(groupNameSettings))
            {
                listGroupName = GlobusFileHelper.ReadFiletoStringList(groupNameSettings);
                txtGroupName.Text = groupNameSettings;
                AddLoggerCreateGroup("[ " + DateTime.Now + " ] => [ " + listGroupName.Count + " Group Names loaded ]");
            }
            if (File.Exists(groupSummarySettings))
            {
                listSummary = GlobusFileHelper.ReadFiletoStringList(groupSummarySettings);
                txtSummary.Text = groupSummarySettings;
                AddLoggerCreateGroup("[ " + DateTime.Now + " ] => [ " + listSummary.Count + " Group Summary loaded ]");
            }
            if (File.Exists(groupDescriptionSetting))
            {
                listDesciption = GlobusFileHelper.ReadFiletoStringList(groupDescriptionSetting);
                txtDesc.Text = groupDescriptionSetting;
                AddLoggerCreateGroup("[ " + DateTime.Now + " ] => [ " + listDesciption.Count + " Group Description loaded ]");
            }
            if (File.Exists(groupWebsiteSettings))
            {
                listWebsite = GlobusFileHelper.ReadFiletoStringList(groupWebsiteSettings);
                txtWebsite.Text = groupWebsiteSettings;
                AddLoggerCreateGroup("[ " + DateTime.Now + " ] => [ " + listWebsite.Count + " Group Websites loaded ]");
            }
        }
开发者ID:brentscheidt,项目名称:inboard,代码行数:59,代码来源:frmMain.cs

示例6: CopyUpdateStatus

 private void CopyUpdateStatus()
 {
     try
     {
         clsDBQueryManager DataBase = new clsDBQueryManager();
         DataTable dt = DataBase.SelectSettingData();
         foreach (DataRow row in dt.Rows)
         {
             if ("StatusUpdate" == row[0].ToString() && "StatusMessage" == row[1].ToString())
             {
                 txtStatusUpd.Text = StringEncoderDecoder.Decode(row[2].ToString());
                 if (File.Exists(txtStatusUpd.Text))
                 {
                     List<string> temp = GlobusFileHelper.ReadFiletoStringList(txtStatusUpd.Text);
                     foreach (string item in temp)
                     {
                         if (!string.IsNullOrEmpty(item.Replace(" ", "").Replace("\t", "")))
                         {
                             listStatusMessages.Add(item);
                         }
                     }
                     AddLoggerStatusUpdate("[ " + DateTime.Now + " ] => [ " + listStatusMessages.Count + " Status Update Messages loaded ]");
                     break;
                 }
                 else
                 {
                     AddLoggerStatusUpdate("[ " + DateTime.Now + " ] => [ File Does not Exsist ]");
                     break;
                 }
             }
         }
     }
     catch (Exception ex)
     {
         GlobusFileHelper.AppendStringToTextfileNewLine("DateTime :- " + DateTime.Now + " :: Error --> Status Update --> CopyUpdateStatus() >>>> " + ex.Message + "StackTrace --> >>>" + ex.StackTrace, Globals.Path_LinkedinErrorLogs);
         GlobusFileHelper.AppendStringToTextfileNewLine("DateTime :- " + DateTime.Now + " :: Error --> Status Update --> CopyUpdateStatus() >>>> " + ex.Message + "StackTrace --> >>>" + ex.StackTrace, Globals.Path_LinkedinStatusUpdateErrorLogs);
     }
 }
开发者ID:brentscheidt,项目名称:inboard,代码行数:38,代码来源:frmMain.cs

示例7: LoadFileData

        public void LoadFileData()
        {
            string accountData = string.Empty;
            string laoddata = string.Empty;

            clsDBQueryManager DataBase = new clsDBQueryManager();
            DataTable dt = DataBase.SelectSettingData();
            foreach (DataRow row in dt.Rows)
            {
                if ("LoadAccounts" == row[1].ToString())
                {
                    accountData = StringEncoderDecoder.Decode(row[2].ToString());
                }
            }
            this.Invoke(new MethodInvoker(delegate
                {
                    if (File.Exists(accountData))
                    {
                        textBox12.Text = accountData;
                        AddToListBox("[ " + DateTime.Now + " ] => [ Last Accounts Loaded From : " + accountData + " ]");
                    }
                    else
                    {
                        //AddToListBox("[ " + DateTime.Now + " ] => [ File : " + accountData + " : Does not exsist ]");
                        AddToListBox("[ " + DateTime.Now + " ] => [ Please upload accounts ]");
                    }
                }));
        }
开发者ID:prog-moh,项目名称:twtboard,代码行数:28,代码来源:frmAccounts.cs


注:本文中的BaseLib.clsDBQueryManager.SelectSettingData方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。