Пример #1
0
        /*
         * Constructor
         */
        public OptionView(OptionController optionController, CandidateController candidateController,
                          DepartmentController departmentController)
        {
            InitializeComponent();

            this.optionController     = optionController;
            this.departmentController = departmentController;
            this.candidateController  = candidateController;

            comboBoxCandidate.DropDownStyle  = ComboBoxStyle.DropDownList;
            comboBoxDepartment.DropDownStyle = ComboBoxStyle.DropDownList;

            optionController.addObserver(this);
            candidateController.addObserver(this);
            departmentController.addObserver(this);
            update();
        }