private void FavoEdit_Click(object sender, EventArgs e) { try { Form_FavoList form = new Form_FavoList(); form.ShowDialog(); UI_SetFavoList(); } catch (Exception ex) { ErrorEvent("エラーが発生しました", ex); } }
public Form_SearchText(ListView view, Form_FavoList form) { InitializeComponent(); FormClosed += Form_FormClosed; form_ListView = view; form_Favo = form; string str = ""; for (int i = 0; i < view.Items.Count; i++) { if (i != 0) { str += "\n"; } str += Form_FavoList.GetItemStr(view.Items[i]); } textBox1.Text = str; }