private void button3_Click(object sender, EventArgs e) { InmateData i = new InmateData(); i.GetData(7); i.CDCRNumber = "ZZ-4321"; i.FirstName = "PacMan"; i.LastName = "Jones"; i.WriteData(); i = null; }
private void button1_Click(object sender, EventArgs e) { InmateData i = new InmateData(); i.GetData(7); Console.WriteLine("EPRD: " + i.EPRD); Console.WriteLine("Saw Status: " + i.SawStatus); Console.WriteLine("Grade Eligible: " + i.GradeEligible); Console.WriteLine("Special Status: " + i.SawStatus); i = null; }
private void button2_Click(object sender, EventArgs e) { //InmateData i = new InmateData(); inmate.GetData(92); inmate.CDCRNumber = "ZZ-1234"; inmate.FirstName = "J"; inmate.LastName = "Beckam"; inmate.UpdateData(); //i = null; }
public AddEditInmate(int id, FormMode mode) { InitializeComponent(); inmate = new InmateData(); inmate.CampDataUpdated += Inmate_CampDataUpdated; formMode = mode; if (mode == FormMode.Edit) { lblCaption.Text = "Edit Inmate Information"; this.Text = "Edit Inmate Information"; inmate.GetData(id); addData(); cboParoled.SelectedItem = "No"; } else { lblCaption.Text = "Add Inmate to Database"; this.Text = "Add Inmate Information"; cboSawStatus.SelectedItem = "None"; cboParoled.SelectedItem = "No"; } lblDataSaved.Visible = false; formChanged = false; }