Beispiel #1
0
        protected override void OnInit(EventArgs e)
        {
            base.OnInit(e);

            _sessionMoniker = GetSessionMoniker();
            Navigator navigator = GetNavigator(_sessionMoniker.NavGraphName, _sessionMoniker.TaskId);

            if (viewSettings != null
                && viewSettings.AppTransactionStartConfigured
                && !IsPostBack)
            {
                navigator.CurrentState.Clear();
            }

            _controller = navigator.GetController(this, string.Empty);
            if (_controller == null)
                return;

            Load += _controller.OnLoadView;
            PreRender += _controller.OnPreRenderView;
            Unload += _controller.OnUnloadView;
        }
Beispiel #2
0
        private void initController()
        {
            if (_navigator == null)
                return;

            _controller = _navigator.GetController(this, string.Empty);

            if (_controller == null)
                return;

            Load += _controller.OnLoadView;
            PreRender += _controller.OnPreRenderView;
            Unload += _controller.OnUnloadView;
        }