Пример #1
0
        private void runFirst()
        {
            khBUS          = new KhachHangBUS();
            btnSLL.Enabled = true;
            btnLSN.Enabled = true;
            int count = khBUS.Count();

            while (limit > 0)
            {
                if (limit - frmMain.CountList > 0)
                {
                    limit -= frmMain.CountList;
                    show_KH(limit);
                }
                else
                {
                    limit = 0;
                    show_KH(limit);
                }
                break;
            }
            if (limit == 0)
            {
                btnLSP.Enabled = false;
                btnSLF.Enabled = false;
            }
        }
Пример #2
0
 private void btnSLL_Click(object sender, EventArgs e)
 {
     khBUS            = new KhachHangBUS();
     btnSLF.ForeColor = Color.Black;
     btnLSP.ForeColor = Color.Black;
     btnLSN.ForeColor = Color.Black;
     btnSLL.ForeColor = Color.Red;
     limit            = khBUS.Count() - 5;
     show_KH(limit);
     btnSLL.Enabled = false;
     btnLSN.Enabled = false;
     btnLSP.Enabled = true;
     btnSLF.Enabled = true;
 }
Пример #3
0
        private void runNext()
        {
            khBUS          = new KhachHangBUS();
            btnSLF.Enabled = true;
            btnLSP.Enabled = true;
            int count = khBUS.Count();

            while (limit + frmMain.CountList < count)
            {
                limit += frmMain.CountList;
                show_KH(limit);
                break;
            }
            if (limit + frmMain.CountList >= count)
            {
                btnLSN.Enabled = false;
                btnSLL.Enabled = false;
            }
        }