Пример #1
0
        public DietCalculatorController_v2(IDietCalculatorView view, IDietCalculatorModel model) : this(model)
        {
            this.view = view;

            view.SetModel(model);
            view.SetController(this);
        }
        public DietCalculatorController_v2(IDietCalculatorView view, IDietCalculatorModel model)
            : this(model)
        {
            this.view = view;

            view.SetModel( model );
            view.SetController( this );
        }
        public DietCalculatorController(IDietCalculatorView view, IDietCalculatorModel model) : this(model)
        {
            this.view = view;

            view.SetModel(model);
            view.SetController(this);

            model.HipsEnabledChanged += new EventHandler <DietCalculatorEventArgs>(model_HipsEnabledChanged);
        }
        public DietCalculatorController(IDietCalculatorView view, IDietCalculatorModel model)
            : this(model)
        {
            this.view = view;

            view.SetModel(model);
            view.SetController(this);

            model.HipsEnabledChanged += new EventHandler<DietCalculatorEventArgs>(model_HipsEnabledChanged);
        }