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


C# clsDBQueryManager.InsertUpdateTBScheduler方法代码示例

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


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

示例1: btnScheduleForLater_Tweeter_Click

        private void btnScheduleForLater_Tweeter_Click(object sender, EventArgs e)
        {
            //InsertUpdateSchedulerModule(strModule(Module.Tweet), dateTimePicker_Follower.Value.ToString());
            MessageBox.Show("Please Upload All Data To Start Tweeting");

            if (CheckTweeting())
            {
                string IsScheduledDaily = "0";
                if (chkScheduleDaily_Follow.Checked)
                {
                    IsScheduledDaily = "1";
                }
                clsDBQueryManager queryManager = new clsDBQueryManager();
                queryManager.InsertUpdateTBScheduler("", "Tweet_", dateTimePicker_tweeterStart.Value.ToString(), IsScheduledDaily);

                if (scheduler != null && scheduler.IsDisposed == false)
                {
                    scheduler.LoadDataGrid();
                }

                if (!string.IsNullOrEmpty(txtNoOfTweets.Text) && Globals.IdCheck.IsMatch(txtNoOfTweets.Text))
                {
                    TweetAccountManager.NoOfTweets = int.Parse(txtNoOfTweets.Text);
                }

                listTweetMessages = listTweetMessages.Distinct().ToList();

                foreach (string item in listTweetMessages)
                {
                    TweetAccountManager.que_TweetMessages.Enqueue(item);
                }

                GlobusFileHelper.WriteStringToTextfile(txtTweetMessageFile.Text, Globals.Path_TweetSettings);

                MessageBox.Show("Task Scheduled");
                AddToGeneralLogs("Task Scheduled");
                IsTweetScheduled = true;
            }
            else
            {
                AddToLog_Tweet("Please Add All Data");
            }



        }
开发者ID:prog-moh,项目名称:twtboard,代码行数:46,代码来源:frmMain-New+UI.cs

示例2: btnScheduleForLater_Follower_Click

        private void btnScheduleForLater_Follower_Click(object sender, EventArgs e)
        {
            //ReadFollowSettings();

            MessageBox.Show("Please upload all Relevant Data used for running Follow Module. These Data will be used when scheduled task is run");

            if (FollowValidations())
            {

                try
                {
                    string IsScheduledDaily = "0";
                    if (chkScheduleDaily_Follow.Checked)
                    {
                        IsScheduledDaily = "1";
                    }
                    clsDBQueryManager queryManager = new clsDBQueryManager();
                    queryManager.InsertUpdateTBScheduler("", "Follow", dateTimePicker_Follow.Value.ToString(), IsScheduledDaily);

                    if (scheduler != null && scheduler.IsDisposed == false)
                    {
                        scheduler.LoadDataGrid();
                    }

                    //Save Settings in Text File
                    string strOtherUser = "false";
                    if (!string.IsNullOrEmpty(txtOtherfollow.Text) && !string.IsNullOrEmpty(txtUserOtherNumber.Text))
                    {
                        strOtherUser = "true";
                    }

                    string strChkFollowers = "0";
                    if (chkFollowers.Checked)
                    {
                        strChkFollowers = "1";
                    }
                    string strChkFollowings = "0";
                    if (chkFollowings.Checked)
                    {
                        strChkFollowings = "1";
                    }
                    string strchkUseDivide = "0";
                    if (chkUseDivide.Checked)
                    {
                        strchkUseDivide = "1";
                    }
                    string strrdBtnDivideEqually = "0";
                    if (rdBtnDivideEqually.Checked)
                    {
                        strrdBtnDivideEqually = "1";
                    }
                    string strrdBtnDivideByGivenNo = "0";
                    if (rdBtnDivideByGivenNo.Checked)
                    {
                        strrdBtnDivideByGivenNo = "1";
                    }

                    GlobusFileHelper.WriteStringToTextfile(txtUserIDtoFollow.Text + "<:>" + txtPathUserIDs.Text + "<:>" + txtOtherfollow.Text + "<:>" + txtUserOtherNumber.Text + "<:>" + strChkFollowers + "<:>" + strChkFollowings + "<:>" + strchkUseDivide + "<:>" + strrdBtnDivideEqually + "<:>" + strrdBtnDivideByGivenNo + "<:>" + txtScrapeNoOfUsers.Text + "<:>" + txtFollowMinDelay.Text + "<:>" + txtFollowMaxDelay.Text + "<:>" + txtNoOfFollowThreads.Text, Globals.Path_FollowSettings);

                    MessageBox.Show("Task Scheduled");
                    AddToGeneralLogs("Task Scheduled");
                    /////Updates new Paths in tb_Setting
                    //if (!string.IsNullOrEmpty(txtNames.Text) && !string.IsNullOrEmpty(txtUsernames.Text) && !string.IsNullOrEmpty(txtEmails.Text))
                    //{
                    //    objclsSettingDB.InsertOrUpdateSetting("Follow", "Name", StringEncoderDecoder.Encode(txtNames.Text));
                    //    objclsSettingDB.InsertOrUpdateSetting("Follow", "Username", StringEncoderDecoder.Encode(txtUsernames.Text));
                    //    objclsSettingDB.InsertOrUpdateSetting("Follow", "Email", StringEncoderDecoder.Encode(txtEmails.Text));
                    //}
                }
                catch (Exception ex)
                {
                    AddToLog_Follower("Error in Task Scheduling : " + ex.Message);
                    GlobusFileHelper.AppendStringToTextfileNewLine(DateTime.Now + " --> Error --> btnScheduleForLater_Follower_Click() --> " + ex.Message, Globals.Path_FollowerErroLog);
                    GlobusFileHelper.AppendStringToTextfileNewLine("Error --> btnScheduleForLater_Follower_Click() --> " + ex.Message, Globals.Path_TwtErrorLogs);
                }
            }
        }
