public Interpole(SuspectCollection Suspects, SuspectCollection WholeCollection, string Country) { InitializeComponent(); suspects = Suspects; wholeCollection = WholeCollection; country = Country; }
public static void PutActiveIntoTable(DataGridView Table, SuspectCollection Suspects) { Table.Rows.Clear(); for (int i = 0; i < Suspects.Count; i++) { object[] array = Suspects.ElementAt(i).HumanDataToArrayForDataBase(); array[array.Length - 1] = i; Table.Rows.Add(array); } }
public Adding(DataGridView Table, SuspectCollection Susp) { InitializeComponent(); crimes = new List <string>(); story = new List <string>(); photo = @"Images\Question-mark.png"; crimeDate = new DateTime(); lastSeen = new DateTime(); suspect = Susp; this.table = Table; }
private void loadList() { SuspectCollection ToLoad = new SuspectCollection(); foreach (Suspect suspected in wholeCollection) { if (suspected.SearchedIn.Equals(country)) { ToLoad.Add(suspected); } } suspects = ToLoad; }
private void find(SuspectCollection Collect, DataGridView Table, string Text) { Char[] splitters = { ';' }; string[] findparams = Text.Split(splitters); Table.Rows.Clear(); for (int i = 0; i < Collect.Count; i++) { if (Collect.ElementAt(i).MatchesQuery(findparams)) { object[] array = Collect.ElementAt(i).HumanDataToArrayForDataBase(); array[array.Length - 1] = i; Table.Rows.Add(array); } } }
private void loadInterpoleForm(string Country) { SuspectCollection ToLoad = new SuspectCollection(); foreach (Suspect suspected in suspects) { if (suspected.SearchedIn.Equals(Country)) { ToLoad.Add(suspected); } } Interpole SuspectForm = new Interpole(ToLoad, suspects, Country); this.Visible = false; if (SuspectForm.ShowDialog() != DialogResult.None) { this.Visible = true; } }
public WorldMap() { InitializeComponent(); suspects = new SuspectCollection(); }
public FormForSearching(SuspectCollection Collect, DataGridView Table) { InitializeComponent(); this.collection = Collect; this.table = Table; }