Exemplo n.º 1
0
 private void comboBox1_SelectedValueChanged(object sender, EventArgs e)
 {
     limit        = Convert.ToInt32(comboBox1.SelectedItem.ToString().Trim());
     total_page   = Math.Ceiling((double)total_record / limit);
     txtPage.Text = current_page + "/" + total_page;
     PhanTrang.toGridView(limit, start, bunifuDataGridView1, tableName);
 }
Exemplo n.º 2
0
 private void NhanVien_Load(object sender, EventArgs e)
 {
     bunifuDataGridView1.BackgroundColor = this.BackColor;
     comboBox1.Text = "5";
     limit          = Convert.ToInt32(comboBox1.Text.ToString().Trim());
     PhanTrang.Init(tableName, limit, ref total_record, ref total_page, bunifuDataGridView1);
     txtPage.Text = "1/" + total_page;
 }
Exemplo n.º 3
0
 private void btnFirst_Click(object sender, EventArgs e)
 {
     PhanTrang.btnFirst(ref current_page, total_page, limit, start, bunifuDataGridView1, tableName);
 }
Exemplo n.º 4
0
 private void btnLast_Click(object sender, EventArgs e)
 {
     PhanTrang.btnLast(ref current_page, total_page, limit, start, bunifuDataGridView1, tableName);
     txtPage.Text = current_page + "/" + total_page;
 }