public Groups(FormFilter la) { InitializeComponent(); _owner = la; foreach (ListItem li in FillGroups()) { lbNo.Items.Add(li); } chbPrintGroup.Checked = true; }
//конструтор public Filters(FormFilter la, DBPriem bdc, List <iFilter> list) { InitializeComponent(); _bdc = bdc; _owner = la; FillFilters(); if (list != null) { foreach (iFilter obj in list) { flag = true; AddInList(obj); } lbFilters.SelectedIndex = 0; } }
//конструктор public FilterList(FormFilter la, bool isNew) { InitializeComponent(); _owner = la; _IsNew = isNew; foreach (SavedFilter sf in MainClass._config.SavedFilters) { lbSchemas.Items.Add(sf); } if (isNew) { btnDelete.Visible = false; } else { tbName.Enabled = false; btnDelete.Visible = true; } }
//конструктор public Columns(FormFilter owner, string facId) { InitializeComponent(); this.CenterToParent(); own = owner; _fac = facId; _bdc = MainClass.Bdc; _columnList = FillColumns(); foreach (DataGridViewColumn col in own.Dgv.Columns) { if (col.Visible) { try { lbYes.Items.Add(_columnList[col.Name]); } catch { } } } foreach (string li in _columnList.Values) { try { if (!lbYes.Items.Contains(li)) { lbNo.Items.Add(li); } } catch { } } }