示例#1
0
        private void btnEmails_Click(object sender, EventArgs e)
        {
            try
            {
                txtEmails.Text = "";
                using (OpenFileDialog ofd = new OpenFileDialog())
                {
                    ofd.Filter           = "Text Files (*.txt)|*.txt";
                    ofd.InitialDirectory = Application.StartupPath;
                    if (ofd.ShowDialog() == DialogResult.OK)
                    {
                        txtEmails.Text = ofd.FileName;
                        List <string> templist = GlobusFileHelper.ReadFile(ofd.FileName);

                        //JoinSearchGroup.JoinSearchGroup.lstLinkedinGroupURL.Clear();
                        lstEmails.Clear();
                        foreach (string item in templist)
                        {
                            //JoinSearchGroup.JoinSearchGroup.lstLinkedinGroupURL.Add(item);
                            GroupStatus.lstEmailsGroupInvite.Add(item);
                            lstEmails.Add(item);
                        }

                        //JoinSearchGroup.JoinSearchGroup.lstLinkedinGroupURL = JoinSearchGroup.JoinSearchGroup.lstLinkedinGroupURL.Distinct().ToList();
                        AddLoggerGroupsInvitation("[ " + DateTime.Now + " ] => [ " + lstEmails.Count + " Emails Added ]");
                    }
                }
            }
            catch
            {
            }
        }
示例#2
0
        private void BtnUploadGroupURL_Click(object sender, EventArgs e)
        {
            try
            {
                TxtGroupURL.Text = "";
                using (OpenFileDialog ofd = new OpenFileDialog())
                {
                    ofd.Filter           = "Text Files (*.txt)|*.txt";
                    ofd.InitialDirectory = Application.StartupPath;
                    if (ofd.ShowDialog() == DialogResult.OK)
                    {
                        TxtGroupURL.Text = ofd.FileName;
                        List <string> templist = GlobusFileHelper.ReadFile(ofd.FileName);

                        Groups.JoinSearchGroup.lstLinkedinGroupURL.Clear();
                        lstJoinGroupUrl.Clear();
                        foreach (string item in templist)
                        {
                            Groups.JoinSearchGroup.lstLinkedinGroupURL.Add(item);
                            lstJoinGroupUrl.Add(item);
                        }
                        Groups.JoinSearchGroup.lstLinkedinGroupURL = Groups.JoinSearchGroup.lstLinkedinGroupURL.Distinct().ToList();
                        AddLoggerJoinGroupUrl("[ " + DateTime.Now + " ] => [ " + Groups.JoinSearchGroup.lstLinkedinGroupURL.Count + " Group URLs Loaded ! ]");
                    }
                }
            }
            catch
            {
            }
        }
示例#3
0
        private void BtnUploadCompanyURL_Click(object sender, EventArgs e)
        {
            try
            {
                txtCompanyURL.Text = "";
                using (OpenFileDialog ofd = new OpenFileDialog())
                {
                    ofd.Filter           = "Text Files (*.txt)|*.txt";
                    ofd.InitialDirectory = Application.StartupPath;
                    if (ofd.ShowDialog() == DialogResult.OK)
                    {
                        txtCompanyURL.Text = ofd.FileName;
                        List <string> templist = GlobusFileHelper.ReadFile(ofd.FileName);

                        LinkedinCompanyFollow.lstLinkedinCompanyURL.Clear();
                        foreach (string item in templist)
                        {
                            LinkedinCompanyFollow.lstLinkedinCompanyURL.Add(item);
                        }
                        LinkedinCompanyFollow.lstLinkedinCompanyURL = LinkedinCompanyFollow.lstLinkedinCompanyURL.Distinct().ToList();
                        AddLoggerFollowCompanyUrl("[ " + DateTime.Now + " ] => [ " + LinkedinCompanyFollow.lstLinkedinCompanyURL.Count + " Company URLs Loaded ! ]");
                    }
                }
            }
            catch { }
        }
