private void barButtonSearch_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { ListForm lf = new ListForm(); if (lf.ShowDialog(this) == DialogResult.OK) { this._acInvoiceXoBill = (Model.AcInvoiceXOBill)lf.SelectItem; this.action = "view"; this.Refresh(); } lf.Dispose(); GC.Collect(); }
private void bar_ExportExcel_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { ListForm f = new ListForm(true); f.ShowDialog(this); }