private void barBtn_Search_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { ListForm lf = new ListForm(); if (lf.ShowDialog(this) == DialogResult.OK) { this._PCFC = lf.SelectItem as Model.PCFinishCheck; this.action = "view"; this.Refresh(); } lf.Dispose(); GC.Collect(); }