private void btn_HoaDon_Click(object sender, EventArgs e)
        {
            this.Hide();
            Form_HoaDon hd = new Form_HoaDon();

            hd.ShowDialog();
            this.Show();
        }
        private void dataGridView_Form_LinhKien_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            this.Hide();
            Form_HoaDon hd = new Form_HoaDon();

            hd.masp   = txt_MaLK.Text;
            hd.tensp  = txt_TenLK.Text;
            hd.dongia = txt_DonGiaLK.Text;
            hd.ShowDialog();
            this.Show();
        }
예제 #3
0
 private void dataGridView_Form_LinhKien_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     try
     {
         this.Hide();
         Form_HoaDon hd = new Form_HoaDon();
         hd.masp   = txt_MaLK.Text;
         hd.tensp  = txt_TenLK.Text;
         hd.dongia = txt_DonGiaLK.Text;
         hd.ShowDialog();
         this.Show();
     }
     catch { MessageBox.Show("Chọn dữ liệu qua hóa đơn thất bại (-_-)"); }
 }