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 { } } }
public static void Main(string[] args) { Application.Init (); ModelController model = new ModelController (); MainWindow win = new MainWindow (model); win.Show (); Application.Run (); }
public void bindMethod() { MainWindow objMainWindow = new MainWindow(); TitleValue = objMainWindow.TitleValue; cmb_Current_Past.Items.Add("Current"); cmb_Current_Past.Items.Add("Past"); cmb_Current_Past.Items.Add("Current or past"); cmb_Current_Past.Items.Add("Past not current"); }
public void bindMethod() { MainWindow objMainWindow = new MainWindow(); IndustryList = objMainWindow.IndustryList; Language = objMainWindow.Language; RelationshipList = objMainWindow.RelationshipList; string[] arrayIndustry = Regex.Split(IndustryList, ","); foreach (string item in arrayIndustry) { string[] arrayInds = Regex.Split(item, ";"); if (arrayInds.Length == 2) { chk_LIS_Industry.Items.Add(arrayInds[0]); } } // Language string[] arrayLanguage = Regex.Split(Language, ","); foreach (string item in arrayLanguage) { string[] arraylang = Regex.Split(item, ";"); if (arraylang.Length == 2) { chk_LIS_Language.Items.Add(arraylang[0]); } } // RElationship string[] arrayRelationship = Regex.Split(RelationshipList, ","); foreach (string item in arrayRelationship) { string[] arrayrelat = Regex.Split(item, ":"); if (arrayrelat.Length == 2) { chk_LIS_Relationship.Items.Add(arrayrelat[1]); } } }
string Fortune_1000 = string.Empty;//fortuneList public void bindFunctions() { MainWindow objMainWindow = new MainWindow(); Fortune_1000 = objMainWindow.fortuneList; companysizelist = objMainWindow.companysizelist; RecentlyjoinedList = objMainWindow.RecentlyjoinedList; expList = objMainWindow.expList; IntrestedinList = objMainWindow.IntrestedinList; senioritylevel = objMainWindow.senioritylevel; // For Functions string[] arrayFunction = Regex.Split(Functionlist, ","); foreach (string item in arrayFunction) { string[] arrayInds = Regex.Split(item, ":"); if (arrayInds.Length == 2) { chklstBoxFunctions.Items.Add(arrayInds[1]); } } // for Fortune 1000 string[] arrayFortune = Regex.Split(Fortune_1000, ","); foreach (string item in arrayFortune) { string[] arrayInds = Regex.Split(item, ":"); if (arrayInds.Length == 2) { chk_Fortune_100.Items.Add(arrayInds[1]); } } // Company size string[] arrayCompanysize = Regex.Split(companysizelist, ","); foreach (string item in arrayCompanysize) { string[] arrayInds = Regex.Split(item, ":"); if (arrayInds.Length == 2) { chk_Company_size.Items.Add(arrayInds[1]); } } // Recently joined string[] arrayRecentlyjoined = Regex.Split(RecentlyjoinedList, ","); foreach (string item in arrayRecentlyjoined) { string[] arrayInds = Regex.Split(item, ":"); if (arrayInds.Length == 2) { chk_Recently_joined.Items.Add(arrayInds[1]); } } string[] arrayexpList = Regex.Split(expList, ","); foreach (string item in arrayexpList) { string[] arrayInds = Regex.Split(item, ":"); if (arrayInds.Length == 2) { chk_year_of_experiance.Items.Add(arrayInds[1]); } } string[] arrayIntrestedin = Regex.Split(IntrestedinList, ","); foreach (string item in arrayIntrestedin) { string[] arrayInds = Regex.Split(item, ":"); if (arrayInds.Length == 2) { chk_Interested_In.Items.Add(arrayInds[1]); } } // Seniority Lavel string[] arraySenoirtyLevel = Regex.Split(senioritylevel, ","); foreach (string item in arraySenoirtyLevel) { string[] arrayInds = Regex.Split(item, ":"); if (arrayInds.Length == 2) { chk_Seniority_Level.Items.Add(arrayInds[1]); } } //List<string> SSSS = new List<string>(); //SSSS.Add("test"); //SSSS.Add("test1"); //SSSS.Add("test2"); //foreach (var item in SSSS) //{ // chklstBoxFunctions.Items.Add(item); //} }
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]); } } // } }
private void Application_Startup(object sender, StartupEventArgs e) { var mw = new MainWindow(); mw.DataContext = new MainViewModel(); mw.Show(); }
public void bindMethod() { MainWindow objMainWindow = new MainWindow(); string Fortune_1000 = objMainWindow.fortuneList; string companysizelist = objMainWindow.companysizelist; string RecentlyjoinedList = objMainWindow.RecentlyjoinedList; string expList = objMainWindow.expList; string IntrestedinList = objMainWindow.IntrestedinList; string senioritylevel = objMainWindow.senioritylevelRecruiterType; string Functionlistrecruiter = objMainWindow.Functionlistrecruiter; // For Functions string[] arrayFunction = Regex.Split(Functionlistrecruiter, ","); foreach (string item in arrayFunction) { string[] arrayInds = Regex.Split(item, ":"); if (arrayInds.Length == 2) { chklstBox_SalesNavigator_Functions.Items.Add(arrayInds[1]); } } // for Fortune 1000 //string[] arrayFortune = Regex.Split(Fortune_1000, ","); //foreach (string item in arrayFortune) //{ // string[] arrayInds = Regex.Split(item, ":"); // if (arrayInds.Length == 2) // { // chklstBox_SalesNavigator_Company_size.Items.Add(arrayInds[1]); // } //} // Company size string[] arrayCompanysize = Regex.Split(companysizelist, ","); foreach (string item in arrayCompanysize) { string[] arrayInds = Regex.Split(item, ":"); if (arrayInds.Length == 2) { chklstBox_SalesNavigator_Company_size.Items.Add(arrayInds[1]); } } // Recently joined string[] arrayRecentlyjoined = Regex.Split(RecentlyjoinedList, ","); foreach (string item in arrayRecentlyjoined) { string[] arrayInds = Regex.Split(item, ":"); if (arrayInds.Length == 2) { chklstBox_SalesNavigator_WhenJoined.Items.Add(arrayInds[1]); } } string[] arrayexpList = Regex.Split(expList, ","); foreach (string item in arrayexpList) { string[] arrayInds = Regex.Split(item, ":"); if (arrayInds.Length == 2) { chklstBox_SalesNavigator_YearOfExperiance.Items.Add(arrayInds[1]); } } //string[] arrayIntrestedin = Regex.Split(IntrestedinList, ","); //foreach (string item in arrayIntrestedin) //{ // string[] arrayInds = Regex.Split(item, ":"); // if (arrayInds.Length == 2) // { // chk_Interested_In.Items.Add(arrayInds[1]); // } //} // Seniority Lavel string[] arraySenoirtyLevel = Regex.Split(senioritylevel, ","); foreach (string item in arraySenoirtyLevel) { string[] arrayInds = Regex.Split(item, ":"); if (arrayInds.Length == 2) { chklstBox_SalesNavigator_SeniorityLevel.Items.Add(arrayInds[1]); } } }