Exemplo n.º 1
0
        private void CompanyEmployeeScraper_Load(object sender, EventArgs e)
        {
            image = Properties.Resources.background;
            LinkedinSearch.loggersearch.addToLogger += new EventHandler(LinkedinSearchCompEmplLogEvents_addToLogger);
            LinkedinSearch.loggerscrap.addToLogger  += new EventHandler(LinkedinSearchCompEmplLogEvents_addToLogger);
            LinkedInScrape.logger.addToLogger       += new EventHandler(LinkedinSearchCompEmplLogEvents_addToLogger);

            LoadPreScrapper();

            comboBoxemail.SelectedIndex = 0;
            ClsSelect ObjSelectMethod = new ClsSelect();

            CountryCode = ObjSelectMethod.getCountry();

            foreach (KeyValuePair <string, string> pair in CountryCode)
            {
                try
                {
                    CombScraperCountry.Items.Add(pair.Value);
                }
                catch
                {
                }
            }
        }
Exemplo n.º 2
0
        public void  bindMethod()
        {
            foreach (string item in LDGlobals.listAccounts)
            {
                string userName = item.Split(':')[0];
                cmb_CompanyEmployeeScraper_SelectAcc.Items.Add(userName);
            }
            MainWindow bojMainWindow = new MainWindow();

            ClsSelect ObjSelectMethod = new ClsSelect();

            CountryCode = ObjSelectMethod.getCountry();

            foreach (KeyValuePair <string, string> pair in CountryCode)
            {
                try
                {
                    cmb_CompanyEmployeeScraper_Country.Items.Add(pair.Value);
                }
                catch
                {
                }
            }
        }
Exemplo n.º 3
0
        public void bindMethod()
        {
            MainWindow objMainWindow = new MainWindow();
            string     WithingList   = objMainWindow.WithingList;

            foreach (string item in LDGlobals.listAccounts)
            {
                string userName = item.Split(':')[0];
                cmb_LIScraperInput_selectedAcc.Items.Add(userName);
            }


            Dictionary <string, string> CountryCode = new Dictionary <string, string>();
            ClsSelect ObjSelectMethod = new ClsSelect();

            CountryCode = ObjSelectMethod.getCountry();
            foreach (KeyValuePair <string, string> pair in CountryCode)
            {
                try
                {
                    cmb_SaleNavigtor_Country_Code.Items.Add(pair.Value);
                    // CombScraperCountry.Items.Add(pair.Value);


                    //  lstCountry.Add(pair.Value);
                    // CampainGroupCreate.Campaign_lstCountry.Add(pair.Value);
                }
                catch
                {
                }
            }

            // location
            try
            {
                //cmb_SaleNavigtor_Location.Items.Add("Located in or near");
                //cmb_SaleNavigtor_Location.Items.Add("Anywhere");
            }
            catch
            { }

            // within
            string[] arraywithin = Regex.Split(WithingList, ",");
            foreach (string item in arraywithin)
            {
                string[] arrayPostalwithin = Regex.Split(item, ":");
                if (arrayPostalwithin.Length == 2)
                {
                    cmb_SaleNavigtor_Within.Items.Add(arrayPostalwithin[1]);
                }
            }

            // title curernt or past
            string TitleValue = objMainWindow.TitleValue;

            string[] arrayTitleValue = Regex.Split(TitleValue, ",");
            // if (!Globals.ComboBoxCurrent_Past_Task_Done)
            // {
            foreach (string item in arrayTitleValue)
            {
                string[] arraytitleValue = Regex.Split(item, ":");
                if (arraytitleValue.Length == 2)
                {
                    // cmb_SaleNavigtor_Company_CrrentOrPast.Items.Add(arraytitleValue[1]);
                    // cmbboxCompanyValue.Items.Add(arraytitleValue[1]);
                }
            }
            //  }
        }