public SearchFormController(SearchFormModel model, SearchFormView view)
        {
            //todo check model and view if null
            _model = model;
            _view = view;

            _view.SearchButtonListener(SearchButton_Click);
            _view.CancelButtonListener(CancelButton_Click);
            _view.ClearButtonListener(ClearButton_Click);
        }
Esempio n. 2
0
        public SearchFormController(SearchFormModel model, SearchFormView view)
        {
            //todo check model and view if null
            _model = model;
            _view  = view;

            _view.SearchButtonListener(SearchButton_Click);
            _view.CancelButtonListener(CancelButton_Click);
            _view.ClearButtonListener(ClearButton_Click);
        }
Esempio n. 3
0
        private static void SearchButtonClick(object o, EventArgs e)
        {
            var view = new SearchFormView();
            var model = new SearchFormModel();
            var controller = new SearchFormController(model, view);

            view.ShowDialog();
        }