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();
        }
Ejemplo n.º 2
0
        private void button7_Click(object sender, EventArgs e)
        {
            P_MAIN.Visible             = true;
            P_HOME.Visible             = false;
            bunifuThinButton24.Visible = false;

            state         = "CAT";
            Lb_Title.Text = "الاصناف";
            DataTable dt = new DataTable();

            try
            {
                dt = BLCAT.Load();
                dataGridView1.DataSource = dt;

                dataGridView1.Columns[0].HeaderText = "رقم الصنف";
                dataGridView1.Columns[1].HeaderText = "اسم الصنف";
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }