private void btnUpdate_Click(object sender, EventArgs e) { List <String> newContents = new List <String>(); foreach (String[] str in myContents) { newContents.Add("/" + str[0] + "/" + str[1] + "/" + str[2]); } wF.delete_file("database/" + dbName + "/" + tbName + "_FK_inf_.txt"); wF.write_Table_Infor_FK(newContents, tbName); MessageBox.Show("Đã update FK"); this.Close(); }
private void drop_table() { wF.delete_file("database/" + cmbDatabase.SelectedValue.ToString() + "/" + cmbTables.SelectedValue.ToString() + ".txt"); wF.delete_file("database/" + cmbDatabase.SelectedValue.ToString() + "/" + cmbTables.SelectedValue.ToString() + "inf_.txt"); }