public void startEditDescription()
		{
			try
			{
				if (PDGlobals.listAccounts.Count > 0)
				{
					try
					{
						string SingleUser_EditPinDesc = string.Empty;
						try
						{
							if (chkSingleUser_EditPinDesc.Active == true) 
							{
								ClGlobul.CommentNicheMessageList.Clear();
								if (string.IsNullOrEmpty(txtPinDescription.Text))
								{
									GlobusLogHelper.log.Info("Please Enter Description");									
									return;
								}
								else
								{
									SingleUser_EditPinDesc=txtPinDescription.Text.Trim();
									ClGlobul.CommentNicheMessageList.Add(SingleUser_EditPinDesc);
									GlobusLogHelper.log.Info("[ " + DateTime.Now + " => [ Description Enter :" + ClGlobul.CommentNicheMessageList.Count);	
								}
							}
							if (string.IsNullOrEmpty(txtPinDescription.Text))
							{
								GlobusLogHelper.log.Info("[ " + DateTime.Now + " => [ Please Upload Description  ]");									
								return;
							}
						}
						catch (Exception ex)
						{
							Console.WriteLine (ex.StackTrace);

						}       
					}
					catch (Exception ex)
					{
						Console.Write (ex.Message);
					}
					objEditPinDiscriptionManager.isStopEditPinDisc = false;
					objEditPinDiscriptionManager.lstThreadsEditPinDisc.Clear();

					if (objEditPinDiscriptionManager._IsfevoriteEditPinDes)
					{
						objEditPinDiscriptionManager._IsfevoriteEditPinDes = false;
					}

					Regex checkNo = new Regex("^[0-9]*$");

					int processorCount = objUtils.GetProcessor();

					int threads = 25;

					int maxThread = 25 * processorCount;
					try
					{
						try
						{
							objEditPinDiscriptionManager.minDelayEditPinDisc = Convert.ToInt32(txtMinDelay_EditPinDesc.Text);
							objEditPinDiscriptionManager.maxDelayEditPinDisc = Convert.ToInt32(txtMaxDelay_EditPinDesc.Text);
							objEditPinDiscriptionManager.Nothread_EditPinDisc = Convert.ToInt32(txtThread_EditPinDesc.Text);
							objEditPinDiscriptionManager.NoOfPagesEditPinDisc = Convert.ToInt32(txtNoOfPages_EditPinDisc.Text);
						}
						catch (Exception ex)
						{
							GlobusLogHelper.log.Info("Enter in Correct Format");
							return;
						}


						if (ClGlobul.CommentNicheMessageList.Count > 0)
						{
							clsSettingDB Database = new clsSettingDB();
							Database.UpdateSettingData("PinDescription", "PinDescriptionMessage", StringEncoderDecoder.Encode(txtPinDescription.Text));
							GlobusLogHelper.log.Info("[ " + DateTime.Now + "] => [ Start Edit Description ]");
							ClGlobul.lstPins.Clear();

						}
						if (!string.IsNullOrEmpty(txtThread_EditPinDesc.Text) && checkNo.IsMatch(txtThread_EditPinDesc.Text))
						{
							threads = Convert.ToInt32(txtThread_EditPinDesc.Text);
						}

						if (threads > maxThread)
						{
							threads = 25;
						}
						GlobusLogHelper.log.Info("[ " + DateTime.Now + "] => [ Process Starting ] ");
						objEditPinDiscriptionManager.NoOfThreadsEditPinDisc = threads;

						Thread EditPinDiscThread = new Thread(objEditPinDiscriptionManager.StartEditPinDisc);
						EditPinDiscThread.Start();
					}

					catch (Exception ex)
					{
						Console.Write (ex.Message);
					}
				}
				else
				{
					GlobusLogHelper.log.Info("[ " + DateTime.Now + "] => [ Please Load Accounts ! ]");
					//GlobusLogHelper.log.Debug("Please Load Accounts !");

				}
			}
			catch (Exception ex)
			{
				Console.Write (ex.Message);
			}
		}
		public void startRePin()
		{
			try
			{
				if (PDGlobals.listAccounts.Count > 0)
				{
					objRePinManager.isStopRePin = false;
					objRePinManager.lstThreadsRePin.Clear();
					clsSettingDB Database = new clsSettingDB();
					Database.UpdateSettingData("Repin", "RepinMsgFile", StringEncoderDecoder.Encode(txtRepinMessage_Repin.Text));
					Database.UpdateSettingData("Repin", "RepinNO", StringEncoderDecoder.Encode(txtRepinNo_Repin.Text));

					ClGlobul.lstPins.Clear();

					int processorCount = objUtils.GetProcessor();

					int threads = 25;

					int maxThread = 25 * processorCount;
					try
					{
						try
						{
							objRePinManager.minDelayRePin = Convert.ToInt32(txtMinDelay_Repin.Text);
							objRePinManager.maxDelayRePin = Convert.ToInt32(txtMaxDelay_Repin.Text);
							objRePinManager.Nothread_RePin = Convert.ToInt32(txtThread_Repin.Text);
							objRePinManager.maxNoOfRePinCount = Convert.ToInt32(txtCount_Repin.Text);
						}
						catch (Exception ex)
						{
							GlobusLogHelper.log.Info("Enter in Correct Format");
							return;
						}
						Regex checkNo = new Regex("^[0-9]*$");

						if (!string.IsNullOrEmpty(txtThread_Repin.Text) && checkNo.IsMatch(txtThread_Repin.Text))
						{
							threads = Convert.ToInt32(txtThread_Repin.Text);
						}

						if (threads > maxThread)
						{
							threads = 25;
						}
						GlobusLogHelper.log.Info("[ " + DateTime.Now + "] => [ Process Starting ] ");
						objRePinManager.NoOfThreadsRePin = threads;

						Thread RePinThread = new Thread(objRePinManager.StartRepin);
						RePinThread.Start();
					}

					catch (Exception ex)
					{
						Console.Write(ex.Message);
					}
				}
				else
				{
					GlobusLogHelper.log.Info("[ " + DateTime.Now + "] => Please Load Accounts ! ]");
					//GlobusLogHelper.log.Debug("Please Load Accounts !");
				}
			}
			catch (Exception ex)
			{
				Console.Write (ex.Message);
			}
		}    
		private void StartAddBoardName()
		{
			try
			{
				btnStop_AddBoard.Sensitive = true;
				objAddBoardManager.isStopAddBoardName = false;
				string singleUser=string.Empty;
				if (PDGlobals.listAccounts.Count > 0)
				{
					try
					{
						if(chkSingleUser_AddBoard.Active == true)
						{
							singleUser=txtBoardName_AddBoard.Text.Trim();
							ClGlobul.lstBoardNames.Add(singleUser);
						}

						if (string.IsNullOrEmpty(txtBoardName_AddBoard.Text))
						{
							Addtologger("[ " + DateTime.Now + " ] => [ Please Upload Board Name With Niche ]");
							//ModernDialog.ShowMessage("Please Upload Board Name With Niche", "Upload Board Name With Niche", MessageBoxButton.OK);
							return;
						}


					}
					catch (Exception ex)
					{
						Console.Write (ex.Message);
					}

					clsSettingDB Database = new clsSettingDB();
					Database.UpdateSettingData("Board", "AddBoardName", StringEncoderDecoder.Encode(txtBoardName_AddBoard.Text));

					objAddBoardManager.isStopAddBoardName = false;
					objAddBoardManager.lstThreadsAddBoardName.Clear();
					if (objAddBoardManager._Isfevorite)
					{
						objAddBoardManager._Isfevorite = false;
					}

					Regex checkNo = new Regex("^[0-9]*$");

					int processorCount = objUtils.GetProcessor();

					int threads = 25;

					int maxThread = 25 * processorCount;
					try
					{
						try
						{
							objAddBoardManager.minDelayAddBoardName = Convert.ToInt32(txtMinDelay_AddBoard.Text);
							objAddBoardManager.maxDelayAddBoardName = Convert.ToInt32(txtMaxDelay_AddBoard.Text);
							objAddBoardManager.Nothread_AddBoardName = Convert.ToInt32(txtThread_AddBoard.Text);
						}
						catch (Exception ex)
						{
							Addtologger("Enter in Correct Format");
							return;
						}

						if (!string.IsNullOrEmpty(txtThread_AddBoard.Text) && checkNo.IsMatch(txtThread_AddBoard.Text))
						{
							threads = Convert.ToInt32(txtThread_AddBoard.Text);
						}

						if (threads > maxThread)
						{
							threads = 25;
						}
						objAddBoardManager.NoOfThreadsAddBoardName = threads;

						Addtologger("[ " + DateTime.Now + " ] => [ Process Starting ] ");

						Thread AddBoardNameThread = new Thread(objAddBoardManager.StartAddBoardName);
						btnStart_AddBoard.Sensitive = true;
						AddBoardNameThread.Start();
					}

					catch (Exception ex)
					{
						Console.Write (ex.Message);
					}
				}
				else
				{
					Addtologger("Please Load Accounts !");

				}
			}
			catch(Exception ex) 
			{
				Console.Write (ex.Message);
			}
		}
		private void startProcess()
		{
			try
			{
				if (PDGlobals.listAccounts.Count > 0)
				{
					try
					{	
						string SingleBoardUrl = string.Empty;
						string SingleMsg =  string.Empty;
						if (rdbsingleUserBoard.Active == true) 
						{
							ClGlobul.lstListOfBoardNames.Clear();
							ClGlobul.lstBoardRepinMessage.Clear();

							SingleBoardUrl = txtBoardUrl.Text.Trim();
							ClGlobul.lstListOfBoardNames.Add(SingleBoardUrl);
							Addtologger("[ " + DateTime.Now + " ] => [ Board Url Loaded : " + ClGlobul.lstListOfBoardNames.Count + " ]");

							SingleMsg = txtMsgBoard.Text.Trim();
							ClGlobul.lstBoardRepinMessage.Add(SingleMsg);
							Addtologger("[ " + DateTime.Now + " ] => [ Message Loaded : " + ClGlobul.lstBoardRepinMessage.Count + " ]");
						}
						else if(string.IsNullOrEmpty(txtBoardUrl.Text))
						{
							Addtologger("[ " + DateTime.Now + " ] => [ Please Upload Board Url ]");	
							return;
						}
					}
					catch (Exception ex)
					{
						Console.Write (ex.Message);
					}

					try
					{
					clsSettingDB Database = new clsSettingDB();
					Database.UpdateSettingData("Board", "AddBoardMessage", StringEncoderDecoder.Encode(txtMsgBoard.Text));

					objBoardManager.isStopBoards = false;
					objBoardManager.lstThreadsBoards.Clear();
					if (objBoardManager._IsfevoriteBoards)
					{
						objBoardManager._IsfevoriteBoards = false;
					}
					}
					catch{};

					Regex checkNo = new Regex("^[0-9]*$");

					int processorCount = objUtils.GetProcessor();

					int threads = 25;

					int maxThread = 25 * processorCount;

					try
					{
						try
						{
							objBoardManager.minDelayBoards = Convert.ToInt32(txtMinDelayBoard.Text);
							objBoardManager.maxDelayBoards = Convert.ToInt32(txtMaxDelayBoard.Text);
							objBoardManager.NoOfThreadsBoards = Convert.ToInt32(txtThreadBoard.Text);
							objBoardManager.MaxRePinCount = Convert.ToInt32(txtMaxCountBoard.Text);
						}
						catch (Exception ex)
						{
							Addtologger("Enter in Correct Format");
							return;
						}

						if (!string.IsNullOrEmpty(txtThreadBoard.Text) && checkNo.IsMatch(txtThreadBoard.Text))
						{
							threads = Convert.ToInt32(txtThreadBoard.Text);
						}

						if (threads > maxThread)
						{
							threads = 25;
						}
						objBoardManager.NoOfThreadsBoards = threads;

						Addtologger("[ " + DateTime.Now + " ] => [ Process Starting ] ");


						try
						{
						Thread BoardsThread = new Thread(objBoardManager.StartBoards);
						BoardsThread.Start();
						btnStopBoard.Sensitive =  true;
						}
						catch{};
					}

					catch (Exception ex)
					{
						Console.Write (ex.Message);
					}
				}
				else
				{
					Addtologger("Please Load Accounts !");				
				}
			}
			catch (Exception ex)
			{
				Console.Write (ex.Message);
			}
		}
        public void startEditDescription()
        {
            try
            {
                if (PDGlobals.listAccounts.Count > 0)
                {
                    try
                    {
                        if (objEditPinDiscriptionManager.rdbSingleUserEditPinDisc == true || objEditPinDiscriptionManager.rdbMultipleUserEditPinDisc == true)
                        {
                            if (objEditPinDiscriptionManager.rdbSingleUserEditPinDisc == true)
                            {
                                try
                                {                                  
                                }
                                catch (Exception ex)
                                {
                                    GlobusLogHelper.log.Error("Error : " + ex.StackTrace);
                                }
                            }//end of single User
                            if (objEditPinDiscriptionManager.rdbMultipleUserEditPinDisc == true)
                            {
                                try
                                {
                                    if (string.IsNullOrEmpty(txtPinDescription.Text))
                                    {
                                        GlobusLogHelper.log.Info("Please Upload Description");
                                        ModernDialog.ShowMessage("Please Upload Description", "Upload Description", MessageBoxButton.OK);
                                        return;
                                    }
                                }
                                catch (Exception ex)
                                {
                                    GlobusLogHelper.log.Error("Error : " + ex.StackTrace);
                                }
                            }//end of multiple user
                        }
                        else
                        {
                            GlobusLogHelper.log.Info("Please Select Use Single User or Use Multiple User");
                            ModernDialog.ShowMessage("Please Select Use Single User or Use Multiple User", "Select Use Single User or Use Multiple User", MessageBoxButton.OK);
                            return;
                        }

                    }
                    catch (Exception ex)
                    {
                        GlobusLogHelper.log.Error("Error : " + ex.StackTrace);
                    }
                    objEditPinDiscriptionManager.isStopEditPinDisc = false;
                    objEditPinDiscriptionManager.lstThreadsEditPinDisc.Clear();

                    if (objEditPinDiscriptionManager._IsfevoriteEditPinDes)
                    {
                        objEditPinDiscriptionManager._IsfevoriteEditPinDes = false;
                    }

                    Regex checkNo = new Regex("^[0-9]*$");

                    int processorCount = objUtils.GetProcessor();

                    int threads = 25;

                    int maxThread = 25 * processorCount;
                    try
                    {
                        try
                        {
                            objEditPinDiscriptionManager.minDelayEditPinDisc = Convert.ToInt32(txtEditPinDescription_DelayMin.Text);
                            objEditPinDiscriptionManager.maxDelayEditPinDisc = Convert.ToInt32(txtEditPinDescription_DelayMax.Text);
                            objEditPinDiscriptionManager.Nothread_EditPinDisc = Convert.ToInt32(txtEditPinDescription_NoOfThreads.Text);
                            objEditPinDiscriptionManager.NoOfPagesEditPinDisc = Convert.ToInt32(txtNoOfPages_EditPinDisc.Text);
                        }
                        catch (Exception ex)
                        {
                            GlobusLogHelper.log.Info("Enter in Correct Format");
                            return;
                        }


                        if (ClGlobul.CommentNicheMessageList.Count > 0)
                        {
                            clsSettingDB Database = new clsSettingDB();
                            Database.UpdateSettingData("PinDescription", "PinDescriptionMessage", StringEncoderDecoder.Encode(txtPinDescription.Text));
                            GlobusLogHelper.log.Info(" => [ Start Edit Description ]");
                            ClGlobul.lstPins.Clear();

                        }
                        if (!string.IsNullOrEmpty(txtEditPinDescription_NoOfThreads.Text) && checkNo.IsMatch(txtEditPinDescription_NoOfThreads.Text))
                        {
                            threads = Convert.ToInt32(txtEditPinDescription_NoOfThreads.Text);
                        }

                        if (threads > maxThread)
                        {
                            threads = 25;
                        }
                        GlobusLogHelper.log.Info(" => [ Process Starting ] ");
                        objEditPinDiscriptionManager.NoOfThreadsEditPinDisc = threads;

                        Thread EditPinDiscThread = new Thread(objEditPinDiscriptionManager.StartEditPinDisc);
                        EditPinDiscThread.Start();
                    }

                    catch (Exception ex)
                    {
                        GlobusLogHelper.log.Error("Error : " + ex.StackTrace);
                    }
                }
                else
                {
                    GlobusLogHelper.log.Info("Please Load Accounts !");
                    GlobusLogHelper.log.Debug("Please Load Accounts !");

                }
            }
            catch (Exception ex)
            {
                GlobusLogHelper.log.Error(" Error :" + ex.StackTrace);
            }
        }
        public void startBoardCreation()
        {
            try
            {
                if (PDGlobals.listAccounts.Count > 0)
                {
                    try
                    {
                        if (objBoardsManager.rdbSingleUserBoards == true || objBoardsManager.rdbMultipleUserBoards == true)
                        {
                            if (objBoardsManager.rdbSingleUserBoards == true)
                            {                               
                                try
                                {                                                                    
                                }
                                catch (Exception ex)
                                {
                                    GlobusLogHelper.log.Info("Error :" + ex.StackTrace);
                                }
                            }//end of single user
                            if (objBoardsManager.rdbMultipleUserBoards == true)
                            {
                                try
                                {
                                    if (string.IsNullOrEmpty(txtBoardUrl.Text))
                                    {
                                        GlobusLogHelper.log.Info("Please Enter Board Url");
                                        ModernDialog.ShowMessage("Please Enter Board Url", "Enter Board Url", MessageBoxButton.OK);
                                        return;
                                    }
                                }
                                catch (Exception ex)
                                {
                                    GlobusLogHelper.log.Info("Error :" + ex.StackTrace);
                                }
                            }//end of multiple user
                        }
                        else
                        {
                            MessageBox.Show("Please Select Use Single User or Use Multiple User");
                            return;
                        }

                    }
                    catch (Exception ex)
                    {
                        GlobusLogHelper.log.Error("Error : " + ex.StackTrace);
                    }

                    clsSettingDB Database = new clsSettingDB();
                    // Database.UpdateSettingData("Board", "AddBoardUrl", StringEncoderDecoder.Encode(txtBoardName.Text));
                    Database.UpdateSettingData("Board", "AddBoardMessage", StringEncoderDecoder.Encode(txtMessage.Text));

                    objBoardsManager.isStopBoards = false;
                    objBoardsManager.lstThreadsBoards.Clear();
                    if (objBoardsManager._IsfevoriteBoards)
                    {
                        objBoardsManager._IsfevoriteBoards = false;
                    }

                    Regex checkNo = new Regex("^[0-9]*$");

                    int processorCount = objUtil.GetProcessor();

                    int threads = 25;

                    int maxThread = 25 * processorCount;

                    try
                    {
                        try
                        {
                            objBoardsManager.minDelayBoards = Convert.ToInt32(txtBoard_DelayMin.Text);
                            objBoardsManager.maxDelayBoards = Convert.ToInt32(txtBoard_DelayMax.Text);
                            objBoardsManager.NoOfThreadsBoards = Convert.ToInt32(txtBoard_NoOfThreads.Text);
                            objBoardsManager.MaxRePinCount = Convert.ToInt32(txtNoOfPinRepin.Text);
                        }
                        catch (Exception ex)
                        {
                            GlobusLogHelper.log.Info("Enter in Correct Format");
                            return;
                        }

                        if (!string.IsNullOrEmpty(txtBoard_NoOfThreads.Text) && checkNo.IsMatch(txtBoard_NoOfThreads.Text))
                        {
                            threads = Convert.ToInt32(txtBoard_NoOfThreads.Text);
                        }

                        if (threads > maxThread)
                        {
                            threads = 25;
                        }
                        objBoardsManager.NoOfThreadsBoards = threads;

                        GlobusLogHelper.log.Info(" => [ Process Starting ] ");

                        Thread BoardsThread = new Thread(objBoardsManager.StartBoards);
                        BoardsThread.Start();
                    }

                    catch (Exception ex)
                    {
                        GlobusLogHelper.log.Error("Error : " + ex.StackTrace);
                    }
                }
                else
                {
                    GlobusLogHelper.log.Info("Please Load Accounts !");
                    GlobusLogHelper.log.Debug("Please Load Accounts !");

                }
            }
            catch (Exception ex)
            {
                GlobusLogHelper.log.Error(" Error :" + ex.StackTrace);
            }
        }