Example #1
0
        private void btnHinhAnh_Click(object sender, EventArgs e)
        {
            FormHinhAnh diaglogGiayTo = new FormHinhAnh(true, maDiaOc);

            diaglogGiayTo.StartPosition = FormStartPosition.CenterScreen;
            diaglogGiayTo.ShowDialog(this);
        }
Example #2
0
        private void hìnhẢnhToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            FormHinhAnh formHinhAnh = new FormHinhAnh();

            formHinhAnh.TopLevel        = false;
            formHinhAnh.Visible         = true;
            formHinhAnh.FormBorderStyle = FormBorderStyle.None;
            formHinhAnh.Dock            = DockStyle.Fill;
            tabCtlChinh.TabPages.Add("Hình ảnh");
            tabCtlChinh.TabPages[tabCtlChinh.TabPages.Count - 1].Controls.Add(formHinhAnh);
            tabCtlChinh.SelectedIndex = tabCtlChinh.TabPages.Count - 1;
        }
Example #3
0
        private void ThemMaHA_Click(object sender, EventArgs e)
        {
            FormHinhAnh diaglogHinhAnh = new FormHinhAnh();

            diaglogHinhAnh.StartPosition = FormStartPosition.CenterScreen;
            if (diaglogHinhAnh.ShowDialog(this) == DialogResult.Yes)
            {
            }
            else
            {
                cbMaHA.DataSource = hinhAnhBLL.LayDanhSachHinhAnh();
            }
        }
 private void btnQuanLyHinhAnh_Click(object sender, EventArgs e)
 {
     if (id != "")
     {
         FormHinhAnh diaglogHinhAnh = new FormHinhAnh(Int32.Parse(cbMaPhieuDangKy.SelectedValue.ToString()));
         diaglogHinhAnh.StartPosition = FormStartPosition.CenterScreen;
         if (diaglogHinhAnh.ShowDialog(this) == DialogResult.Yes)
         {
         }
         else
         {
             //txtSoLuongQuangCao.Text = chiTietQuangCaoBLL.LayDanhSachChiTietQuangCaoTheoMaPhieuDangKy(Int32.Parse(txtMaPhieuDangKy.Text)).Rows.Count.ToString();
         }
     }
     else
     {
         MessageBox.Show("Vui lòng chọn Chi tiết quảng cáo muốn xem thông tin hình ảnh!");
     }
 }