示例#4
0
 private void btntitle_Click(object sender, EventArgs e)
 {
     try
     {
         using (OpenFileDialog ofd = new OpenFileDialog())
         {
             ofd.Filter           = "Text Files (*.txt)|*.txt";
             ofd.InitialDirectory = Application.StartupPath;
             if (ofd.ShowDialog() == DialogResult.OK)
             {
                 txtTitleName.Text = ofd.FileName;
                 lsttitlename.Clear();
                 List <string> templist = GlobusFileHelper.ReadFile(ofd.FileName);
                 foreach (string item in templist)
                 {
                     string newItem = item.Replace("\t", "");
                     if (!lsttitlename.Contains(item) && !string.IsNullOrEmpty(newItem))
                     {
                         lsttitlename.Add(item);
                     }
                 }
                 AddExperienceLogger("[ " + DateTime.Now + " ] => [ " + lsttitlename.Count + "  Title Loaded ]");
             }
         }
     }
     catch (Exception ex)
     {
         GlobusFileHelper.AppendStringToTextfileNewLine("DateTime :- " + DateTime.Now + " :: Error --> Account Creator --> btnfname_Click() >>>> " + ex.Message + "StackTrace --> >>>" + ex.StackTrace, Globals.Path_LinkedinErrorLogs);
         GlobusFileHelper.AppendStringToTextfileNewLine("DateTime :- " + DateTime.Now + " :: Error --> Account Creator --> btnfname_Click() >>>> " + ex.Message + "StackTrace --> >>>" + ex.StackTrace, Globals.Path_LinkedinAccountCraetionErrorLogs);
     }
 }
        private void btnKeyword_LikeByKeyword_Browse_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                ClGlobul.lstLikeByKeyword.Clear();

                txt_KeywordLike.IsReadOnly = true;
                Microsoft.Win32.OpenFileDialog dlg = new Microsoft.Win32.OpenFileDialog();
                dlg.DefaultExt = ".txt";
                dlg.Filter     = "Text documents (.txt)|*.txt";
                Nullable <bool> result = dlg.ShowDialog();
                if (result == true)
                {
                    txt_KeywordLike.Text = dlg.FileName.ToString();
                }
                try
                {
                    ClGlobul.lstLikeByKeyword = GlobusFileHelper.ReadFile(txt_KeywordLike.Text.Trim());
                }
                catch (Exception ex)
                {
                    GlobusLogHelper.log.Info(" Please Select File ");
                }
            }
            catch (Exception ex)
            {
                GlobusLogHelper.log.Info("Error :" + ex.StackTrace);
            }
        }
示例#6
0
        private void btnBrowseBoardName_AddNewPin_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                //lstBoardNameNiche_AddNewPin
                ClGlobul.lstBoardNameNiche_AddNewPin.Clear();

                txtNewPin.IsReadOnly = true;
                Microsoft.Win32.OpenFileDialog dlg = new Microsoft.Win32.OpenFileDialog();
                dlg.DefaultExt = ".txt";
                dlg.Filter     = "Text documents (.txt)|*.txt";
                Nullable <bool> result = dlg.ShowDialog();
                if (result == true)
                {
                    txtNewPin.Text = dlg.FileName.ToString();
                }
                try
                {
                    ClGlobul.lstBoardNameNiche_AddNewPin = GlobusFileHelper.ReadFile(txtNewPin.Text.Trim());
                }
                catch (Exception ex)
                {
                    GlobusLogHelper.log.Info(" Please Select File ");
                }
                GlobusLogHelper.log.Info(" => [ Total Uploaded BoardName Is " + ClGlobul.lstBoardNameNiche_AddNewPin.Count + " ]");
            }
            catch (Exception ex)
            {
                GlobusLogHelper.log.Error(" Error :" + ex.StackTrace);
            }
        }
示例#7
0
 private void btnUnFollowlstBrowse_UnFollow_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         ClGlobul.lstUploadUnFollowList.Clear();
         Microsoft.Win32.OpenFileDialog dlg = new Microsoft.Win32.OpenFileDialog();
         dlg.DefaultExt = ".txt";
         dlg.Filter     = "Text documents (.txt)|*.txt";
         Nullable <bool> result = dlg.ShowDialog();
         try
         {
             if (result == true)
             {
                 txtUnFollowList_UnFollow.Text = dlg.FileName.ToString();
             }
             ClGlobul.lstUploadUnFollowList = GlobusFileHelper.ReadFile(txtUnFollowList_UnFollow.Text.Trim());
             GlobusLogHelper.log.Info(" =>  [ " + ClGlobul.lstUploadUnFollowList.Count + " UnFollow List Uploaded ]");
         }
         catch (Exception ex)
         {
             GlobusLogHelper.log.Info(" Please Select File ");
         }
     }
     catch (Exception ex)
     {
         GlobusLogHelper.log.Error(" Error :" + ex.StackTrace);
     }
 }
