private void mosaicItem_Click(object sender, EventArgs e) { if (bmp.Handle != IntPtr.Zero) { FrmFilter frmFilter = new FrmFilter(bmp, Canvas); frmFilter.Filters = FrmFilter.FiltersMethod.Mosaic; frmFilter.ShowDialog(); } this.Canvas.Invalidate(); }
private void editFilter() { FrmFilter filter; try { if (cmbFilters.SelectedIndex != -1) { filter = new FrmFilter(BucketReportBE.Instance.Filters[cmbFilters.SelectedIndex], false); filter.ShowDialog(); filter = null; } } catch (Exception ex) { throw new Exception("Error adding filter", ex); } }
private void addFilter() { FrmFilter filter; try { filter = new FrmFilter(new Filter(), false); if (filter.ShowDialog() == true) { cmbFilters.Items.Add(BucketReportBE.Instance.Filters.Last().Description); cmbFilters.SelectedIndex = BucketReportBE.Instance.Filters.Count - 1; } filter = null; } catch (Exception ex) { throw new Exception("Error adding filter", ex); } }