//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; }
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(); }
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; }
internal void Delete_Group(InvestigationGroup group) { program.DeleteInvestigationGroup(group); }
public void Send_data_UC_Info(InvestigationGroup group) { uC_GroupInfo1.Data_Group(group); }
public void DeleteInvestigationGroup(InvestigationGroup delete) { GroupList.Remove(delete); }