private void barSubItem1_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { FilterForm filter = new FilterForm(r.FilterString); DialogResult res = filter.ShowDialog(); if (res == DialogResult.OK) { r.FilterString = filter.Criteria; r.CreateDocument(); this.Criteria = filter.Criteria; } }
private void barSubItem16_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { FilterForm filter = new FilterForm(report.FilterString); DialogResult res = filter.ShowDialog(); if (res == DialogResult.OK) { report.FilterString = filter.Criteria; if (this.xrDesignPanel1.SelectedTabIndex == 1) { //TODO: look at this xrDesignPanel1.CloseReport(); xrDesignPanel1.OpenReport(report); xrDesignPanel1.SelectedTabIndex = 1; } } }