Example #1
0
File: WWiz.cs Project: 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();
        }
Example #2
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;
        }