Exemplo n.º 1
0
        public CommonFilterDlg(IBaseWindow baseWin, IListManager listMan) : this()
        {
            if (baseWin == null)
            {
                throw new ArgumentNullException("baseWin");
            }

            if (listMan == null)
            {
                throw new ArgumentNullException("listMan");
            }

            fBase       = baseWin;
            fListMan    = listMan;
            fController = new CommonFilterDlgController(this, listMan);
            fController.Init(baseWin);

            filterView      = new FilterGridView(fListMan);
            filterView.Dock = DockStyle.Fill;
            filterView.Name = "dataGridView1";
            tsFieldsFilter.Controls.Add(filterView);

            SetLang();

            fController.UpdateView();
        }
Exemplo n.º 2
0
        public CommonFilterDlg(IBaseWindow baseWin, IListManager listMan) : this()
        {
            if (baseWin == null)
            {
                throw new ArgumentNullException("baseWin");
            }

            if (listMan == null)
            {
                throw new ArgumentNullException("listMan");
            }

            fBase       = baseWin;
            fListMan    = listMan;
            fController = new CommonFilterDlgController(this, listMan);
            fController.Init(baseWin);

            filterView             = new FilterGridView(fListMan);
            filterView.Height      = 260;
            tsFieldsFilter.Content = filterView;

            SetLang();

            fController.UpdateView();
            this.KeyDown += Form_KeyDown;
        }
Exemplo n.º 3
0
 public virtual void DoReset()
 {
     fListMan.Filter.Clear();
     fController.UpdateView();
 }