private void 除ToolStripMenuItem_Click_1(object sender, EventArgs e) { ListViewItem current_item = new ListViewItem(); if (listView1.SelectedItems.Count != 0) { current_item = listView1.SelectedItems[0]; } else { MessageBox.Show("Please select a item"); return; } File current_file = directory.getFile(getPointer(current_item)); FCB current_fcb = directory.getFCB(current_file); //List<int> indexs = current_file.readTable(); int indexs = current_file.readTable(); Overall_bitMap.withdraw(indexs); current_fcb.remove(); directory.removeFile(current_fcb); UpdateView(); }
private void releaseBlock() { //List<int> indexs = textFile.readTable(); int indexs = textFile.readTable(); bitMap.withdraw(indexs); }