示例#1
0
        private void button1_Click(object sender, EventArgs e)
        {
            long x = dref.numofrecords(input.Text);

            if ((long)record_index < x - 1)
            {
                record_index++;
            }
            fill_read_fields();
        }
示例#2
0
 void fill_read_fields()
 {
     dref.read(filename.Text, record_field, record_index);
     name.Text    = record_field[0];
     phone.Text   = record_field[1];
     age.Text     = record_field[2];
     gender.Text  = record_field[3];
     rec_num.Text = dref.numofrecords(filename.Text).ToString();
     rec_no.Text  = (record_index + 1).ToString();
 }