コード例 #1
0
        private void pictureBox1_Click(object sender, EventArgs e)
        {
            FormNhapSP sp = new FormNhapSP();

            sp.ShowDialog();
            if (sp.DialogResult == DialogResult.OK)
            {
                PushNoti noti1 = new PushNoti("Success", "Thêm hàng hoá mới thành công!");
                noti1.Width = this.Width;
                this.Controls.Add(noti1);
                noti1.Show();
                noti1.ShowNoti();
            }
        }
コード例 #2
0
        private void PicThemMoi_Click(object sender, EventArgs e)
        {
            FormNhapSP frm = new FormNhapSP();

            frm.ShowDialog();
            string temp = txtTimKiem.Text;

            txtTimKiem.Text = " ";
            txtTimKiem.Text = temp;
            HienThiTrang(current_Page);
            lblPage.Text = current_Page + "/" + number_Page;

            Stelia_BUS.Stelia_BUS bus = new Stelia_BUS.Stelia_BUS();
            DTO_SanPham[]         SP  = bus.search_SANPHAM(lblMaSP.Text);
            XuatThongTinSP(SP[0]);
        }
コード例 #3
0
        private void PicThemMoi_Click(object sender, EventArgs e)
        {
            FormNhapSP frm = new FormNhapSP();

            frm.ShowDialog();
            if (frm.DialogResult == DialogResult.OK)
            {
                PushNoti noti1 = new PushNoti("Success", "Thêm hàng hoá mới thành công!");
                noti1.Width = this.Width;
                this.Controls.Add(noti1);
                noti1.Show();
                noti1.ShowNoti();
            }
            string temp = txtTimKiem.Text;

            txtTimKiem.Text = " ";
            txtTimKiem.Text = temp;
            HienThiTrang(current_Page);
            lblPage.Text = current_Page + "/" + number_Page;

            Stelia_BUS.Stelia_BUS bus = new Stelia_BUS.Stelia_BUS();
            DTO_SanPham[]         SP  = bus.search_SANPHAM(lblMaSP.Text);
            XuatThongTinSP(SP[0]);
        }