//public frmPatient() //{ // InitializeComponent(); // patients = new PatientDB(); // state = AddState.NAVIGATE; // Populate(patients.GetCurrentRow()); // SetButtonStates(true); //} public frmPatient(Form frmmain) { this.parent = frmmain; InitializeComponent(); patients = new PatientDB(); state = AddState.NAVIGATE; Populate(patients.GetCurrentRow()); SetButtonStates(true); dv = patients.GetDataView(); listBox1.DataSource = dv; listBox1.ValueMember = "ID"; listBox1.DisplayMember = "LastName"; }
private void next_Click(object sender, EventArgs e) { patients.MoveNext(); Populate(patients.GetCurrentRow()); }