Exemplo n.º 1
0
 private void nhậpToolStripMenuItem_Click(object sender, EventArgs e)
 {
     Forms.frmHoadonnhap f = new Forms.frmHoadonnhap();
     f.StartPosition = FormStartPosition.CenterScreen;
     this.Hide();
     f.ShowDialog();
     this.Show();
 }
Exemplo n.º 2
0
        private void DataGridView_DoubleClick(object sender, EventArgs e)
        {
            string mahd;

            if (MessageBox.Show("Bạn có muốn hiển thị thông tin chi tiết?", "Xác nhận", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
            {
                mahd = DataGridView.CurrentRow.Cells["MaHDN"].Value.ToString();
                frmHoadonnhap frm = new frmHoadonnhap();
                cboMaHDN.Text     = mahd;
                frm.StartPosition = FormStartPosition.CenterScreen;
                frm.ShowDialog();
            }
        }
Exemplo n.º 3
0
        private void DataGridView_DoubleClick(object sender, EventArgs e)
        {
            if (tblTKHDN.Rows.Count == 0)
            {
                MessageBox.Show("Không có dữ liệu!", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Information);
                return;
            }
            string mahd;

            if (MessageBox.Show("Bạn có muốn hiển thị thông tin chi tiết?", "Xác nhận", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
            {
                mahd = DataGridView.CurrentRow.Cells["MaHDN"].Value.ToString();
                frmHoadonnhap frm = new frmHoadonnhap();
                frm.txtMaHDN.Text = mahd;
                frm.StartPosition = FormStartPosition.CenterParent;
                frm.ShowDialog();
            }
        }