Beispiel #1
0
        public Groups(FormFilter la)
        {
            InitializeComponent();

            _owner = la;

            foreach (ListItem li in FillGroups())
            {
                lbNo.Items.Add(li);
            }
            chbPrintGroup.Checked = true;
        }
Beispiel #2
0
        //конструтор
        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;
            }
        }
Beispiel #3
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;
            }
        }
Beispiel #4
0
        //конструктор
        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
                {
                }
            }
        }