private void btnTEST2_Click(object sender, EventArgs e) { OpenFileDialog dlg = new OpenFileDialog(); dlg.Filter = "SQLite File (*.db)|*.db|All Files (*.*)|*.*"; dlg.Multiselect = true; //Chỗ này nè if (dlg.ShowDialog(this) == DialogResult.OK) { foreach (string str in dlg.FileNames) { _FileNames.Add(str); } foreach (string str in dlg.SafeFileNames) { _SafeFileNames.Add(str); } } //themVaoCSDLxml123_test(); using (frmWaitForm frm = new frmWaitForm(themVaoCSDLxml123_3)) { frm.ShowDialog(this); MessageBox.Show("Thêm Dữ Liệu Thành Công"); } /* * using (frmWaitForm frm = new frmWaitForm(themVaoBangxml123)) * { * * frm.ShowDialog(this); * }*/ }
private void btnSplit_Click(object sender, EventArgs e) { using (frmWaitForm frm = new frmWaitForm(tachDuLieu)) { frm.ShowDialog(this); MessageBox.Show("Đã xử lý xong dữ liệu"); } }
private void btnShowHide_Click(object sender, EventArgs e) { using (frmWaitForm frm = new frmWaitForm(hienThiDuLieu)) { frm.ShowDialog(this); this.gridControlMain.DataSource = this.dtMain; this.lbFileMain.Text = "Dòng Dữ Liệu: " + this.dtMain.Rows.Count.ToString(); MessageBox.Show("Tải xong dữ liệu: " + this.dtMain.Rows.Count.ToString() + " Dòng"); } }
private void btlLoadFileMain_Click(object sender, EventArgs e) { this.gridControlMain.DataSource = null; OpenFileDialog dlg = new OpenFileDialog(); dlg.Filter = "SQLite File (*.db)|*.db|All Files (*.*)|*.*"; if (dlg.ShowDialog(this) == DialogResult.OK) { _fileNameMain_Old = dlg.FileName; string temp = _fileNameMain_Old; _fileNameMain_New = temp.Split('.')[0].ToString() + "_splited.db"; this.tbFileMain.Text = _fileNameMain_New; using (frmWaitForm frm = new frmWaitForm(saoChepDuLieu)) { frm.ShowDialog(this); MessageBox.Show("Đã tải xong dữ liệu"); } } }