コード例 #1
0
        /// <summary>
        /// Createas a new instance of the Hitzone view controller
        /// </summary>
        /// <param name="view">View interface it is linked to</param>
        /// <param name="calculator">Main Calculator class</param>
        public HitzoneViewController(IHitzoneView view, HitzoneFactory hitFab)
        {
            _view   = view;
            _hitFab = hitFab;
            _view.SetController(this);

            this.LoadView();
        }
コード例 #2
0
 /// <summary>
 /// Sets the Controller of the Hitzone View
 /// </summary>
 /// <param name="hzView">View of the Hitzone</param>
 internal void setHitZoneController(IHitzoneView hzView)
 {
     HitzoneViewController HZControl = new HitzoneViewController(hzView, _carCalc.HitFab);
 }