示例#1
0
        //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";
        }
示例#2
0
 private void next_Click(object sender, EventArgs e)
 {
     patients.MoveNext();
     Populate(patients.GetCurrentRow());
 }