using GameBackup3H3.DbOp; using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using 开发辅助工具.Manager; namespace SuperDesign.Manager.Site { public partial class FrmFTPSelect : Form { public FrmFTPSelect() { InitializeComponent(); OlvName.AspectGetter = delegate (object x) { return ((FTPInfo)x).Name; }; } public FTPInfo SelectedItem { get; set; } = null; private void ObjectListView1_DoubleClick(object sender, EventArgs e) { var item = (FTPInfo)objectListView1.SelectedObject; if (item == null) { return; } SelectedItem = item; DialogResult = DialogResult.OK; } } }