开发者ID:prog-moh,项目名称:twtboard,代码行数:77,代码来源:frmMain-New+UI.cs

示例3: btnScheduleForLater_Tweeter_Click

        private void btnScheduleForLater_Tweeter_Click(object sender, EventArgs e)
        {
            //InsertUpdateSchedulerModule(strModule(Module.Tweet), dateTimePicker_Follower.Value.ToString());

            if (dateTimePicker_tweeterStart.Value < DateTime.Now)
            {
                AddToGeneralLogs("[ " + DateTime.Now + " ] => [ Time Already Over. Please Select Time After The Present Time ]");
                return;
            }
            if (dateTimePicker_TwetterEnd.Value < DateTime.Now && (dateTimePicker_TwetterEnd.Value - dateTimePicker_tweeterStart.Value).TotalMinutes < 0)
            {
                AddToGeneralLogs("[ " + DateTime.Now + " ] => [ Time Already Over. Please Select Time After The Present Time ]");
                return;
            }
            try
            {
                if (CheckTweeting())
                {
                    string IsScheduledDaily = "0";
                    if (chkboxTweetScheduledDaily.Checked)
                    {
                        IsScheduledDaily = "1";
                    }
                    clsDBQueryManager queryManager = new clsDBQueryManager();
                    queryManager.InsertUpdateTBScheduler("", "Tweet_", dateTimePicker_tweeterStart.Value.ToString(), IsScheduledDaily);

                    if (scheduler != null && scheduler.IsDisposed == false)
                    {
                        scheduler.LoadDataGrid();
                    }

                    if (!string.IsNullOrEmpty(txtNoOfTweets.Text) && Globals.IdCheck.IsMatch(txtNoOfTweets.Text))
                    {
                        TweetAccountManager.NoOfTweets = int.Parse(txtNoOfTweets.Text);
                    }

                    listTweetMessages = listTweetMessages.Distinct().ToList();

                    foreach (string item in listTweetMessages)
                    {
                        TweetAccountManager.que_TweetMessages.Enqueue(item);
                    }

                    // GlobusFileHelper.WriteStringToTextfile(txtTweetMessageFile.Text, Globals.Path_TweetSettings);

                    MessageBox.Show("Task Scheduled");
                    AddToGeneralLogs("[ " + DateTime.Now + " ] => [ Task Scheduled ]");
                    IsTweetScheduled = true;
                }
                else
                {
                    AddToLog_Tweet("[ " + DateTime.Now + " ] => [ Please Add All Data ]");
                }
            }
            catch (Exception ex)
            {
                GlobusFileHelper.AppendStringToTextfileNewLine(DateTime.Now + " --> Error --> StartFollowing() -- foreach loop Foreach Dictiinoary --> " + ex.Message, Globals.Path_TweetingErroLog);
                GlobusFileHelper.AppendStringToTextfileNewLine("Error --> btnScheduleForLater_Tweeter_Click --> " + ex.Message, Globals.Path_TwtErrorLogs);
            }
        }
开发者ID:ahmetDostr,项目名称:twtboard,代码行数:60,代码来源:frmMain_NewUI.cs

