示例#1
0
 private void btnRef_Click(object sender, EventArgs e)
 {
     KhoiTao();
     DKTextBoxs(false);
     dgvSV2.Enabled  = true;
     btnThem.Enabled = btnLuu.Enabled = true;
     dsSV.Show(dgvSV2);
 }
示例#2
0
        private void btbMoFile_Click(object sender, EventArgs e)
        {
            dsSV = new DSSinhVien();

            openFileDialog.Filter           = "(file text)| *.txt";
            openFileDialog.InitialDirectory = @"DuLieu//";
            openFileDialog.Multiselect      = false;
            //string arr = openFile.SafeFileNames;
            openFileDialog.ShowDialog();

            dsSV.Input(openFileDialog.FileName);
            str = openFileDialog.FileName;

            dsSV.Show(dgvSinhVien);
            dsSV.Show(dgvSV2);
        }
        private void btbMoFile_Click(object sender, EventArgs e)
        {
            dsSV = new DSSinhVien();

            openFileDialog.Filter = "(file text)| *.txt";
            openFileDialog.InitialDirectory = @"DuLieu//";
            openFileDialog.Multiselect = false;
            //string arr = openFile.SafeFileNames;
            openFileDialog.ShowDialog();

            dsSV.Input(openFileDialog.FileName);
            str = openFileDialog.FileName;

            dsSV.Show(dgvSinhVien);
            dsSV.Show(dgvSV2);
        }