private void btnInPhieu_Click(object sender, EventArgs e) { if (txtMa.Text == "") { MessageBox.Show("Phiếu đặt hàng này chưa có hoặc bạn chưa chọn phiếu đặt hàng!"); return; } frmInPhieu inphieu = new frmInPhieu(txtMa.Text); inphieu.ShowDialog(); }
private void btnInPhieu_Click_1(object sender, EventArgs e) { if (txtMaPhieu.Text == "") { MessageBox.Show("Hãy nhập mã phiếu để in!", "Thông báo!"); txtMaPhieu.Select(); return; } frmInPhieu inphieu = new frmInPhieu(txtMaPhieu.Text); inphieu.ShowDialog(); }