Ejemplo n.º 1
0
        private void DataGridView_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            string chitiet;

            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)
            {
                chitiet = DataGridView.CurrentRow.Cells["Ma_mayVT"].Value.ToString();
                frmMaytinh frm = new frmMaytinh();
                frm.txtMaMT.Text  = chitiet;
                frm.StartPosition = FormStartPosition.CenterScreen;
                frm.ShowDialog();
            }
        }
Ejemplo n.º 2
0
 private void danhSáchMáyTínhToolStripMenuItem_Click(object sender, EventArgs e)
 {
     Forms.frmMaytinh f = new Forms.frmMaytinh();
     f.StartPosition = FormStartPosition.CenterScreen;
     f.Show();
 }