Exemple #1
0
 public Interpole(SuspectCollection Suspects, SuspectCollection WholeCollection, string Country)
 {
     InitializeComponent();
     suspects        = Suspects;
     wholeCollection = WholeCollection;
     country         = Country;
 }
Exemple #2
0
 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);
     }
 }
Exemple #3
0
 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;
 }
Exemple #4
0
        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);
         }
     }
 }
Exemple #6
0
        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;
            }
        }
Exemple #7
0
 public WorldMap()
 {
     InitializeComponent();
     suspects = new SuspectCollection();
 }
 public FormForSearching(SuspectCollection Collect, DataGridView Table)
 {
     InitializeComponent();
     this.collection = Collect;
     this.table      = Table;
 }