示例#8
0
        private void btn_LISearch_Search_SearchByUrl_Click(object sender, RoutedEventArgs e)
        {
            Microsoft.Win32.OpenFileDialog dlg = new Microsoft.Win32.OpenFileDialog();
            dlg.DefaultExt = ".txt";
            dlg.Filter     = "Text documents (.txt)|*.txt";
            Nullable <bool> result = dlg.ShowDialog();

            if (result == true)
            {
                List <string> templist = GlobusFileHelper.ReadFile(dlg.FileName);


                foreach (string item in templist)
                {
                    try
                    {
                        objSimpleScraper.lstUrlsSimpleScraper.Add(item);
                    }
                    catch (Exception ex)
                    {
                        GlobusLogHelper.log.Error("Error : " + ex.StackTrace);
                    }
                }
            }
            GlobusLogHelper.log.Info("Urls Loaded : " + objSimpleScraper.lstUrlsSimpleScraper.Count);
        }
示例#9
0
 private void btnCompanyEmployeeScraperURLBrowse_Click(object sender, EventArgs e)
 {
     try
     {
         txtCompanyEmployeeScraperURL.Text = "";
         using (OpenFileDialog ofd = new OpenFileDialog())
         {
             ofd.Filter           = "Text Files (*.txt)|*.txt";
             ofd.InitialDirectory = Application.StartupPath;
             if (ofd.ShowDialog() == DialogResult.OK)
             {
                 txtCompanyEmployeeScraperURL.Text = ofd.FileName;
                 List <string> templist = GlobusFileHelper.ReadFile(ofd.FileName);
                 //lstEventURLsFile = new List<string>();
                 LinkedinSearch.listCompanyURL.Clear();
                 foreach (string item in templist)
                 {
                     LinkedinSearch.listCompanyURL.Add(item);
                 }
                 LinkedinSearch.listCompanyURL = LinkedinSearch.listCompanyURL.Distinct().ToList();
                 AddLoggerCompanyEmployeeSearch("[ " + DateTime.Now + " ] => [ " + LinkedinSearch.listCompanyURL.Count + " Company URLs Loaded ! ]");
                 //AddToListWallPost(lstWallMessage.Count + " Wall post message ");
             }
         }
     }
     catch
     {
     }
 }
示例#10
0
        public void ProfileIDWithName()
        {
            using (OpenFileDialog ofd = new OpenFileDialog())
            {
                ofd.Filter           = "Text Files (*.txt)|*.txt";
                ofd.InitialDirectory = Application.StartupPath;
                if (ofd.ShowDialog() == DialogResult.OK)
                {
                    this.Invoke(new MethodInvoker(delegate
                    {
                        txtBlackListIDPath.Text = ofd.FileName;
                    }));


                    listProfileIDWithName.Clear();

                    List <string> templist = GlobusFileHelper.ReadFile(ofd.FileName);
                    foreach (string item in templist)
                    {
                        string newItem = item.Replace(" ", "").Replace("\t", "");
                        if (!listProfileIDWithName.Contains(newItem) && !string.IsNullOrEmpty(newItem))
                        {
                            listProfileIDWithName.Add(newItem);
                        }
                    }

                    listProfileIDWithName = listProfileIDWithName.Distinct().ToList();
                }
            }
        }
示例#11
0
        private void btnUsername_FollowByUsername_Browse_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                ClGlobul.ListOfFollowUsersFollowers.Clear();
                ClGlobul.FollowUsersFollowerQueue.Clear();

                Microsoft.Win32.OpenFileDialog dlg = new Microsoft.Win32.OpenFileDialog();
                dlg.DefaultExt = ".txt";
                dlg.Filter     = "Text documents (.txt)|*.txt";
                Nullable <bool> result = dlg.ShowDialog();
                if (result == true)
                {
                    txtUsernameUpload.Text = dlg.FileName.ToString();
                }
                try
                {
                    ClGlobul.ListOfFollowUsersFollowers = GlobusFileHelper.ReadFile(txtUsernameUpload.Text.Trim());
                }
                catch (Exception ex)
                {
                    GlobusLogHelper.log.Info(" Please Select File ");
                }
            }
            catch (Exception ex)
            {
                GlobusLogHelper.log.Info("Error :" + ex.StackTrace);
            }
        }
