Beispiel #1
0
        public ViewRemove(Controller controller) : base()
        {
            option              = 0;
            indexDataGrid       = 0;
            currentPageDataGrid = 1;
            countRowDataGrid    = 5; //по умолчанию 5 строчек в таблице отображаются
            firstOption         = new FirstOptionComboBox(Controls);
            secondOption        = new SecondOptionComboBox(Controls);
            thirdOption         = new ThirdOptionComboBox(Controls);
            secondOption.comboBoxSecondOption.SelectedIndexChanged += new System.EventHandler(this.comboBoxSecondOption_SelectedIndexChanged);
            thirdOption.comboBoxThirdOption.SelectedIndexChanged   += new System.EventHandler(this.comboBoxThirdOption_SelectedIndexChanged);

            ButOptionGenerate.Click += new System.EventHandler(this.butDeleteResult_Click);

            ButtonPrevious.Click  += new System.EventHandler(this.buttonPrevious_Click);
            ButtonNext.Click      += new System.EventHandler(this.buttonNext_Click);
            ButtonFirstStud.Click += new System.EventHandler(this.buttonFirstStud_Click);
            ComboBoxOptionSearch.SelectedIndexChanged += new System.EventHandler(this.comboBoxOptionSearch_SelectedIndexChanged);
            ComboBoxCountPage.SelectedIndexChanged    += new System.EventHandler(this.comboBoxCountPage_SelectedIndexChanged);

            ButtonLastStud.Click += new System.EventHandler(this.buttonLastStud_Click);
            // ButOptionGenerate.SelectedIndexChanged += new System.EventHandler(this.butDeleteResult_Click);

            ButOptionGenerate.Text = "Delete";
            this.controller        = controller;
            UpdateView(controller.Model.list);
        }
Beispiel #2
0
        public ViewSearchResult(Controller controller)
        {
            InitializeComponent();

            option              = 0;
            indexDataGrid       = 0;
            currentPageDataGrid = 1;
            countRowDataGrid    = 5; //по умолчанию 5 строчек в таблице отображаются
            firstOption         = new FirstOptionComboBox(Controls);
            secondOption        = new SecondOptionComboBox(Controls);
            thirdOption         = new ThirdOptionComboBox(Controls);
            secondOption.comboBoxSecondOption.SelectedIndexChanged += new System.EventHandler(this.comboBoxSecondOption_SelectedIndexChanged);
            thirdOption.comboBoxThirdOption.SelectedIndexChanged   += new System.EventHandler(this.comboBoxThirdOption_SelectedIndexChanged);
            this.controller = controller;
            UpdateView(controller.Model.list);
        }