public ActionResult Index(string Query, bool soundex, bool spelling) { Results results = new Results(); Query = Query.ToLower(); results.Query = Query; Module3 module3 = new Module3(); char[] delimiters = new char[] { '\r', '\n', ' ', ',' }; if (Query.StartsWith("\"") && Query.EndsWith("\"")) { results.Search = "Exact"; results.ExactSearch = module3.ExactSearch(Query.Substring(1, Query.Length - 1)); } else if (soundex == false && Query != "") { results.Search = "Multiple"; results.MultipleSearch = module3.multipleWordSearch(Query); } if (soundex) { results.Search = "Soundex"; string[] words = Query.Split(delimiters, StringSplitOptions.RemoveEmptyEntries).Where(x => x.Length > 1).ToArray(); results.SoundexSearch = module3.SoundexSearch(words); } if (spelling) { results.Spelling = true; string[] words = Query.Split(delimiters, StringSplitOptions.RemoveEmptyEntries).Where(x => x.Length > 1).ToArray(); results.SpellCheck = module3.SpellCheck(words); } return(View(results)); }
private void Module3_Click(object sender, RoutedEventArgs e) { var module3Window = new Module3(); module3Window.Show(); this.Close(); }
public string GetName() { var mod2 = new Module2(); Console.WriteLine(mod2.GetName()); var mod3 = new Module3(); Console.WriteLine(mod3.GetName()); return "Module4"; }
void Update() { if (playerScore.score >= scoreLimit) { if (intro) { BossIntro(); Enemies.SetActive(false); Glass.SetActive(false); Doors.SetActive(false); Module.SetActive(false); Module1.SetActive(false); Module2.SetActive(false); Module3.SetActive(false); Floor.SetActive(false); newBox.SetActive(true); Boss.SetActive(true); intro = false; } } }