示例#12
0
 public void LoadAccoundChecker()
 {
     try
     {
         Microsoft.Win32.OpenFileDialog dlg = new Microsoft.Win32.OpenFileDialog();
         dlg.DefaultExt = ".txt";
         dlg.Filter     = "Text documents (.txt)|*.txt"; //txtLoadAcc_AccountChecker
         Nullable <bool> result = dlg.ShowDialog();
         if (result == true)
         {
             txtLoadAcc_AccountChecker.Text       = dlg.FileName.ToString();
             ClGlobul.lstAccountForAccountChecker = GlobusFileHelper.ReadFile(txtLoadAcc_AccountChecker.Text.Trim());
         }
         GlobusLogHelper.log.Info("=> [ Total Uploaded Account Is " + ClGlobul.lstAccountForAccountChecker.Count + " ]");
         //string Path = dlg.ToString().Replace("Microsoft.Win32.OpenFileDialog: Title: , FileName", "");
         //this.Dispatcher.Invoke(new Action(delegate
         //    {
         //        lblNoOfAccount_AccChecker.Content = ClGlobul.lstAccountForAccountChecker.Count;
         //    }));
         // ClGlobul.lstAccountForAccountChecker = GlobusFileHelper.ReadFile(dlg.FileName);
     }
     catch (Exception ex)
     {
         GlobusLogHelper.log.Error(" Error :" + ex.StackTrace);
     }
 }
示例#13
0
 private void btnEmailsBrowse_AccountVerification_Click(object sender, EventArgs e)
 {
     try
     {
         using (OpenFileDialog ofd = new OpenFileDialog())
         {
             ofd.Filter           = "Text Files (*.txt)|*.txt";
             ofd.InitialDirectory = Application.StartupPath;
             if (ofd.ShowDialog() == DialogResult.OK)
             {
                 txtEmails_AccountVerification.Text = ofd.FileName;
                 string        FilePath = ofd.FileName;
                 List <string> templist = GlobusFileHelper.ReadFile(ofd.FileName);// ReadFiletoStringList
                 lstEmailVerification_AccountVerification.Clear();
                 foreach (string item in templist)
                 {
                     //lstRemoveDuplicate.Add(item);
                     lstEmailVerification_AccountVerification.Add(item);
                 }
                 lstEmailVerification_AccountVerification = lstEmailVerification_AccountVerification.Distinct().ToList();
                 Console.WriteLine(lstEmailVerification_AccountVerification.Count + " Emails loaded");
                 AddAccountVerificationLogger("[ " + DateTime.Now + " ] => [ " + lstEmailVerification_AccountVerification.Count + " Emails loaded ]");
             }
         }
     }
     catch
     {
     }
 }
