Exemplo n.º 1
0
Arquivo: WWiz.cs Projeto: burstas/rmps
        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();
        }
Exemplo n.º 2
0
Arquivo: WWiz.cs Projeto: burstas/rmps
        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();
        }
Exemplo n.º 3
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();
        }
Exemplo n.º 4
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();
        }
Exemplo n.º 5
0
        public void InitView(Panel panel)
        {
            if (_LastView != null)
            {
                _LastView.HideView(PlMain);
            }

            _HeadBean = new KeyHead();
            _HeadBean.Init(_DataModel, _ViewModel);
            _HeadBean.InitView(PlMain);
            _HeadBean.ShowData();

            panel.Controls.Add(this);
            Dock = DockStyle.Fill;

            _LastView = _HeadBean;
        }