Exemple #1
0
        //METHODS*******************************************************************************

        //this add the new investigation group in the file and GroupList
        public void RegisterGroup(string[] groupAttributes)
        {
            InvestigationGroup group = new InvestigationGroup(groupAttributes);

            GroupList.Add(group);
            ListUpdated = true;
        }
Exemple #2
0
        public void inicilizarDataBase()
        {
            string line;

            System.IO.StreamReader file = new System.IO.StreamReader
                                              (@"C:\Users\Sara\Source\Repos\GMaps-.NET\WindowsFormsApp1\WindowsFormsApp1\Datos\datos.txt");


            int c = 0;

            while ((line = file.ReadLine()) != null)
            {
                c++;
                String[] info = line.Split(';');

                try
                {
                    InvestigationGroup ig = new InvestigationGroup(info);
                    GroupList.Add(ig);
                }catch (Exception e) {
                    e.ToString();
                    //MessageBox.Show("Error en la fila: " + c );
                }
            }

            file.Close();
        }
Exemple #3
0
 public void Data_Group(InvestigationGroup group)
 {
     Second.Delete_Group(group);
     this.Announcement.Text  = group.Announcement;
     this.Year.Text          = group.Year;
     this.name.Text          = group.Name;
     this.Code.Text          = group.Code;
     this.Country.Text       = group.Country;
     this.Department.Text    = group.Department;
     this.Municipality.Text  = group.Municipality;
     this.CrreationDate.Text = group.CreationDate;
     this.Age.Text           = group.Age + "";
     this.OrderClass.Text    = group.OrderClass + "";
     this.Clasification.Text = group.Clasification;
     this.Ocde_Large.Text    = group.OcdeLargeArea;
     this.Ocde_area.Text     = group.OcdeArea;
     this.Ocde_Id.Text       = group.OcdeID;
     this.Dane_Id.Text       = group.DaneID;
     this.region.Text        = group.Region;
 }
Exemple #4
0
 internal void Delete_Group(InvestigationGroup group)
 {
     program.DeleteInvestigationGroup(group);
 }
Exemple #5
0
 public void Send_data_UC_Info(InvestigationGroup group)
 {
     uC_GroupInfo1.Data_Group(group);
 }
Exemple #6
0
 public void DeleteInvestigationGroup(InvestigationGroup delete)
 {
     GroupList.Remove(delete);
 }