示例#14
0
        private void btnPinUrls_Like_Browse_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                txtLikePinUrl.IsReadOnly = true;
                ClGlobul.lstAddToBoardUserNames.Clear();
                Microsoft.Win32.OpenFileDialog ofd = new Microsoft.Win32.OpenFileDialog();
                ofd.DefaultExt = ".txt";
                ofd.Filter     = "Text documents (.txt)|*.txt";
                Nullable <bool> result = ofd.ShowDialog();

                if (result == true)
                {
                    txtLikePinUrl.Text = ofd.FileName.ToString();
                    Thread ReadLargeFileThread = new Thread(ReadLargeLikePinUrlsFile);
                    ReadLargeFileThread.Start(ofd.FileName);
                    ClGlobul.lstAddToBoardUserNames = GlobusFileHelper.ReadFile(txtLikePinUrl.Text.Trim());
                    GlobusLogHelper.log.Info(" => [ " + ClGlobul.lstAddToBoardUserNames.Count + " Pin Urls Uploaded ]");
                }
            }
            catch (Exception ex)
            {
                GlobusLogHelper.log.Info("Error :" + ex.StackTrace);
            }
        }
        public void readPin(object filePath)
        {
            try
            {
                List <string> lstRepinUrl1 = GlobusFileHelper.ReadFile(txtRepinNo_Repin.Text.Trim());

                Thread thrAddAndTest = new Thread(() => AddAndTestPins(lstRepinUrl1));
                thrAddAndTest.Start();
            }
            catch (Exception ex)
            {
                GlobusLogHelper.log.Error("Error :" + ex.StackTrace);
            }
        }
 public void Loadproxy(string filePath)
 {
     try
     {
         string        ValidIpAddressRegex   = @"^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$";
         List <string> proxyList             = GlobusFileHelper.ReadFile(filePath);
         List <string> getTheFinaleProxyList = proxyList.Where(e => e.StartsWith(System.Text.RegularExpressions.Regex.Match(e.ToString(), ValidIpAddressRegex).ToString())).ToList();
         ClGlobul.ProxyList = getTheFinaleProxyList;
         //getchekingproxy();
         GlobusLogHelper.log.Info("[ " + DateTime.Now + " ] => [ " + ClGlobul.ProxyList.Count() + " Proxies Uploaded ]");
     }
     catch (Exception)
     {
     }
 }
 private void ReadLargeNewPinsFileofAddNewBoardWithNewPin(object filePath)
 {
     try
     {
         List <string> AccountsList = GlobusFileHelper.ReadFile((string)filePath);
         new Thread(() =>
         {
             AddNewPinsListofAddNewBoardWithNewPin(AccountsList);
         }).Start();
     }
     catch (Exception ex)
     {
         GlobusLogHelper.log.Info("Error :" + ex.StackTrace);
     }
 }
 public void ReadLarge_hashlike(string photoFilename)
 {
     ClGlobul.HashLiker.Clear();
     try
     {
         List <string> photolist = GlobusFileHelper.ReadFile((string)photoFilename);
         foreach (string phoyoList_item in photolist)
         {
             ClGlobul.HashLiker.Add(phoyoList_item);
         }
         GlobusLogHelper.log.Info("[ " + DateTime.Now + " ] => [ " + ClGlobul.HashLiker.Count + " UserName Uploaded. ]");
     }
     catch (Exception ex)
     {
     }
 }
示例#19
0
 public void ReadLargePhotoFile(string photoFilename)
 {
     ClGlobul.PhotoList.Clear();
     try
     {
         List <string> photolist = GlobusFileHelper.ReadFile((string)photoFilename);
         foreach (string phoyoList_item in photolist)
         {
             ClGlobul.lstStoreDownloadImageKeyword.Add(phoyoList_item);
         }
         GlobusLogHelper.log.Info("[ " + DateTime.Now + " ] => [ " + ClGlobul.lstStoreDownloadImageKeyword.Count + " UserName Uploaded. ]");
     }
     catch (Exception ex)
     {
     }
 }
示例#20
0
 public void ReadLargeFile_usingUser_onlycommentmessage(string photoFilename)
 {
     ClGlobul.UsingUsername_likecommentMessageList.Clear();
     try
     {
         List <string> photolist = GlobusFileHelper.ReadFile((string)photoFilename);
         foreach (string phoyoList_item in photolist)
         {
             ClGlobul.UsingUsername_likecommentMessageList.Add(phoyoList_item);
         }
         GlobusLogHelper.log.Info("[ " + DateTime.Now + " ] => [ " + ClGlobul.UsingUsername_likecommentMessageList.Count + " Message Uploaded. ]");
     }
     catch (Exception ex)
     {
     }
 }
 public void ReadLargePhotoFile(string photoFilename)
 {
     ClGlobul.PhotoList.Clear();
     try
     {
         List <string> photolist = GlobusFileHelper.ReadFile((string)photoFilename);
         foreach (string phoyoList_item in photolist)
         {
             ClGlobul.PhotoList.Add(phoyoList_item);
         }
         GlobusLogHelper.log.Info("[ " + DateTime.Now + " ] => [ " + ClGlobul.PhotoList.Count + " Image IDs Uploaded. ]");
     }
     catch (Exception ex)
     {
         GlobusLogHelper.log.Error("Error : " + ex.StackTrace);
     }
 }
