//显示一个消息框,要求输入一个字符串作为标签 private void 添加标签ToolStripMenuItem_Click(object sender, EventArgs e) { int i = Folder_listBox.SelectedIndex; inputForm form = new inputForm((Folder)FolderArray[i]); form.ShowDialog(); form.Dispose(); }
//添加一个标签到该folder,并更新tag_listView控件 private void btn_addTag_Click(object sender, EventArgs e) { inputForm form = new inputForm(folder); form.ShowDialog(); form.Dispose(); //此处需要添加函数来重绘tag_listView taglistview_refresh(); }