Exemple #1
0
        private void ShowHead()
        {
            if (_KeyHead == null)
            {
                _KeyHead = new KeyHead(this, _UserModel, _SafeModel);
                _KeyHead.Init(_DataModel, _ViewModel);
                _KeyHead.Name = "head";
                _KeyHead.InitView(PlMain);
            }

            if (_LastView != null && _LastView != _KeyHead)
            {
                _LastView.HideView(PlMain);
                _KeyHead.InitView(PlMain);

                BtPrevStep.Enabled = true;
                BtNextStep.Text = "下一步(&N)";
            }

            _LastView = _KeyHead;
            _LastView.ShowData();
        }
Exemple #2
0
        private void ShowHead()
        {
            if (_HeadBean == null)
            {
                //_HeadBean = new BeanHead(this, _UserModel, _SafeModel);
                //_HeadBean.Init(PlMain, _DataModel, _ViewModel);
                _HeadBean.Name = "head";
            }
            if (_LastView != null && _LastView != _HeadBean)
            {
                _LastView.HideView(PlMain);
                _HeadBean.InitView(PlMain);

                //BtPrev.Enabled = true;
                //BtNext.Enabled = true;
            }

            _LastView = _HeadBean;
            _LastView.ShowData();
        }
Exemple #3
0
        private void ShowBody()
        {
            if (_KeyBody == null)
            {
                _KeyBody = new KeyBody(this, _UserModel, _SafeModel);
                _KeyBody.Init(_DataModel, _ViewModel);
                _KeyBody.Name = "body";
                _KeyBody.InitView(PlMain);
            }

            if (_LastView != null && _LastView != _KeyBody)
            {
                _LastView.HideView(PlMain);
                _KeyBody.InitView(PlMain);

                BtPrevStep.Enabled = true;
                BtNextStep.Text = "保存(&S)";
            }

            _LastView = _KeyBody;
            _LastView.ShowData();
        }
Exemple #4
0
        private void ShowBody()
        {
            if (_BodyBean == null)
            {
                //_BodyBean = new BeanBody(this, _UserModel, _SafeModel);
                //_BodyBean.Init(PlMain, _DataModel, _ViewModel);
                _BodyBean.Name = "body";
            }
            if (_LastView != null && _LastView != _BodyBean)
            {
                _LastView.HideView(PlMain);
                _BodyBean.InitView(PlMain);

                //BtPrev.Enabled = true;
                //BtNext.Enabled = false;
            }

            _LastView = _BodyBean;
            _LastView.ShowData();
        }