示例#22
0
 public void readcommentidFile(string commentidFilePath)
 {
     try
     {
         GlobalDeclration.objScrapeUser.listOfPhotoUrl.Clear();
         List <string> commentUserlist = GlobusFileHelper.ReadFile((string)commentidFilePath);
         foreach (string commentidlist_item in commentUserlist)
         {
             GlobalDeclration.objScrapeUser.listOfPhotoUrl.Add(commentidlist_item);
         }
         GlobalDeclration.objScrapeUser.listOfPhotoUrl = GlobalDeclration.objScrapeUser.listOfPhotoUrl.Distinct().ToList();
         GlobusLogHelper.log.Info("[ " + DateTime.Now + " ] => [ " + GlobalDeclration.objScrapeUser.listOfPhotoUrl.Count + " Username Uploaded. ]");
     }
     catch (Exception ex)
     {
         GlobusLogHelper.log.Info("Error:" + ex.StackTrace);
     }
 }
        public void ReadFile_campaign_PhotoId(string commentidFilePath)
        {
            try
            {
                ClGlobul.Campiagn_Comment_PhotoIDList.Clear();
                //Read Data From Selected File ....
                List <string> commentidlist = GlobusFileHelper.ReadFile((string)commentidFilePath);
                foreach (string commentidlist_item in commentidlist)
                {
                    ClGlobul.Campiagn_Comment_PhotoIDList.Add(commentidlist_item);
                }
                ClGlobul.Campiagn_Comment_PhotoIDList = ClGlobul.Campiagn_Comment_PhotoIDList.Distinct().ToList();

                GlobusLogHelper.log.Info("[ " + DateTime.Now + " ] => [ " + ClGlobul.Campiagn_Comment_PhotoIDList.Count + " PhotoID  Uploaded. ]");
            }
            catch (Exception ex)
            {
            }
        }
