private void AddItem_Click(object sender, EventArgs e) { AddItemDlg dlg = new AddItemDlg(); dlg.ShowDialog(); //关闭之后刷新界面 InitList(); }
private void ServerList_DoubleClick(object sender, EventArgs e) { AddItemDlg dlg = new AddItemDlg(); dlg.InitShow(ServerList.SelectedItems[0].SubItems[0].Text); dlg.ShowDialog(); //关闭之后刷新界面 InitList(); }