示例4: btn_waitandreplyscheduler_Click

        private void btn_waitandreplyscheduler_Click(object sender, EventArgs e)
        {
            try
            {
                //InsertUpdateSchedulerModule(strModule(Module.Tweet), dateTimePicker_Follower.Value.ToString());
                //MessageBox.Show("Please Upload All Data To Start Wait And Reply");

                if (CheckWaitAndReply())
                {
                    string IsScheduledDaily = "0";
                    if (chkScheduleDaily_waitandreply.Checked)
                    {
                        IsScheduledDaily = "1";
                    }
                    clsDBQueryManager queryManager = new clsDBQueryManager();
                    queryManager.InsertUpdateTBScheduler("", "WaitAndReply_", dateTimePicker_WaitandreplyStart.Value.ToString(), IsScheduledDaily);

                    if (scheduler != null && scheduler.IsDisposed == false)
                    {
                        scheduler.LoadDataGrid();
                    }

                  
                   
                    string wait_replyFilename =txtReplyMsgFile.Text;
                    string wait_replytweetfilename =txtTweetMsgFile.Text;
                    string wait_replyKeyword=txtKeyword.Text;
                    string wait_replyKeywordFile=txtKeywordFile.Text;


                    string strchkUseSpinnedMessages = "0";
                    if (chkUseSpinnedMessages.Checked)
                    {
                        strchkUseSpinnedMessages = "1";
                    }

                    string strtweetsperreply = "4";
                    if (txtNoOfTweetsperReply.Text!=strtweetsperreply)
                    {
                        strtweetsperreply = txtNoOfTweetsperReply.Text;
                    }


                    string strNoOfRepliesPerKeyword = "10";
                    if (txtNoOfRepliesPerKeyword.Text!=strNoOfRepliesPerKeyword && int.Parse(txtNoOfRepliesPerKeyword.Text)!=0)
                    {
                        strNoOfRepliesPerKeyword = txtNoOfRepliesPerKeyword.Text;
                    }

                    string strInterval_WaitReply = "10";
                    if (txtInterval_WaitReply.Text!=strInterval_WaitReply && int.Parse(txtInterval_WaitReply.Text)!=0)
                    {
                        strInterval_WaitReply = txtInterval_WaitReply.Text;
                    }

                    string strWaitReplyThreads= "7";
                    if (txtWaitReplyThreads.Text!=txtWaitReplyThreads.Text&& int.Parse(txtWaitReplyThreads.Text)!=0)
                    {
                        strWaitReplyThreads = txtWaitReplyThreads.Text;
                    }

                    GlobusFileHelper.WriteStringToTextfile(wait_replyFilename + "<:>"
                        + wait_replytweetfilename + "<:>" + wait_replyKeyword + "<:>" + wait_replyKeywordFile + "<:>" + chkUseSpinnedMessages + "<:>"
                        + strtweetsperreply + "<:>" + strNoOfRepliesPerKeyword + "<:>" + strInterval_WaitReply + "<:>" + strWaitReplyThreads, Globals.Path_waitandreplySetting);

                    MessageBox.Show("Task Scheduled");
                    AddToLog_WaitReply("Task Scheduled");

                   
                }
                else
                {
                    AddToLog_WaitReply("Please Add All Data");
                }

            }
            catch (Exception ex)
            {
                GlobusFileHelper.AppendStringToTextfileNewLine(DateTime.Now + " --> Error --> btn_waitandreplyscheduler_Click() -- ScheduleFor Later Click --> " + ex.Message, Globals.Path_WaitNreplyErroLog);
                GlobusFileHelper.AppendStringToTextfileNewLine("Error --> btn_waitandreplyscheduler_Click() -- ScheduleFor Later Click --> " + ex.Message, Globals.Path_WaitNreplyErroLog);
            }
        }
开发者ID:prog-moh,项目名称:twtboard,代码行数:82,代码来源:frmMain.cs

示例5: btnScheduleForLater_SearchWithInvite_Click

        private void btnScheduleForLater_SearchWithInvite_Click(object sender, EventArgs e)
        {
            try
            {
                DateTime dt_scheduledTime = DateTime.Parse(dateTimePicker_Start_SearchWithInvite.Value.ToString());

                if (DateTime.Now < dt_scheduledTime)
                {

                     string IsScheduledDaily = "0";
                    if (chkboxSearchWithInviteScheduledDaily.Checked)
                    {
                        IsScheduledDaily = "1";
                    }

                    clsDBQueryManager queryManager = new clsDBQueryManager();
                    queryManager.InsertUpdateTBScheduler("SearchkeywordInvites_", dateTimePicker_Start_SearchWithInvite.Value.ToString(), IsScheduledDaily);

                    if (scheduler != null && scheduler.IsDisposed == false)
                    {
                        scheduler.LoadDataGrid();
                    }
                }
                else
                {
                    MessageBox.Show("Scheduled Tasks Can Only Be Saved in the Future Timing");
                    AddLoggerManageConnection("[ " + DateTime.Now + " ] => [ Scheduled Tasks Can Only Be Saved in the Future Timing]");
                }

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


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