示例#24
0
        private void ReadLargeLikePinUrlsFile(object filePath)
        {
            try
            {
                lstReLikeThread.Add(Thread.CurrentThread);
                lstReLikeThread.Distinct().ToList();
                Thread.CurrentThread.IsBackground = true;

                List <string> AccountsList = GlobusFileHelper.ReadFile((string)filePath);
                new Thread(() =>
                {
                    AddLikePinUrlsList(AccountsList);
                }).Start();
            }
            catch (Exception ex)
            {
                GlobusLogHelper.log.Info("Error :" + ex.StackTrace);
            }
        }
        public void readHash_Follower(string commentidFilePath)
        {
            try
            {
                ClGlobul.HashFollower.Clear();
                //Read Data From Selected File ....
                List <string> commentidlist = GlobusFileHelper.ReadFile((string)commentidFilePath);
                foreach (string commentidlist_item in commentidlist)
                {
                    ClGlobul.HashFollower.Add(commentidlist_item);
                }
                ClGlobul.HashFollower = ClGlobul.HashFollower.Distinct().ToList();

                GlobusLogHelper.log.Info("[ " + DateTime.Now + " ] => [ " + ClGlobul.HashFollower.Count + " Message  Uploaded. ]");
            }
            catch (Exception ex)
            {
            }
        }
        private void BtnUploadProfileURL_Click(object sender, EventArgs e)
        {
            try
            {
                using (OpenFileDialog ofd = new OpenFileDialog())
                {
                    ofd.Filter           = "Text Files (*.txt)|*.txt";
                    ofd.InitialDirectory = Application.StartupPath;
                    if (ofd.ShowDialog() == DialogResult.OK)
                    {
                        TxtProfileURL.Text = ofd.FileName;


                        lstProfileURL.Clear();

                        List <string> templist = GlobusFileHelper.ReadFile(ofd.FileName);
                        foreach (string item in templist)
                        {
                            try
                            {
                                string newItem = item.Replace(" ", "").Replace("\t", "");
                                if (!lstProfileURL.Contains(item) && !string.IsNullOrEmpty(newItem))
                                {
                                    lstProfileURL.Add(item);
                                }
                            }
                            catch (Exception)
                            {
                            }
                        }

                        lstProfileURL = lstProfileURL.Distinct().ToList();
                        AddInviteMemberThroughProfUrlLogger("[ " + DateTime.Now + " ] => [ " + lstProfileURL.Count + "  Number Of Profile URL Added ! ]");
                    }
                }
            }
            catch (Exception ex)
            {
                GlobusFileHelper.AppendStringToTextfileNewLine("DateTime :- " + DateTime.Now + " :: Error --> Account Creator --> btnfname_Click() >>>> " + ex.Message + "StackTrace --> >>>" + ex.StackTrace, Globals.Path_LinkedinErrorLogs);
                GlobusFileHelper.AppendStringToTextfileNewLine("DateTime :- " + DateTime.Now + " :: Error --> Account Creator --> btnfname_Click() >>>> " + ex.Message + "StackTrace --> >>>" + ex.StackTrace, Globals.Path_LinkedinAccountCraetionErrorLogs);
            }
        }
        public void readLoadPasswordFile(string commentidFilePath)
        {
            try
            {
                ClGlobul.ListPassword.Clear();
                //Read Data From Selected File ....
                List <string> commentidlist = GlobusFileHelper.ReadFile((string)commentidFilePath);
                foreach (string commentidlist_item in commentidlist)
                {
                    //add Comment Id's In Globol Comment Id List ...
                    ClGlobul.ListPassword.Add(commentidlist_item);
                }
                ClGlobul.ListPassword = ClGlobul.ListPassword.Distinct().ToList();

                GlobusLogHelper.log.Info("[ " + DateTime.Now + " ] => [ " + ClGlobul.ListPassword.Count + " Password update. ]");
            }
            catch (Exception ex)
            {
            }
        }
        private void btnFollowLoadUserName_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                ClGlobul.campaignfollowingList.Clear();
                Microsoft.Win32.OpenFileDialog dlg = new Microsoft.Win32.OpenFileDialog();
                dlg.DefaultExt = ".txt";
                dlg.Filter     = "Text documents (.txt)|*.txt";
                Nullable <bool> result = dlg.ShowDialog();

                if (result == true)
                {
                    DateTime      sTime    = DateTime.Now;
                    List <string> templist = GlobusFileHelper.ReadFile(dlg.FileName);

                    foreach (string item in templist)
                    {
                        //ClGlobul.campaignfollowingList.Add(item);
                        CampaignDetails.Text_CampaignFollowPath = dlg.FileName;
                    }
                    this.Dispatcher.Invoke(new Action(delegate
                    {
                        txtFollowUsernameLocation.Text = dlg.FileName;
                    }));
                    try
                    {
                        DateTime eTime    = DateTime.Now;
                        string   timeSpan = (eTime - sTime).TotalSeconds.ToString();
                        GlobusLogHelper.log.Info("Username To Follow Loaded : " + templist.Count() + " In " + timeSpan + " Seconds");
                    }
                    catch (Exception ex)
                    {
                        GlobusLogHelper.log.Error("Error : " + ex.StackTrace);
                    }
                }
            }
            catch (Exception ex)
            {
                GlobusLogHelper.log.Error("Error : " + ex.StackTrace);
            }
        }
        public void readLoadUserFile(string commentidFilePath)
        {
            try
            {
                ClGlobul.ListUsername_Manageprofile.Clear();
                //Read Data From Selected File ....
                List <string> commentidlist = GlobusFileHelper.ReadFile((string)commentidFilePath);
                foreach (string commentidlist_item in commentidlist)
                {
                    //add Comment Id's In Globol Comment Id List ...
                    ClGlobul.ListUsername_Manageprofile.Add(commentidlist_item);
                }
                ClGlobul.ListUsername_Manageprofile = ClGlobul.ListUsername_Manageprofile.Distinct().ToList();

                GlobusLogHelper.log.Info("[ " + DateTime.Now + " ] => [ " + ClGlobul.ListUsername_Manageprofile.Count + " Username update. ]");
            }
            catch (Exception ex)
            {
                GlobusLogHelper.log.Info("Error :" + ex.StackTrace);
            }
        }
 private void btnLoadPassword_ManageAccount_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         ClGlobul.lstPwdManageAcc.Clear();
         Microsoft.Win32.OpenFileDialog dlg = new Microsoft.Win32.OpenFileDialog();
         dlg.DefaultExt = ".txt";
         dlg.Filter     = "Text documents (.txt)|*.txt";
         Nullable <bool> result = dlg.ShowDialog();
         if (result == true)
         {
             txtPassword_ManageAccount.Text = dlg.FileName.ToString();
             ClGlobul.lstPwdManageAcc       = GlobusFileHelper.ReadFile(txtPassword_ManageAccount.Text.Trim());
         }
         GlobusLogHelper.log.Info(" => [ Total Email Uploaded : " + ClGlobul.lstPwdManageAcc.Count + " ]");
     }
     catch (Exception ex)
     {
         GlobusLogHelper.log.Error(" Error :" + ex.StackTrace);
     }
 }