Ejemplo n.º 1
0
        private void button5_Click(object sender, EventArgs e)
        {
            P_MAIN.Visible             = true;
            P_HOME.Visible             = false;
            bunifuThinButton24.Visible = false;

            state         = "BRO";
            Lb_Title.Text = "الاستعارة";
            DataTable dt = new DataTable();

            try
            {
                dt = BLBRO.Load();
                dataGridView1.DataSource            = dt;
                dataGridView1.Columns[0].HeaderText = "التسلسل";
                dataGridView1.Columns[1].HeaderText = "اسم المشتري";
                dataGridView1.Columns[2].HeaderText = "اسم الكتاب";
                dataGridView1.Columns[3].HeaderText = "بداية الاستعارة";
                dataGridView1.Columns[4].HeaderText = "تهاية الاستعارة";
                dataGridView1.Columns[5].HeaderText = "السعر";
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
        private void FRM_REPORT_Load(object sender, EventArgs e)
        {
            label20.Text = DateTime.Now.ToString();

            DataTable d = new DataTable();

            d = BLBOOKS.Load();

            label2.Text = d.Rows.Count.ToString();
            DataTable dt1 = new DataTable();

            dt1         = BLST.Load();
            label5.Text = dt1.Rows.Count.ToString();

            DataTable m = new DataTable();

            m           = BLSELL.Load();
            label7.Text = m.Rows.Count.ToString();

            DataTable u = new DataTable();

            u            = BLBRO.Load();
            label13.Text = u.Rows.Count.ToString();

            DataTable t = new DataTable();

            t           = BLUSER.Load();
            label9.Text = t.Rows.Count.ToString();

            DataTable j = new DataTable();

            j            = BLCAT.Load();
            label11.Text = j.Rows.Count.ToString();
        }