Exemplo n.º 1
0
 public Interpole(SuspectCollection Suspects, SuspectCollection WholeCollection, string Country)
 {
     InitializeComponent();
     suspects        = Suspects;
     wholeCollection = WholeCollection;
     country         = Country;
 }
Exemplo n.º 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);
     }
 }
Exemplo n.º 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;
 }
Exemplo n.º 4
0
        private void loadList()
        {
            SuspectCollection ToLoad = new SuspectCollection();

            foreach (Suspect suspected in wholeCollection)
            {
                if (suspected.SearchedIn.Equals(country))
                {
                    ToLoad.Add(suspected);
                }
            }
            suspects = ToLoad;
        }
Exemplo n.º 5
0
 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);
         }
     }
 }
Exemplo n.º 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;
            }
        }
Exemplo n.º 7
0
 public WorldMap()
 {
     InitializeComponent();
     suspects = new SuspectCollection();
 }
Exemplo n.º 8
0
 public FormForSearching(SuspectCollection Collect, DataGridView Table)
 {
     InitializeComponent();
     this.collection = Collect;
     this.table      = Table;
 }